Magic spells code expansion (#692)
* split manacost in separate component * stamina spells * toggleable actions * swap activeCasting on ActiveDoAfter * remove dublication * Update CP14SharedMagicSystem.ToggleableActions.cs * EntityWoldTarget * mana glove done * fix spell scrolls interrupting * fix cooldown problem * clean up, edit stamina system
This commit is contained in:
@@ -382,10 +382,13 @@ public sealed partial class StaminaSystem : EntitySystem
|
||||
}
|
||||
|
||||
component.Critical = false;
|
||||
component.StaminaDamage = 0f;
|
||||
//CP14 Stamina edit
|
||||
//component.StaminaDamage = 0f;
|
||||
component.StaminaDamage = component.CritThreshold * 0.8f;
|
||||
//CP14 stamina edit end
|
||||
component.NextUpdate = _timing.CurTime;
|
||||
SetStaminaAlert(uid, component);
|
||||
RemComp<ActiveStaminaComponent>(uid);
|
||||
//RemComp<ActiveStaminaComponent>(uid); //CP14
|
||||
Dirty(uid, component);
|
||||
_adminLogger.Add(LogType.Stamina, LogImpact.Low, $"{ToPrettyString(uid):user} recovered from stamina crit");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user