mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-05 23:11:52 +00:00
Converts Reagents to Typepaths and Centralises Reagent Spawning (#9140)
Converts reagents to use typepaths instead of IDs.
Centralises reagent spawning in a lot of places to use reagents_to_add instead of a variety of custom methods or initialise overrides.
This commit is contained in:
@@ -249,14 +249,14 @@
|
||||
if(blocked < 100 && !(blocked < 20))
|
||||
L.emote("yawns")
|
||||
if(blocked < 20)
|
||||
if(L.reagents) L.reagents.add_reagent("stoxin", 10)
|
||||
if(L.reagents) L.reagents.add_reagent(/datum/reagent/soporific, 10)
|
||||
if(def_zone == BP_HEAD && blocked < 100)
|
||||
if(L.reagents) L.reagents.add_reagent("stoxin", 15)
|
||||
if(L.reagents) L.reagents.add_reagent(/datum/reagent/soporific, 15)
|
||||
if(def_zone != "torso" && def_zone != BP_HEAD)
|
||||
if(blocked < 100 && !(blocked < 20))
|
||||
L.emote("yawns")
|
||||
if(blocked < 20)
|
||||
if(L.reagents) L.reagents.add_reagent("stoxin", 5)
|
||||
if(L.reagents) L.reagents.add_reagent(/datum/reagent/soporific, 5)
|
||||
|
||||
if(isanimal(target))
|
||||
target.visible_message("<b>[target]</b> twitches, foaming at the mouth.")
|
||||
|
||||
Reference in New Issue
Block a user