Fixes red nightshade (#12786)

This commit is contained in:
Casper3667
2021-11-27 13:37:42 +01:00
committed by GitHub
parent ed9be6d9cf
commit 0282f6c596
4 changed files with 12 additions and 4 deletions

View File

@@ -94,7 +94,7 @@
if(is_overdosing(M, location, holder))
overdose(M, alien, removed, LAZYACCESS(M.chem_doses, type)/get_overdose(M, location, holder), holder) //Actual overdose threshold now = overdose + od_minimum_dose. ie. Synaptizine; 5u OD threshold + 1 unit min. metab'd dose = 6u actual OD threshold.
if(LAZYACCESS(M.chem_doses, type) == 0)
if(LAZYACCESS(M.chem_doses, type) <= 0)
initial_effect(M,alien, holder)
LAZYSET(M.chem_doses, type, LAZYACCESS(M.chem_doses, type) + removed)

View File

@@ -666,8 +666,9 @@
M.add_chemical_effect(CE_BERSERK, 1)
if(M.a_intent != I_HURT)
M.a_intent_change(I_HURT)
if(prob(10))
M.add_chemical_effect(CE_NEUROTOXIC, 5*removed)
var/obj/item/organ/internal/heart = M.internal_organs_by_name[BP_HEART]
if(heart)
M.add_chemical_effect(CE_CARDIOTOXIC, removed * 0.020)
/decl/reagent/toxin/spectrocybin
name = "Spectrocybin"