Ports Biotypes (#15471)

* Ports Biotypes

* styling

* converts a species trait

* comment
This commit is contained in:
Fox McCloud
2021-02-25 15:55:55 +00:00
committed by GitHub
parent 30194fedd3
commit 07d505b33b
75 changed files with 175 additions and 53 deletions
@@ -1040,20 +1040,19 @@
var/obj/structure/spacevine/SV = O
SV.on_chem_effect(src)
/datum/reagent/glyphosate/reaction_mob(mob/living/M, method=REAGENT_TOUCH, volume)
if(iscarbon(M))
var/mob/living/carbon/C = M
if(!C.wear_mask) // If not wearing a mask
C.adjustToxLoss(lethality)
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(IS_PLANT in H.dna.species.species_traits) //plantmen take extra damage
H.adjustToxLoss(3)
..()
else if(istype(M, /mob/living/simple_animal/diona)) //nymphs take EVEN MORE damage
var/mob/living/simple_animal/diona/D = M
D.adjustHealth(100)
..()
/datum/reagent/glyphosate/reaction_mob(mob/living/M, method = REAGENT_TOUCH, volume)
if(isliving(M))
if(M.mob_biotypes & MOB_PLANT)
var/damage = min(round(0.4 * volume, 0.1), 10)
M.adjustToxLoss(damage)
if(iscarbon(M))
var/mob/living/carbon/C = M
if(!C.wear_mask) // If not wearing a mask
C.adjustToxLoss(lethality)
if(istype(M, /mob/living/simple_animal/diona)) //nymphs take EVEN MORE damage
var/mob/living/simple_animal/diona/D = M
D.adjustHealth(100)
..()
/datum/reagent/glyphosate/atrazine
name = "Atrazine"
@@ -1081,15 +1080,17 @@
O.visible_message("<span class='warning'>The ants die.</span>")
qdel(O)
/datum/reagent/pestkiller/reaction_mob(mob/living/M, method=REAGENT_TOUCH, volume)
if(iscarbon(M))
var/mob/living/carbon/C = M
if(!C.wear_mask) // If not wearing a mask
C.adjustToxLoss(2)
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(iskidan(H)) //RIP
H.adjustToxLoss(20)
/datum/reagent/pestkiller/reaction_mob(mob/living/M, method = REAGENT_TOUCH, volume)
if(isliving(M))
if(M.mob_biotypes & MOB_BUG)
var/damage = min(round(0.4 * volume, 0.1), 10)
M.adjustToxLoss(damage)
if(iscarbon(M))
var/mob/living/carbon/C = M
if(!C.wear_mask) // If not wearing a mask
C.adjustToxLoss(2)
if(iskidan(C)) //RIP
C.adjustToxLoss(18)
/datum/reagent/capulettium
name = "Capulettium"