]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
up stimulants (no sleep) (#25886)
authortakemysoult <143123247+takemysoult@users.noreply.github.com>
Sat, 30 Mar 2024 06:52:27 +0000 (09:52 +0300)
committerGitHub <noreply@github.com>
Sat, 30 Mar 2024 06:52:27 +0000 (00:52 -0600)
* up stimulants (no sleep)

* Update SharedSleepingSystem.cs

Content.Shared/Bed/Sleep/SharedSleepingSystem.cs
Resources/Prototypes/Reagents/narcotics.yml

index 4e4bc2c574b1fc1a777355e49ca4b53bc5812ed2..c6248c88f775efe0278dede3753a7e9c5fb9fd6d 100644 (file)
@@ -37,7 +37,7 @@ namespace Content.Server.Bed.Sleep
             _actionsSystem.AddAction(uid, ref component.WakeAction, WakeActionId, uid);
 
             // 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)
index d05cc29ab02ac7beee9a3f92c3c0421baaae753e..cefc8043b086756030310717cfeb70f8e2adcc38 100644 (file)
         damage:
           types:
             Poison: 1
+      - !type:AdjustReagent
+        conditions:
+        - !type:ReagentThreshold
+          reagent: ChloralHydrate
+          min: 1
+        reagent: ChloralHydrate
+        amount: -10
       - !type:GenericStatusEffect
         key: Stun
         time: 3
         component: StaminaModifier
         time: 3
         type: Add
+      - !type:GenericStatusEffect
+        key: ForcedSleep
+        time: 3
+        type: Remove
     Medicine:
       metabolismRate: 1.0
       effects: