Rat King Milsim + Buffs (#20190)
* rat king update * rummaging * buuuuunnnnncccchhh of shit * the last of it * make rat servants not ghost roles * pissma buff and cooldown
This commit is contained in:
@@ -204,6 +204,19 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
Dirty(actionId.Value, action);
|
||||
}
|
||||
|
||||
public void StartUseDelay(EntityUid? actionId)
|
||||
{
|
||||
if (actionId == null)
|
||||
return;
|
||||
|
||||
var action = GetActionData(actionId);
|
||||
if (action == null || action.UseDelay == null)
|
||||
return;
|
||||
|
||||
action.Cooldown = (GameTiming.CurTime, GameTiming.CurTime + action.UseDelay.Value);
|
||||
Dirty(actionId.Value, action);
|
||||
}
|
||||
|
||||
#region ComponentStateManagement
|
||||
public virtual void Dirty(EntityUid? actionId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user