Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d23187

Browse filesBrowse files
port zombie powder nerf from tg (yogstation13#9315)
* port zombie powder nerf from tg * Update toxin_reagents.dm * Update toxin_reagents.dm * Update toxin_reagents.dm
1 parent e54d17e commit 0d23187
Copy full SHA for 0d23187

1 file changed

+24-5Lines changed: 24 additions & 5 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎code/modules/reagents/chemistry/reagents/toxin_reagents.dm‎

Copy file name to clipboardExpand all lines: code/modules/reagents/chemistry/reagents/toxin_reagents.dm
+24-5Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,20 +149,39 @@
149149
color = "#669900" // rgb: 102, 153, 0
150150
toxpwr = 0.5
151151
taste_description = "death"
152+
var/fakedeath_active = FALSE
152153

153154
/datum/reagent/toxin/zombiepowder/on_mob_metabolize(mob/living/L)
154155
..()
155-
L.fakedeath(type)
156+
ADD_TRAIT(L, TRAIT_FAKEDEATH, type)
157+
if(fakedeath_active)
158+
L.fakedeath(type)
156159

157160
/datum/reagent/toxin/zombiepowder/on_mob_end_metabolize(mob/living/L)
158161
L.cure_fakedeath(type)
159162
..()
160163

161-
/datum/reagent/toxin/zombiepowder/on_mob_life(mob/living/carbon/M)
162-
M.adjustOxyLoss(0.5*REM, 0)
163-
..()
164-
. = 1
164+
/datum/reagent/toxin/zombiepowder/reaction_mob(mob/living/L, method=TOUCH, reac_volume)
165+
L.adjustOxyLoss(0.5*REM, 0)
166+
if(method == INGEST)
167+
var/datum/reagent/toxin/zombiepowder/Z = L.reagents.has_reagent(/datum/reagent/toxin/zombiepowder)
168+
if(istype(Z))
169+
Z.fakedeath_active = TRUE
165170

171+
/datum/reagent/toxin/zombiepowder/on_mob_life(mob/living/M)
172+
..()
173+
if(fakedeath_active)
174+
return TRUE
175+
switch(current_cycle)
176+
if(1 to 5)
177+
M.confused += 1
178+
M.drowsyness += 1
179+
M.slurring += 3
180+
if(5 to 8)
181+
M.adjustStaminaLoss(40, 0)
182+
if(9 to INFINITY)
183+
fakedeath_active = TRUE
184+
M.fakedeath(type)
166185
/datum/reagent/toxin/ghoulpowder
167186
name = "Ghoul Powder"
168187
description = "A strong neurotoxin that slows metabolism to a death-like state, while keeping the patient fully active. Causes toxin buildup if used too long."

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.