Skip to content

Commit

Permalink
fix rest ability
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Aug 20, 2024
1 parent 23bb1a9 commit b88dcb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public sealed class ShadowkinRestSystem : EntitySystem
[ValidatePrototypeId<EntityPrototype>]
private const string ShadowkinRestActionId = "ShadowkinRestAction";


public override void Initialize()
{
base.Initialize();
Expand Down Expand Up @@ -61,8 +62,9 @@ private void Rest(EntityUid uid, ShadowkinRestPowerComponent component, Shadowki
_actions.RemoveAction(args.Performer, sleepingComponent.WakeAction);

_power.TryAddMultiplier(args.Performer, 1.5f);

// No action cooldown
args.Handled = false;
_actions.ClearCooldown(sleepingComponent?.WakeAction);
}
// Waking
else
Expand All @@ -71,6 +73,7 @@ private void Rest(EntityUid uid, ShadowkinRestPowerComponent component, Shadowki
_entity.RemoveComponent<ForcedSleepingComponent>(args.Performer);
_entity.RemoveComponent<SleepingComponent>(args.Performer);
_power.TryAddMultiplier(args.Performer, -1.5f);

// Action cooldown
args.Handled = true;
}
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Parkstation/Magic/shadowkin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@
sprite: Parkstation/Interface/Actions/shadowkin_icons.rsi
state: rest
checkCanInteract: false
checkConsciousness: false
event: !type:ShadowkinRestEvent

0 comments on commit b88dcb0

Please sign in to comment.