Spellcasting upgrade (#543)
* move to gurps magic types * spell traits, categorize spells * Update TraitSystem.cs * magic spells item provider * Update twoHandedStaffs.yml * Update CP14MagicManacostModifySystem.cs * Update CP14SpellStorageSystem.cs * some funny shit * fix problems 1 * FIX * more funny broken shit * predict slowdown, fixes funny * EntityTarget action * fixes * Update T1_sphere_of_light.yml * fix demiplan loot centering * predict movement!
This commit is contained in:
@@ -247,6 +247,18 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
Dirty(actionId.Value, action);
|
||||
}
|
||||
|
||||
public void CP14StartCustomDelay(EntityUid? actionId, TimeSpan delay)
|
||||
{
|
||||
if (actionId == null)
|
||||
return;
|
||||
|
||||
if (!TryGetActionData(actionId, out var action))
|
||||
return;
|
||||
|
||||
action.Cooldown = (GameTiming.CurTime, GameTiming.CurTime + delay);
|
||||
Dirty(actionId.Value, action);
|
||||
}
|
||||
|
||||
public void SetUseDelay(EntityUid? actionId, TimeSpan? delay)
|
||||
{
|
||||
if (!TryGetActionData(actionId, out var action) || action.UseDelay == delay)
|
||||
|
||||
Reference in New Issue
Block a user