Merge pull request #33 from Azarak/master

Fixes for Stimulum and Nitryl
This commit is contained in:
quotefox
2019-10-14 16:49:49 +01:00
committed by GitHub
2 changed files with 9 additions and 1 deletions
@@ -1328,10 +1328,12 @@
..()
ADD_TRAIT(L, TRAIT_STUNIMMUNE, id)
ADD_TRAIT(L, TRAIT_SLEEPIMMUNE, id)
ADD_TRAIT(L, TRAIT_NOSLIPALL, id)
/datum/reagent/stimulum/on_mob_end_metabolize(mob/living/L)
REMOVE_TRAIT(L, TRAIT_STUNIMMUNE, id)
REMOVE_TRAIT(L, TRAIT_SLEEPIMMUNE, id)
REMOVE_TRAIT(L, TRAIT_NOSLIPALL, id)
..()
/datum/reagent/stimulum/on_mob_life(mob/living/carbon/M)
@@ -1358,6 +1360,11 @@
REMOVE_TRAIT(L, TRAIT_GOTTAGOFAST, id)
..()
/datum/reagent/nitryl/on_mob_life(mob/living/carbon/M)
current_cycle++
holder.remove_reagent(id, 0.99) //Gives time for the next tick of life().
. = TRUE //Update status effects.
/////////////////////////Coloured Crayon Powder////////////////////////////
//For colouring in /proc/mix_color_from_reagents
+2 -1
View File
@@ -317,7 +317,8 @@
H.adjustFireLoss(nitryl_pp/4)
gas_breathed = breath_gases[/datum/gas/nitryl]
if (gas_breathed > gas_stimulation_min)
H.reagents.add_reagent("no2",1)
var/existing = H.reagents.get_reagent_amount("no2")
H.reagents.add_reagent("no2", max(0, 5 - existing))
breath_gases[/datum/gas/nitryl]-=gas_breathed