up stimulants (no sleep) (#25886)

* up stimulants (no sleep)

* Update SharedSleepingSystem.cs
This commit is contained in:
takemysoult
2024-03-30 09:52:27 +03:00
committed by GitHub
parent 0f6c7c9d51
commit 97b390d35f
2 changed files with 12 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ namespace Content.Server.Bed.Sleep
_actionsSystem.AddAction(uid, ref component.WakeAction, WakeActionId, uid); _actionsSystem.AddAction(uid, ref component.WakeAction, WakeActionId, uid);
// TODO remove hardcoded time. // TODO remove hardcoded time.
_actionsSystem.SetCooldown(component.WakeAction, _gameTiming.CurTime, _gameTiming.CurTime + TimeSpan.FromSeconds(15)); _actionsSystem.SetCooldown(component.WakeAction, _gameTiming.CurTime, _gameTiming.CurTime + TimeSpan.FromSeconds(2f));
} }
private void OnShutdown(EntityUid uid, SleepingComponent component, ComponentShutdown args) private void OnShutdown(EntityUid uid, SleepingComponent component, ComponentShutdown args)

View File

@@ -116,6 +116,13 @@
damage: damage:
types: types:
Poison: 1 Poison: 1
- !type:AdjustReagent
conditions:
- !type:ReagentThreshold
reagent: ChloralHydrate
min: 1
reagent: ChloralHydrate
amount: -10
- !type:GenericStatusEffect - !type:GenericStatusEffect
key: Stun key: Stun
time: 3 time: 3
@@ -129,6 +136,10 @@
component: StaminaModifier component: StaminaModifier
time: 3 time: 3
type: Add type: Add
- !type:GenericStatusEffect
key: ForcedSleep
time: 3
type: Remove
Medicine: Medicine:
metabolismRate: 1.0 metabolismRate: 1.0
effects: effects: