stimulants now use stun absorb, flashes no longer makes stun immune people drop items (#23850)

* stimulants now use stun absorb, flashes no longer makes stun immune people drop items

* whoops need this

* and this

* Update code/modules/reagents/chemistry/reagents/medicine.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2024-02-04 21:45:40 +00:00
committed by GitHub
co-authored by DGamerL
parent e2bdc3bfb9
commit 5dd3f7fb79
2 changed files with 11 additions and 6 deletions
@@ -1073,10 +1073,12 @@
M.AdjustDrowsy(-20 SECONDS)
M.SetConfused(0)
M.SetSleeping(0)
var/status = CANSTUN | CANWEAKEN | CANPARALYSE
M.status_flags &= ~status
M.add_stun_absorption("stimulants", INFINITY, 5)
M.status_flags &= ~CANPARALYSE
else
M.status_flags |= CANSTUN | CANWEAKEN | CANPARALYSE
M.status_flags |= CANPARALYSE
if(islist(M.stun_absorption) && M.stun_absorption["stimulants"])
M.remove_stun_absorption("stimulants")
update_flags |= M.adjustToxLoss(2, FALSE)
update_flags |= M.adjustBruteLoss(1, FALSE)
if(prob(10))
@@ -1087,7 +1089,9 @@
return ..() | update_flags
/datum/reagent/medicine/stimulants/on_mob_delete(mob/living/M)
M.status_flags |= CANSTUN | CANWEAKEN | CANPARALYSE
M.status_flags |= CANPARALYSE
if(islist(M.stun_absorption) && M.stun_absorption["stimulants"])
M.remove_stun_absorption("stimulants")
..()
//the highest end antistun chem, removes stun and stamina rapidly.