mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Implemented adjustToxLoss(amount)
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2535 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
committed by
Albert Iordache
parent
91c2fd77e7
commit
e7a0a44ea4
@@ -192,7 +192,7 @@
|
|||||||
stage = 3
|
stage = 3
|
||||||
maxm = 3
|
maxm = 3
|
||||||
activate(var/mob/living/carbon/mob,var/multiplier)
|
activate(var/mob/living/carbon/mob,var/multiplier)
|
||||||
mob.toxloss += (2*multiplier)
|
mob.adjustToxLoss(2*multiplier)
|
||||||
|
|
||||||
/datum/disease2/effect/scream
|
/datum/disease2/effect/scream
|
||||||
name = "Random screaming syndrome"
|
name = "Random screaming syndrome"
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
name = "Toxification syndrome"
|
name = "Toxification syndrome"
|
||||||
stage = 4
|
stage = 4
|
||||||
activate(var/mob/living/carbon/mob,var/multiplier)
|
activate(var/mob/living/carbon/mob,var/multiplier)
|
||||||
mob.toxloss += 15
|
mob.adjustToxLoss(15)
|
||||||
/*
|
/*
|
||||||
/datum/disease2/effect/hallucinations
|
/datum/disease2/effect/hallucinations
|
||||||
name = "Hallucinational Syndrome"
|
name = "Hallucinational Syndrome"
|
||||||
|
|||||||
@@ -35,8 +35,8 @@
|
|||||||
if(M.virus2)
|
if(M.virus2)
|
||||||
M.virus2.cure_added(resistance)
|
M.virus2.cure_added(resistance)
|
||||||
else if(works == 1)
|
else if(works == 1)
|
||||||
M.toxloss += rand(20,50)
|
M.adjustToxLoss(rand(20,50))
|
||||||
else if(works == 2)
|
else if(works == 2)
|
||||||
M.toxloss += rand(50,100)
|
M.adjustToxLoss(rand(50,100))
|
||||||
else if(works == 3)
|
else if(works == 3)
|
||||||
infect_virus2(M,virus2,1)
|
infect_virus2(M,virus2,1)
|
||||||
|
|||||||
@@ -51,11 +51,11 @@
|
|||||||
if(prob(2))
|
if(prob(2))
|
||||||
affected_mob << "\red Your stomach hurts."
|
affected_mob << "\red Your stomach hurts."
|
||||||
if(prob(20))
|
if(prob(20))
|
||||||
affected_mob.toxloss += 1
|
affected_mob.adjustToxLoss(1)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(5)
|
if(5)
|
||||||
affected_mob << "\red You feel something tearing its way out of your stomach..."
|
affected_mob << "\red You feel something tearing its way out of your stomach..."
|
||||||
affected_mob.toxloss += 10
|
affected_mob.adjustToxLoss(10)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(prob(40))
|
if(prob(40))
|
||||||
ASSERT(gibbed == 0)
|
ASSERT(gibbed == 0)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
if(prob(3))
|
if(prob(3))
|
||||||
affected_mob << "\red You feel a stabbing pain in your abdomen!"
|
affected_mob << "\red You feel a stabbing pain in your abdomen!"
|
||||||
affected_mob.stunned = rand(2,3)
|
affected_mob.stunned = rand(2,3)
|
||||||
affected_mob.toxloss += 1
|
affected_mob.adjustToxLoss(1)
|
||||||
if(3)
|
if(3)
|
||||||
if(prob(1))
|
if(prob(1))
|
||||||
if (affected_mob.nutrition > 100)
|
if (affected_mob.nutrition > 100)
|
||||||
@@ -32,8 +32,8 @@
|
|||||||
if (istype(location, /turf/simulated))
|
if (istype(location, /turf/simulated))
|
||||||
location.add_vomit_floor(affected_mob)
|
location.add_vomit_floor(affected_mob)
|
||||||
affected_mob.nutrition -= 95
|
affected_mob.nutrition -= 95
|
||||||
affected_mob:toxloss = max(affected_mob:getToxLoss()-1,0)
|
affected_mob:adjustToxLoss(-1)
|
||||||
else
|
else
|
||||||
affected_mob << "\red You gag as you want to throw up, but there's nothing in your stomach!"
|
affected_mob << "\red You gag as you want to throw up, but there's nothing in your stomach!"
|
||||||
affected_mob.weakened += 10
|
affected_mob.weakened += 10
|
||||||
affected_mob.toxloss += 3
|
affected_mob.adjustToxLoss(3)
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
if(prob(2))
|
if(prob(2))
|
||||||
affected_mob << "\red Your try to remember something important...but can't."
|
affected_mob << "\red Your try to remember something important...but can't."
|
||||||
/* if(prob(10))
|
/* if(prob(10))
|
||||||
affected_mob.toxloss +=3
|
affected_mob.adjustToxLoss(3)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(prob(2))
|
if(prob(2))
|
||||||
affected_mob << "\red Your head hurts." */
|
affected_mob << "\red Your head hurts." */
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
if(prob(2))
|
if(prob(2))
|
||||||
affected_mob.emote("drool")
|
affected_mob.emote("drool")
|
||||||
/* if(prob(15))
|
/* if(prob(15))
|
||||||
affected_mob.toxloss +=4
|
affected_mob.adjustToxLoss(4)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(prob(2))
|
if(prob(2))
|
||||||
affected_mob << "\red Your head hurts." */
|
affected_mob << "\red Your head hurts." */
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
if(prob(1))
|
if(prob(1))
|
||||||
affected_mob << "\red Your stomach hurts."
|
affected_mob << "\red Your stomach hurts."
|
||||||
if(prob(20))
|
if(prob(20))
|
||||||
affected_mob.toxloss += 2
|
affected_mob.adjustToxLoss(2)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(4)
|
if(4)
|
||||||
if(!src.transformed)
|
if(!src.transformed)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
if(prob(1))
|
if(prob(1))
|
||||||
affected_mob << "\red Your stomach hurts."
|
affected_mob << "\red Your stomach hurts."
|
||||||
if(prob(20))
|
if(prob(20))
|
||||||
affected_mob.toxloss += 1
|
affected_mob.adjustToxLoss(1)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
|
|
||||||
if(3)
|
if(3)
|
||||||
@@ -49,6 +49,6 @@
|
|||||||
if(prob(1))
|
if(prob(1))
|
||||||
affected_mob << "\red Your stomach hurts."
|
affected_mob << "\red Your stomach hurts."
|
||||||
if(prob(20))
|
if(prob(20))
|
||||||
affected_mob.toxloss += 1
|
affected_mob.adjustToxLoss(1)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
switch(stage)
|
switch(stage)
|
||||||
if(2)
|
if(2)
|
||||||
if(prob(45))
|
if(prob(45))
|
||||||
affected_mob.toxloss += 5
|
affected_mob.adjustToxLoss(5)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(prob(1))
|
if(prob(1))
|
||||||
affected_mob.emote("sneeze")
|
affected_mob.emote("sneeze")
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
if(4)
|
if(4)
|
||||||
if(prob(10))
|
if(prob(10))
|
||||||
affected_mob.emote("cough")
|
affected_mob.emote("cough")
|
||||||
affected_mob.toxloss += 5
|
affected_mob.adjustToxLoss(5)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(5)
|
if(5)
|
||||||
affected_mob << "\red Your body feels as if it's trying to rip itself open..."
|
affected_mob << "\red Your body feels as if it's trying to rip itself open..."
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
if(affected_mob.ckey == "rosham")
|
if(affected_mob.ckey == "rosham")
|
||||||
src.cure()
|
src.cure()
|
||||||
if(prob(45))
|
if(prob(45))
|
||||||
affected_mob.toxloss += 5
|
affected_mob.adjustToxLoss(5)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(prob(1))
|
if(prob(1))
|
||||||
affected_mob << "\red You feel strange..."
|
affected_mob << "\red You feel strange..."
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
affected_mob.emote("gasp")
|
affected_mob.emote("gasp")
|
||||||
affected_mob << "\red You feel a burning beat inside..."
|
affected_mob << "\red You feel a burning beat inside..."
|
||||||
if(prob(20))
|
if(prob(20))
|
||||||
affected_mob.toxloss += 5
|
affected_mob.adjustToxLoss(5)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(5)
|
if(5)
|
||||||
if(affected_mob.ckey == "rosham")
|
if(affected_mob.ckey == "rosham")
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
affected_mob << "\red You can feel... something...inside you."
|
affected_mob << "\red You can feel... something...inside you."
|
||||||
if(5)
|
if(5)
|
||||||
affected_mob <<"\red Your skin feels as if it's about to burst off..."
|
affected_mob <<"\red Your skin feels as if it's about to burst off..."
|
||||||
affected_mob.toxloss += 10
|
affected_mob.adjustToxLoss(10)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(prob(40)) //So everyone can feel like robot Seth Brundle
|
if(prob(40)) //So everyone can feel like robot Seth Brundle
|
||||||
ASSERT(src.gibbed == 0)
|
ASSERT(src.gibbed == 0)
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
affected_mob << "\red You can feel... something...inside you."
|
affected_mob << "\red You can feel... something...inside you."
|
||||||
if(5)
|
if(5)
|
||||||
affected_mob <<"\red Your skin feels impossibly calloused..."
|
affected_mob <<"\red Your skin feels impossibly calloused..."
|
||||||
affected_mob.toxloss += 10
|
affected_mob.adjustToxLoss(10)
|
||||||
affected_mob.updatehealth()
|
affected_mob.updatehealth()
|
||||||
if(prob(40))
|
if(prob(40))
|
||||||
ASSERT(gibbed == 0)
|
ASSERT(gibbed == 0)
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
target.heal_overall_damage(amt_dam_brute,0)
|
target.heal_overall_damage(amt_dam_brute,0)
|
||||||
else if (amt_dam_fire <= 0)
|
else if (amt_dam_fire <= 0)
|
||||||
target.heal_overall_damage(amt_dam_brute,amt_dam_fire)
|
target.heal_overall_damage(amt_dam_brute,amt_dam_fire)
|
||||||
target.toxloss += amt_dam_tox
|
target.adjustToxLoss(amt_dam_tox)
|
||||||
target.oxyloss += amt_dam_oxy
|
target.oxyloss += amt_dam_oxy
|
||||||
//disabling
|
//disabling
|
||||||
target.weakened += amt_weaken
|
target.weakened += amt_weaken
|
||||||
|
|||||||
@@ -450,6 +450,10 @@ the mob is also allowed to move without any sort of restriction. For instance, i
|
|||||||
/mob/proc/getCloneLoss()
|
/mob/proc/getCloneLoss()
|
||||||
return cloneloss
|
return cloneloss
|
||||||
|
|
||||||
|
/mob/proc/adjustToxLoss(var/amount)
|
||||||
|
toxloss = max(toxloss + amount, 0)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Standard for setting hasn't been agreed upon yet.
|
// Standard for setting hasn't been agreed upon yet.
|
||||||
|
|
||||||
@@ -461,13 +465,6 @@ the mob is also allowed to move without any sort of restriction. For instance, i
|
|||||||
/mob/proc/setOxyLoss(var/T)
|
/mob/proc/setOxyLoss(var/T)
|
||||||
oxyloss = T
|
oxyloss = T
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/mob/proc/setToxLoss(var/T)
|
|
||||||
toxloss = T
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/mob/proc/setFireLoss(var/T)
|
/mob/proc/setFireLoss(var/T)
|
||||||
fireloss = T
|
fireloss = T
|
||||||
|
|
||||||
|
|||||||
@@ -894,7 +894,7 @@ var/using_new_click_proc = 0 //TODO ERRORAGE (This is temporary, while the DblCl
|
|||||||
)
|
)
|
||||||
|
|
||||||
C.oxyloss = max(0, C.oxyloss-25)
|
C.oxyloss = max(0, C.oxyloss-25)
|
||||||
C.toxloss = max(0, C.toxloss-25)
|
C.adjustToxLoss(-25)
|
||||||
|
|
||||||
if(istype(C, /mob/living/carbon/human))
|
if(istype(C, /mob/living/carbon/human))
|
||||||
// ------- YOUR TARGET IS HUMAN -------
|
// ------- YOUR TARGET IS HUMAN -------
|
||||||
|
|||||||
@@ -392,7 +392,7 @@
|
|||||||
connected = null
|
connected = null
|
||||||
O.name = text("monkey ([])",copytext(md5(M.real_name), 2, 6))
|
O.name = text("monkey ([])",copytext(md5(M.real_name), 2, 6))
|
||||||
O.take_overall_damage(M.getBruteLoss() + 40, M.fireloss)
|
O.take_overall_damage(M.getBruteLoss() + 40, M.fireloss)
|
||||||
O.toxloss += (M.getToxLoss() + 20)
|
O.adjustToxLoss(M.getToxLoss() + 20)
|
||||||
O.oxyloss += M.getOxyLoss()
|
O.oxyloss += M.getOxyLoss()
|
||||||
O.stat = M.stat
|
O.stat = M.stat
|
||||||
O.a_intent = "hurt"
|
O.a_intent = "hurt"
|
||||||
@@ -467,7 +467,7 @@
|
|||||||
i++
|
i++
|
||||||
updateappearance(O,O.dna.uni_identity)
|
updateappearance(O,O.dna.uni_identity)
|
||||||
O.take_overall_damage(M.getBruteLoss(), M.fireloss)
|
O.take_overall_damage(M.getBruteLoss(), M.fireloss)
|
||||||
O.toxloss += M.getToxLoss()
|
O.adjustToxLoss(M.getToxLoss())
|
||||||
O.oxyloss += M.getOxyLoss()
|
O.oxyloss += M.getOxyLoss()
|
||||||
O.stat = M.stat
|
O.stat = M.stat
|
||||||
for (var/obj/item/weapon/implant/I in implants)
|
for (var/obj/item/weapon/implant/I in implants)
|
||||||
|
|||||||
@@ -124,7 +124,7 @@
|
|||||||
while (src.occupant.health < 100)
|
while (src.occupant.health < 100)
|
||||||
src.occupant.oxyloss = max (src.occupant.getOxyLoss()-1, 0)
|
src.occupant.oxyloss = max (src.occupant.getOxyLoss()-1, 0)
|
||||||
src.occupant.fireloss = max (src.occupant.fireloss-1, 0)
|
src.occupant.fireloss = max (src.occupant.fireloss-1, 0)
|
||||||
src.occupant.toxloss = max (src.occupant.getToxLoss()-1, 0)
|
src.occupant.adjustToxLoss(-1)
|
||||||
src.occupant.bruteloss = max (src.occupant.getBruteLoss()-1, 0)
|
src.occupant.bruteloss = max (src.occupant.getBruteLoss()-1, 0)
|
||||||
src.occupant.updatehealth()
|
src.occupant.updatehealth()
|
||||||
if (src.occupant.health >= 0 && src.occupant.stat == 2)
|
if (src.occupant.health >= 0 && src.occupant.stat == 2)
|
||||||
|
|||||||
@@ -174,7 +174,7 @@
|
|||||||
//severe damage should heal waaay slower without proper chemicals
|
//severe damage should heal waaay slower without proper chemicals
|
||||||
if(occupant.bodytemperature < 225)
|
if(occupant.bodytemperature < 225)
|
||||||
if (occupant.getToxLoss())
|
if (occupant.getToxLoss())
|
||||||
occupant.toxloss = max(0, occupant.getToxLoss() - min(1, 20/occupant.getToxLoss()))
|
occupant.adjustToxLoss(max(-1, -20/occupant.getToxLoss()))
|
||||||
var/heal_brute = occupant.getBruteLoss() ? min(1, 20/occupant.getBruteLoss()) : 0
|
var/heal_brute = occupant.getBruteLoss() ? min(1, 20/occupant.getBruteLoss()) : 0
|
||||||
var/heal_fire = occupant.fireloss ? min(1, 20/occupant.fireloss) : 0
|
var/heal_fire = occupant.fireloss ? min(1, 20/occupant.fireloss) : 0
|
||||||
occupant.heal_organ_damage(heal_brute,heal_fire)
|
occupant.heal_organ_damage(heal_brute,heal_fire)
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ datum
|
|||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(prob(10))
|
if(prob(10))
|
||||||
M << "\red Your insides are burning!"
|
M << "\red Your insides are burning!"
|
||||||
M.toxloss+=rand(20,60)
|
M.adjustToxLoss(rand(20,60))
|
||||||
else if(prob(40))
|
else if(prob(40))
|
||||||
M:heal_organ_damage(5,0)
|
M:heal_organ_damage(5,0)
|
||||||
..()
|
..()
|
||||||
@@ -250,7 +250,7 @@ datum
|
|||||||
T.wet_overlay = null
|
T.wet_overlay = null
|
||||||
|
|
||||||
for(var/mob/living/carbon/metroid/M in T)
|
for(var/mob/living/carbon/metroid/M in T)
|
||||||
M.toxloss+=rand(15,20)
|
M.adjustToxLoss(rand(15,20))
|
||||||
|
|
||||||
var/hotspot = (locate(/obj/effect/hotspot) in T)
|
var/hotspot = (locate(/obj/effect/hotspot) in T)
|
||||||
if(hotspot && !istype(T, /turf/space))
|
if(hotspot && !istype(T, /turf/space))
|
||||||
@@ -324,7 +324,7 @@ datum
|
|||||||
holder.remove_reagent("carpotoxin", 1)
|
holder.remove_reagent("carpotoxin", 1)
|
||||||
if(holder.has_reagent("zombiepowder"))
|
if(holder.has_reagent("zombiepowder"))
|
||||||
holder.remove_reagent("zombiepowder", 0.5)
|
holder.remove_reagent("zombiepowder", 0.5)
|
||||||
M:toxloss = max(M:getToxLoss()-2,0)
|
M:adjustToxLoss(-2)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -337,7 +337,7 @@ datum
|
|||||||
|
|
||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:toxloss += 1.5
|
M:adjustToxLoss(1.5)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -350,7 +350,7 @@ datum
|
|||||||
|
|
||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:toxloss += 3
|
M:adjustToxLoss(3)
|
||||||
M:oxyloss += 3
|
M:oxyloss += 3
|
||||||
M:sleeping += 1
|
M:sleeping += 1
|
||||||
..()
|
..()
|
||||||
@@ -580,7 +580,7 @@ datum
|
|||||||
|
|
||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:toxloss++
|
M:adjustToxLoss(1)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -633,7 +633,7 @@ datum
|
|||||||
|
|
||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:toxloss++
|
M:adjustToxLoss(1)
|
||||||
M.take_organ_damage(0, 1)
|
M.take_organ_damage(0, 1)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
@@ -687,7 +687,7 @@ datum
|
|||||||
|
|
||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:toxloss++
|
M:adjustToxLoss(1)
|
||||||
M.take_organ_damage(0, 1)
|
M.take_organ_damage(0, 1)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
@@ -856,7 +856,7 @@ datum
|
|||||||
M.crit_op_stage = 0.0
|
M.crit_op_stage = 0.0
|
||||||
if (method==INGEST)
|
if (method==INGEST)
|
||||||
usr << "Well, that was stupid."
|
usr << "Well, that was stupid."
|
||||||
M:toxloss += 3
|
M:adjustToxLoss(3)
|
||||||
return
|
return
|
||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
@@ -958,7 +958,7 @@ datum
|
|||||||
return
|
return
|
||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:toxloss += 1
|
M:adjustToxLoss(1)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -982,7 +982,7 @@ datum
|
|||||||
del(C)
|
del(C)
|
||||||
|
|
||||||
for(var/mob/living/carbon/metroid/M in T)
|
for(var/mob/living/carbon/metroid/M in T)
|
||||||
M.toxloss+=rand(5,10)
|
M.adjustToxLoss(rand(5,10))
|
||||||
|
|
||||||
reaction_mob(var/mob/M, var/method=TOUCH, var/volume)
|
reaction_mob(var/mob/M, var/method=TOUCH, var/volume)
|
||||||
M.clean_blood()
|
M.clean_blood()
|
||||||
@@ -1016,7 +1016,7 @@ datum
|
|||||||
/* Don't know if this is necessary.
|
/* Don't know if this is necessary.
|
||||||
on_mob_life(var/mob/living/carbon/M)
|
on_mob_life(var/mob/living/carbon/M)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:toxloss += 3.0
|
M:adjustToxLoss(3.0)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
*/
|
*/
|
||||||
@@ -1035,9 +1035,9 @@ datum
|
|||||||
src = null
|
src = null
|
||||||
if(istype(M, /mob/living/carbon))
|
if(istype(M, /mob/living/carbon))
|
||||||
if(!M.wear_mask) // If not wearing a mask
|
if(!M.wear_mask) // If not wearing a mask
|
||||||
M:toxloss += 2 // 4 toxic damage per application, doubled for some reason
|
M:adjustToxLoss(2) // 4 toxic damage per application, doubled for some reason
|
||||||
if(istype(M,/mob/living/carbon/human) && M:mutantrace == "plant") //plantmen take a LOT of damage
|
if(istype(M,/mob/living/carbon/human) && M:mutantrace == "plant") //plantmen take a LOT of damage
|
||||||
M:toxloss += 10
|
M:adjustToxLoss(10)
|
||||||
//if(prob(10))
|
//if(prob(10))
|
||||||
//M.make_dizzy(1) doesn't seem to do anything
|
//M.make_dizzy(1) doesn't seem to do anything
|
||||||
|
|
||||||
@@ -1053,7 +1053,7 @@ datum
|
|||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
if(holder.has_reagent("inaprovaline"))
|
if(holder.has_reagent("inaprovaline"))
|
||||||
holder.remove_reagent("inaprovaline", 2)
|
holder.remove_reagent("inaprovaline", 2)
|
||||||
M:toxloss++
|
M:adjustToxLoss(1)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
reaction_obj(var/obj/O, var/volume)
|
reaction_obj(var/obj/O, var/volume)
|
||||||
@@ -1202,7 +1202,7 @@ datum
|
|||||||
if(M:getOxyLoss() && prob(40)) M:oxyloss--
|
if(M:getOxyLoss() && prob(40)) M:oxyloss--
|
||||||
if(M:getBruteLoss() && prob(40)) M:heal_organ_damage(1,0)
|
if(M:getBruteLoss() && prob(40)) M:heal_organ_damage(1,0)
|
||||||
if(M:fireloss && prob(40)) M:heal_organ_damage(0,1)
|
if(M:fireloss && prob(40)) M:heal_organ_damage(0,1)
|
||||||
if(M:getToxLoss() && prob(40)) M:toxloss--
|
if(M:getToxLoss() && prob(40)) M:adjustToxLoss(-1)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -1219,7 +1219,7 @@ datum
|
|||||||
M:oxyloss = 0
|
M:oxyloss = 0
|
||||||
M:radiation = 0
|
M:radiation = 0
|
||||||
M:heal_organ_damage(5,5)
|
M:heal_organ_damage(5,5)
|
||||||
if(M:getToxLoss()) M:toxloss = max(0, M:getToxLoss()-5)
|
if(M:getToxLoss()) M:adjustToxLoss(-5)
|
||||||
if(holder.has_reagent("toxin"))
|
if(holder.has_reagent("toxin"))
|
||||||
holder.remove_reagent("toxin", 5)
|
holder.remove_reagent("toxin", 5)
|
||||||
if(holder.has_reagent("stoxin"))
|
if(holder.has_reagent("stoxin"))
|
||||||
@@ -1280,7 +1280,7 @@ datum
|
|||||||
if(M:paralysis) M:paralysis--
|
if(M:paralysis) M:paralysis--
|
||||||
if(M:stunned) M:stunned--
|
if(M:stunned) M:stunned--
|
||||||
if(M:weakened) M:weakened--
|
if(M:weakened) M:weakened--
|
||||||
if(prob(60)) M:toxloss++
|
if(prob(60)) M:adjustToxLoss(1)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -1326,7 +1326,7 @@ datum
|
|||||||
return //See above, down and around. --Agouri
|
return //See above, down and around. --Agouri
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:radiation = max(M:radiation-7,0)
|
M:radiation = max(M:radiation-7,0)
|
||||||
if(M:getToxLoss()) M:toxloss--
|
if(M:getToxLoss()) M:adjustToxLoss(-1)
|
||||||
if(prob(15))
|
if(prob(15))
|
||||||
M.take_organ_damage(1, 0)
|
M.take_organ_damage(1, 0)
|
||||||
..()
|
..()
|
||||||
@@ -1403,7 +1403,7 @@ datum
|
|||||||
if(M:cloneloss) M:cloneloss = max(0, M:cloneloss-1)
|
if(M:cloneloss) M:cloneloss = max(0, M:cloneloss-1)
|
||||||
if(M:getOxyLoss()) M:oxyloss = max(0, M:getOxyLoss()-3)
|
if(M:getOxyLoss()) M:oxyloss = max(0, M:getOxyLoss()-3)
|
||||||
M:heal_organ_damage(3,3)
|
M:heal_organ_damage(3,3)
|
||||||
if(M:getToxLoss()) M:toxloss = max(0, M:getToxLoss()-3)
|
if(M:getToxLoss()) M:adjustToxLoss(-3)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -1420,7 +1420,7 @@ datum
|
|||||||
if(M:cloneloss) M:cloneloss = max(0, M:cloneloss-3)
|
if(M:cloneloss) M:cloneloss = max(0, M:cloneloss-3)
|
||||||
if(M:getOxyLoss()) M:oxyloss = max(0, M:getOxyLoss()-3)
|
if(M:getOxyLoss()) M:oxyloss = max(0, M:getOxyLoss()-3)
|
||||||
M:heal_organ_damage(3,3)
|
M:heal_organ_damage(3,3)
|
||||||
if(M:getToxLoss()) M:toxloss = max(0, M:getToxLoss()-3)
|
if(M:getToxLoss()) M:adjustToxLoss(-3)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -1445,7 +1445,7 @@ datum
|
|||||||
|
|
||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:toxloss += 2
|
M:adjustToxLoss(2)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -1458,7 +1458,7 @@ datum
|
|||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:oxyloss += 0.5
|
M:oxyloss += 0.5
|
||||||
M:toxloss += 0.5
|
M:adjustToxLoss(0.5)
|
||||||
M:weakened = max(M:weakened, 10)
|
M:weakened = max(M:weakened, 10)
|
||||||
M:silent = max(M:silent, 10)
|
M:silent = max(M:silent, 10)
|
||||||
..()
|
..()
|
||||||
@@ -1587,7 +1587,7 @@ datum
|
|||||||
M:sleeping += 1
|
M:sleeping += 1
|
||||||
if(51 to INFINITY)
|
if(51 to INFINITY)
|
||||||
M:sleeping += 1
|
M:sleeping += 1
|
||||||
M:toxloss += (data - 50)
|
M:adjustToxLoss(data - 50)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -1609,7 +1609,7 @@ datum
|
|||||||
M:sleeping += 1
|
M:sleeping += 1
|
||||||
if(51 to INFINITY)
|
if(51 to INFINITY)
|
||||||
M:sleeping += 1
|
M:sleeping += 1
|
||||||
M:toxloss += (data - 50)
|
M:adjustToxLoss(data - 50)
|
||||||
data++
|
data++
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
@@ -1640,7 +1640,7 @@ datum
|
|||||||
M.jitteriness += rand(0, 5)
|
M.jitteriness += rand(0, 5)
|
||||||
M.dizziness = max (0, (M.dizziness - rand(0, 15)))
|
M.dizziness = max (0, (M.dizziness - rand(0, 15)))
|
||||||
M.druggy = max (0, (M.druggy - rand(0, 15)))
|
M.druggy = max (0, (M.druggy - rand(0, 15)))
|
||||||
M.toxloss = max (0, (M.getToxLoss() - rand(5, 15)))
|
M.adjustToxLoss(rand(-15, -5)))
|
||||||
M.updatehealth()
|
M.updatehealth()
|
||||||
*/
|
*/
|
||||||
..()
|
..()
|
||||||
@@ -1701,7 +1701,7 @@ datum
|
|||||||
|
|
||||||
reaction_turf(var/turf/simulated/T, var/volume)
|
reaction_turf(var/turf/simulated/T, var/volume)
|
||||||
for(var/mob/living/carbon/metroid/M in T)
|
for(var/mob/living/carbon/metroid/M in T)
|
||||||
M.toxloss+=rand(15,30)
|
M.adjustToxLoss(rand(15,30))
|
||||||
|
|
||||||
sodiumchloride
|
sodiumchloride
|
||||||
name = "Table Salt"
|
name = "Table Salt"
|
||||||
@@ -1753,7 +1753,7 @@ datum
|
|||||||
|
|
||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:toxloss++
|
M:adjustToxLoss(1)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -1960,7 +1960,7 @@ datum
|
|||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
M:nutrition += nutriment_factor
|
M:nutrition += nutriment_factor
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
if(M:getToxLoss() && prob(20)) M:toxloss--
|
if(M:getToxLoss() && prob(20)) M:adjustToxLoss(-1)
|
||||||
M:nutrition++
|
M:nutrition++
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
@@ -2014,7 +2014,7 @@ datum
|
|||||||
on_mob_life(var/mob/living/M as mob)
|
on_mob_life(var/mob/living/M as mob)
|
||||||
if(!M) M = holder.my_atom
|
if(!M) M = holder.my_atom
|
||||||
M:nutrition += nutriment_factor
|
M:nutrition += nutriment_factor
|
||||||
M:toxloss += 1
|
M:adjustToxLoss(1)
|
||||||
..()
|
..()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -2168,7 +2168,7 @@ datum
|
|||||||
M:jitteriness = max(0,M:jitteriness-3)
|
M:jitteriness = max(0,M:jitteriness-3)
|
||||||
M:sleeping = 0
|
M:sleeping = 0
|
||||||
if(M:getToxLoss() && prob(20))
|
if(M:getToxLoss() && prob(20))
|
||||||
M:toxloss--
|
M:adjustToxLoss(-1)
|
||||||
if (M.bodytemperature < 310) //310 is the normal bodytemp. 310.055
|
if (M.bodytemperature < 310) //310 is the normal bodytemp. 310.055
|
||||||
M.bodytemperature = min(310, M.bodytemperature+5)
|
M.bodytemperature = min(310, M.bodytemperature+5)
|
||||||
..()
|
..()
|
||||||
@@ -2205,7 +2205,7 @@ datum
|
|||||||
M:drowsyness = max(0,M:drowsyness-1)
|
M:drowsyness = max(0,M:drowsyness-1)
|
||||||
M:sleeping = 0
|
M:sleeping = 0
|
||||||
if(M:getToxLoss() && prob(20))
|
if(M:getToxLoss() && prob(20))
|
||||||
M:toxloss--
|
M:adjustToxLoss(-1)
|
||||||
if (M.bodytemperature > 310)//310 is the normal bodytemp. 310.055
|
if (M.bodytemperature > 310)//310 is the normal bodytemp. 310.055
|
||||||
M.bodytemperature = min(310, M.bodytemperature-5)
|
M.bodytemperature = min(310, M.bodytemperature-5)
|
||||||
return
|
return
|
||||||
@@ -3033,7 +3033,7 @@ datum
|
|||||||
if(M:getOxyLoss() && prob(50)) M:oxyloss -= 2
|
if(M:getOxyLoss() && prob(50)) M:oxyloss -= 2
|
||||||
if(M:getBruteLoss() && prob(60)) M:heal_organ_damage(2,0)
|
if(M:getBruteLoss() && prob(60)) M:heal_organ_damage(2,0)
|
||||||
if(M:fireloss && prob(50)) M:heal_organ_damage(0,2)
|
if(M:fireloss && prob(50)) M:heal_organ_damage(0,2)
|
||||||
if(M:getToxLoss() && prob(50)) M:toxloss -= 2
|
if(M:getToxLoss() && prob(50)) M:adjustToxLoss(-2)
|
||||||
if(M.dizziness !=0) M.dizziness = max(0,M.dizziness-15)
|
if(M.dizziness !=0) M.dizziness = max(0,M.dizziness-15)
|
||||||
if(M.confused !=0) M.confused = max(0,M.confused - 5)
|
if(M.confused !=0) M.confused = max(0,M.confused - 5)
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
blob_act()
|
blob_act()
|
||||||
src << "The blob attempts to reabsorb you."
|
src << "The blob attempts to reabsorb you."
|
||||||
toxloss += 20
|
adjustToxLoss(20)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ Doesn't work on other aliens/AI.*/
|
|||||||
set category = "Alien"
|
set category = "Alien"
|
||||||
|
|
||||||
if(powerc(50,1))
|
if(powerc(50,1))
|
||||||
toxloss -= 50
|
adjustToxLoss(-50)
|
||||||
for(var/mob/O in viewers(src, null))
|
for(var/mob/O in viewers(src, null))
|
||||||
O.show_message(text("\green <B>[src] has planted some alien weeds!</B>"), 1)
|
O.show_message(text("\green <B>[src] has planted some alien weeds!</B>"), 1)
|
||||||
new /obj/effect/alien/weeds/node(loc)
|
new /obj/effect/alien/weeds/node(loc)
|
||||||
@@ -36,7 +36,7 @@ Doesn't work on other aliens/AI.*/
|
|||||||
set category = "Alien"
|
set category = "Alien"
|
||||||
|
|
||||||
if(powerc(5))
|
if(powerc(5))
|
||||||
toxloss -= 5
|
adjustToxLoss(-5)
|
||||||
for(var/obj/item/clothing/mask/facehugger/F in range(8,src))
|
for(var/obj/item/clothing/mask/facehugger/F in range(8,src))
|
||||||
F.GoActive()
|
F.GoActive()
|
||||||
emote("roar")
|
emote("roar")
|
||||||
@@ -48,7 +48,7 @@ Doesn't work on other aliens/AI.*/
|
|||||||
set category = "Alien"
|
set category = "Alien"
|
||||||
|
|
||||||
if(powerc(10))
|
if(powerc(10))
|
||||||
toxloss -= 10
|
adjustToxLoss(-10)
|
||||||
var/msg = sanitize(input("Message:", "Alien Whisper") as text|null)
|
var/msg = sanitize(input("Message:", "Alien Whisper") as text|null)
|
||||||
if(msg)
|
if(msg)
|
||||||
log_say("AlienWhisper: [key_name(src)]->[M.key] : [msg]")
|
log_say("AlienWhisper: [key_name(src)]->[M.key] : [msg]")
|
||||||
@@ -66,8 +66,8 @@ Doesn't work on other aliens/AI.*/
|
|||||||
if (amount)
|
if (amount)
|
||||||
if(powerc(amount))
|
if(powerc(amount))
|
||||||
if (get_dist(src,M) <= 1)
|
if (get_dist(src,M) <= 1)
|
||||||
M.toxloss += amount
|
M.adjustToxLoss(amount)
|
||||||
toxloss -= amount
|
adjustToxLoss(-amount)
|
||||||
M << "\green [src] has transfered [amount] plasma to you."
|
M << "\green [src] has transfered [amount] plasma to you."
|
||||||
src << {"\green You have trasferred [amount] plasma to [M]"}
|
src << {"\green You have trasferred [amount] plasma to [M]"}
|
||||||
else
|
else
|
||||||
@@ -101,7 +101,7 @@ I kind of like the right click only--the window version can get a little confusi
|
|||||||
if(!A == "Abort Command")
|
if(!A == "Abort Command")
|
||||||
if(powerc(200))//Check 2.
|
if(powerc(200))//Check 2.
|
||||||
if(A in view(1))//Check 3.
|
if(A in view(1))//Check 3.
|
||||||
toxloss -= 200
|
adjustToxLoss(-200)
|
||||||
A.acid(src)
|
A.acid(src)
|
||||||
else
|
else
|
||||||
src << "\green Target is too far away."
|
src << "\green Target is too far away."
|
||||||
@@ -115,7 +115,7 @@ I kind of like the right click only--the window version can get a little confusi
|
|||||||
if(istype(O, /obj))
|
if(istype(O, /obj))
|
||||||
if(powerc(200))
|
if(powerc(200))
|
||||||
if(!O.unacidable)
|
if(!O.unacidable)
|
||||||
toxloss -= 200
|
adjustToxLoss(-200)
|
||||||
O.acid()
|
O.acid()
|
||||||
else//So the aliens don't destroy energy fields/singularies/other aliens/etc with their acid.
|
else//So the aliens don't destroy energy fields/singularies/other aliens/etc with their acid.
|
||||||
src << "\green You cannot destroy this object."
|
src << "\green You cannot destroy this object."
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
set category = "Alien"
|
set category = "Alien"
|
||||||
|
|
||||||
if(powerc(500))
|
if(powerc(500))
|
||||||
toxloss -= 500
|
adjustToxLoss(-500)
|
||||||
src << "\green You begin to evolve!"
|
src << "\green You begin to evolve!"
|
||||||
for(var/mob/O in viewers(src, null))
|
for(var/mob/O in viewers(src, null))
|
||||||
O.show_message(text("\green <B>[src] begins to twist and contort!</B>"), 1)
|
O.show_message(text("\green <B>[src] begins to twist and contort!</B>"), 1)
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
set category = "Alien"
|
set category = "Alien"
|
||||||
|
|
||||||
if(powerc(100))
|
if(powerc(100))
|
||||||
toxloss -= 100
|
adjustToxLoss(-100)
|
||||||
var/choice = input("Choose what you wish to shape.","Resin building") as anything in list("resin wall","resin membrane") //would do it through typesof but then the player choice would have the type path and we don't want the internal workings to be exposed ICly - Urist
|
var/choice = input("Choose what you wish to shape.","Resin building") as anything in list("resin wall","resin membrane") //would do it through typesof but then the player choice would have the type path and we don't want the internal workings to be exposed ICly - Urist
|
||||||
src << "\green You shape a [choice]."
|
src << "\green You shape a [choice]."
|
||||||
for(var/mob/O in viewers(src, null))
|
for(var/mob/O in viewers(src, null))
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
//If there are alien weeds on the ground then heal if needed or give some toxins
|
//If there are alien weeds on the ground then heal if needed or give some toxins
|
||||||
if(locate(/obj/effect/alien/weeds) in loc)
|
if(locate(/obj/effect/alien/weeds) in loc)
|
||||||
if(health >= 150)
|
if(health >= 150)
|
||||||
toxloss += 5
|
adjustToxLoss(5)
|
||||||
if(getToxLoss() > max_plasma)
|
if(getToxLoss() > max_plasma)
|
||||||
toxloss = max_plasma
|
toxloss = max_plasma
|
||||||
|
|
||||||
@@ -166,7 +166,7 @@
|
|||||||
set category = "Alien"
|
set category = "Alien"
|
||||||
|
|
||||||
if(powerc(50))
|
if(powerc(50))
|
||||||
toxloss -= 50
|
adjustToxLoss(-50)
|
||||||
alien_invis = 1.0
|
alien_invis = 1.0
|
||||||
src << "\green You are now invisible."
|
src << "\green You are now invisible."
|
||||||
for(var/mob/O in oviewers(src, null))
|
for(var/mob/O in oviewers(src, null))
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
//If there are alien weeds on the ground then heal if needed or give some toxins
|
//If there are alien weeds on the ground then heal if needed or give some toxins
|
||||||
if(locate(/obj/effect/alien/weeds) in loc)
|
if(locate(/obj/effect/alien/weeds) in loc)
|
||||||
if(health >= 125)
|
if(health >= 125)
|
||||||
toxloss += 10
|
adjustToxLoss(10)
|
||||||
if(getToxLoss() > max_plasma)
|
if(getToxLoss() > max_plasma)
|
||||||
toxloss = max_plasma
|
toxloss = max_plasma
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
if(isalien(target))
|
if(isalien(target))
|
||||||
src << "\green Your allies are not a valid target."
|
src << "\green Your allies are not a valid target."
|
||||||
return
|
return
|
||||||
toxloss -= 50
|
adjustToxLoss(-50)
|
||||||
src << "\green You spit neurotoxin at [target]."
|
src << "\green You spit neurotoxin at [target]."
|
||||||
for(var/mob/O in oviewers())
|
for(var/mob/O in oviewers())
|
||||||
if ((O.client && !( O.blinded )))
|
if ((O.client && !( O.blinded )))
|
||||||
|
|||||||
@@ -149,12 +149,12 @@
|
|||||||
if(1 to 49)
|
if(1 to 49)
|
||||||
src.radiation--
|
src.radiation--
|
||||||
if(prob(25))
|
if(prob(25))
|
||||||
src.toxloss++
|
src.adjustToxLoss(1)
|
||||||
src.updatehealth()
|
src.updatehealth()
|
||||||
|
|
||||||
if(50 to 74)
|
if(50 to 74)
|
||||||
src.radiation -= 2
|
src.radiation -= 2
|
||||||
src.toxloss++
|
src.adjustToxLoss(1)
|
||||||
if(prob(5))
|
if(prob(5))
|
||||||
src.radiation -= 5
|
src.radiation -= 5
|
||||||
src.weakened = 3
|
src.weakened = 3
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
|
|
||||||
if(75 to 100)
|
if(75 to 100)
|
||||||
src.radiation -= 3
|
src.radiation -= 3
|
||||||
src.toxloss += 3
|
src.adjustToxLoss(3)
|
||||||
if(prob(1))
|
if(prob(1))
|
||||||
src << "\red You mutate!"
|
src << "\red You mutate!"
|
||||||
randmutb(src)
|
randmutb(src)
|
||||||
@@ -267,7 +267,7 @@
|
|||||||
|
|
||||||
if(Toxins_pp) // Detect toxins in air
|
if(Toxins_pp) // Detect toxins in air
|
||||||
|
|
||||||
toxloss += breath.toxins*250
|
adjustToxLoss(breath.toxins*250)
|
||||||
toxins_alert = max(toxins_alert, 1)
|
toxins_alert = max(toxins_alert, 1)
|
||||||
|
|
||||||
toxins_used = breath.toxins
|
toxins_used = breath.toxins
|
||||||
@@ -295,7 +295,7 @@
|
|||||||
//If there are alien weeds on the ground then heal if needed or give some toxins
|
//If there are alien weeds on the ground then heal if needed or give some toxins
|
||||||
if(locate(/obj/effect/alien/weeds) in loc)
|
if(locate(/obj/effect/alien/weeds) in loc)
|
||||||
if(health >= 100)
|
if(health >= 100)
|
||||||
toxloss += 15
|
adjustToxLoss(15)
|
||||||
if(getToxLoss() > max_plasma)
|
if(getToxLoss() > max_plasma)
|
||||||
toxloss = max_plasma
|
toxloss = max_plasma
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
//If there are alien weeds on the ground then heal if needed or give some toxins
|
//If there are alien weeds on the ground then heal if needed or give some toxins
|
||||||
if(locate(/obj/effect/alien/weeds) in loc)
|
if(locate(/obj/effect/alien/weeds) in loc)
|
||||||
if(health >= 250)
|
if(health >= 250)
|
||||||
toxloss += 20
|
adjustToxLoss(20)
|
||||||
if(getToxLoss() > max_plasma)
|
if(getToxLoss() > max_plasma)
|
||||||
toxloss = max_plasma
|
toxloss = max_plasma
|
||||||
else
|
else
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
if(powerc(50,1))//Can't plant eggs on spess tiles. That's silly.
|
if(powerc(50,1))//Can't plant eggs on spess tiles. That's silly.
|
||||||
toxloss -= 200
|
adjustToxLoss(-200)
|
||||||
for(var/mob/O in viewers(src, null))
|
for(var/mob/O in viewers(src, null))
|
||||||
O.show_message(text("\green <B>[src] has laid an egg!</B>"), 1)
|
O.show_message(text("\green <B>[src] has laid an egg!</B>"), 1)
|
||||||
new /obj/effect/alien/egg(loc)
|
new /obj/effect/alien/egg(loc)
|
||||||
|
|||||||
@@ -129,12 +129,12 @@
|
|||||||
if(1 to 49)
|
if(1 to 49)
|
||||||
radiation--
|
radiation--
|
||||||
if(prob(25))
|
if(prob(25))
|
||||||
toxloss++
|
adjustToxLoss(1)
|
||||||
updatehealth()
|
updatehealth()
|
||||||
|
|
||||||
if(50 to 74)
|
if(50 to 74)
|
||||||
radiation -= 2
|
radiation -= 2
|
||||||
toxloss++
|
adjustToxLoss(1)
|
||||||
if(prob(5))
|
if(prob(5))
|
||||||
radiation -= 5
|
radiation -= 5
|
||||||
weakened = 3
|
weakened = 3
|
||||||
@@ -144,7 +144,7 @@
|
|||||||
|
|
||||||
if(75 to 100)
|
if(75 to 100)
|
||||||
radiation -= 3
|
radiation -= 3
|
||||||
toxloss += 3
|
adjustToxLoss(3)
|
||||||
updatehealth()
|
updatehealth()
|
||||||
|
|
||||||
update_mind()
|
update_mind()
|
||||||
@@ -248,7 +248,7 @@
|
|||||||
|
|
||||||
if(Toxins_pp) // Detect toxins in air
|
if(Toxins_pp) // Detect toxins in air
|
||||||
|
|
||||||
toxloss += breath.toxins*250
|
adjustToxLoss(breath.toxins*250)
|
||||||
toxins_alert = max(toxins_alert, 1)
|
toxins_alert = max(toxins_alert, 1)
|
||||||
|
|
||||||
toxins_used = breath.toxins
|
toxins_used = breath.toxins
|
||||||
@@ -276,7 +276,7 @@
|
|||||||
//If there are alien weeds on the ground then heal if needed or give some toxins
|
//If there are alien weeds on the ground then heal if needed or give some toxins
|
||||||
if(locate(/obj/effect/alien/weeds) in loc)
|
if(locate(/obj/effect/alien/weeds) in loc)
|
||||||
if(health >= 25)
|
if(health >= 25)
|
||||||
toxloss += 5
|
adjustToxLoss(5)
|
||||||
else
|
else
|
||||||
bruteloss -= 5
|
bruteloss -= 5
|
||||||
fireloss -= 5
|
fireloss -= 5
|
||||||
|
|||||||
@@ -62,12 +62,12 @@
|
|||||||
if(1 to 49)
|
if(1 to 49)
|
||||||
radiation--
|
radiation--
|
||||||
if(prob(25))
|
if(prob(25))
|
||||||
toxloss++
|
adjustToxLoss(1)
|
||||||
updatehealth()
|
updatehealth()
|
||||||
|
|
||||||
if(50 to 74)
|
if(50 to 74)
|
||||||
radiation -= 2
|
radiation -= 2
|
||||||
toxloss++
|
adjustToxLoss(1)
|
||||||
if(prob(5))
|
if(prob(5))
|
||||||
radiation -= 5
|
radiation -= 5
|
||||||
weakened = 3
|
weakened = 3
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
if(75 to 100)
|
if(75 to 100)
|
||||||
radiation -= 3
|
radiation -= 3
|
||||||
toxloss += 3
|
adjustToxLoss(3)
|
||||||
if(prob(1))
|
if(prob(1))
|
||||||
src << "\red You mutate!"
|
src << "\red You mutate!"
|
||||||
randmutb(src)
|
randmutb(src)
|
||||||
|
|||||||
@@ -190,12 +190,12 @@
|
|||||||
if(1 to 49)
|
if(1 to 49)
|
||||||
radiation--
|
radiation--
|
||||||
if(prob(25))
|
if(prob(25))
|
||||||
toxloss++
|
adjustToxLoss(1)
|
||||||
updatehealth()
|
updatehealth()
|
||||||
|
|
||||||
if(50 to 74)
|
if(50 to 74)
|
||||||
radiation -= 2
|
radiation -= 2
|
||||||
toxloss++
|
adjustToxLoss(1)
|
||||||
if(prob(5))
|
if(prob(5))
|
||||||
radiation -= 5
|
radiation -= 5
|
||||||
weakened = 3
|
weakened = 3
|
||||||
@@ -205,7 +205,7 @@
|
|||||||
|
|
||||||
if(75 to 100)
|
if(75 to 100)
|
||||||
radiation -= 3
|
radiation -= 3
|
||||||
toxloss += 3
|
adjustToxLoss(3)
|
||||||
if(prob(1))
|
if(prob(1))
|
||||||
src << "\red You mutate!"
|
src << "\red You mutate!"
|
||||||
randmutb(src)
|
randmutb(src)
|
||||||
@@ -369,7 +369,7 @@
|
|||||||
|
|
||||||
if(Toxins_pp > safe_toxins_max) // Too much toxins
|
if(Toxins_pp > safe_toxins_max) // Too much toxins
|
||||||
var/ratio = breath.toxins/safe_toxins_max
|
var/ratio = breath.toxins/safe_toxins_max
|
||||||
toxloss += min(ratio, 10) //Limit amount of damage toxin exposure can do per second
|
adjustToxLoss(min(ratio, 10)) //Limit amount of damage toxin exposure can do per second
|
||||||
toxins_alert = max(toxins_alert, 1)
|
toxins_alert = max(toxins_alert, 1)
|
||||||
else
|
else
|
||||||
toxins_alert = 0
|
toxins_alert = 0
|
||||||
@@ -605,8 +605,8 @@
|
|||||||
heal_overall_damage(0,1)
|
heal_overall_damage(0,1)
|
||||||
if(getBruteLoss())
|
if(getBruteLoss())
|
||||||
heal_overall_damage(1,0)
|
heal_overall_damage(1,0)
|
||||||
if(getToxLoss())
|
adjustToxLoss(-1)
|
||||||
toxloss--
|
|
||||||
if(getOxyLoss())
|
if(getOxyLoss())
|
||||||
oxyloss--
|
oxyloss--
|
||||||
|
|
||||||
|
|||||||
@@ -417,7 +417,7 @@
|
|||||||
|
|
||||||
if(prob(30))
|
if(prob(30))
|
||||||
if(getOxyLoss()>0) oxyloss = max(getOxyLoss()-1, 0)
|
if(getOxyLoss()>0) oxyloss = max(getOxyLoss()-1, 0)
|
||||||
if(getToxLoss()>0) toxloss = max(getToxLoss()-1, 0)
|
if(getToxLoss()>0) adjustToxLoss(-1)
|
||||||
if(fireloss>0) fireloss = max(fireloss-1,0)
|
if(fireloss>0) fireloss = max(fireloss-1,0)
|
||||||
if(cloneloss>0) cloneloss = max(cloneloss-1,0)
|
if(cloneloss>0) cloneloss = max(cloneloss-1,0)
|
||||||
if(getBruteLoss()>0) bruteloss = max(getBruteLoss()-1,0)
|
if(getBruteLoss()>0) bruteloss = max(getBruteLoss()-1,0)
|
||||||
@@ -486,7 +486,7 @@
|
|||||||
nutrition = 0
|
nutrition = 0
|
||||||
if(prob(75))
|
if(prob(75))
|
||||||
|
|
||||||
toxloss+=rand(0,5)
|
adjustToxLoss(rand(0,5))
|
||||||
|
|
||||||
else
|
else
|
||||||
if(istype(src, /mob/living/carbon/metroid/adult))
|
if(istype(src, /mob/living/carbon/metroid/adult))
|
||||||
|
|||||||
@@ -72,12 +72,12 @@
|
|||||||
|
|
||||||
if(istype(M, /mob/living/carbon))
|
if(istype(M, /mob/living/carbon))
|
||||||
Victim.cloneloss += rand(1,10)
|
Victim.cloneloss += rand(1,10)
|
||||||
Victim.toxloss += rand(1,2)
|
Victim.adjustToxLoss(rand(1,2))
|
||||||
if(Victim.health <= 0)
|
if(Victim.health <= 0)
|
||||||
Victim.toxloss += rand(2,4)
|
Victim.adjustToxLoss(rand(2,4))
|
||||||
|
|
||||||
if(getToxLoss() > 0)
|
if(getToxLoss() > 0)
|
||||||
toxloss = max(0, getToxLoss()-10)
|
adjustToxLoss(-10)
|
||||||
|
|
||||||
if(getOxyLoss() > 0)
|
if(getOxyLoss() > 0)
|
||||||
oxyloss = max(0, getOxyLoss()-10)
|
oxyloss = max(0, getOxyLoss()-10)
|
||||||
|
|||||||
@@ -149,12 +149,12 @@
|
|||||||
if(1 to 49)
|
if(1 to 49)
|
||||||
src.radiation--
|
src.radiation--
|
||||||
if(prob(25))
|
if(prob(25))
|
||||||
src.toxloss++
|
src.adjustToxLoss(1)
|
||||||
src.updatehealth()
|
src.updatehealth()
|
||||||
|
|
||||||
if(50 to 74)
|
if(50 to 74)
|
||||||
src.radiation -= 2
|
src.radiation -= 2
|
||||||
src.toxloss++
|
src.adjustToxLoss(1)
|
||||||
if(prob(5))
|
if(prob(5))
|
||||||
src.radiation -= 5
|
src.radiation -= 5
|
||||||
src.weakened = 3
|
src.weakened = 3
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
|
|
||||||
if(75 to 100)
|
if(75 to 100)
|
||||||
src.radiation -= 3
|
src.radiation -= 3
|
||||||
src.toxloss += 3
|
src.adjustToxLoss(3)
|
||||||
if(prob(1))
|
if(prob(1))
|
||||||
src << "\red You mutate!"
|
src << "\red You mutate!"
|
||||||
randmutb(src)
|
randmutb(src)
|
||||||
@@ -316,7 +316,7 @@
|
|||||||
|
|
||||||
if(Toxins_pp > safe_toxins_max) // Too much toxins
|
if(Toxins_pp > safe_toxins_max) // Too much toxins
|
||||||
var/ratio = breath.toxins/safe_toxins_max
|
var/ratio = breath.toxins/safe_toxins_max
|
||||||
toxloss += min(ratio, 10) //Limit amount of damage toxin exposure can do per second
|
adjustToxLoss(min(ratio, 10)) //Limit amount of damage toxin exposure can do per second
|
||||||
toxins_alert = max(toxins_alert, 1)
|
toxins_alert = max(toxins_alert, 1)
|
||||||
else
|
else
|
||||||
toxins_alert = 0
|
toxins_alert = 0
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
if(mutations & COLD_RESISTANCE) damage = 0
|
if(mutations & COLD_RESISTANCE) damage = 0
|
||||||
fireloss += (damage/(blocked+1))
|
fireloss += (damage/(blocked+1))
|
||||||
if(TOX)
|
if(TOX)
|
||||||
toxloss += (damage/(blocked+1))
|
adjustToxLoss(damage/(blocked+1))
|
||||||
if(OXY)
|
if(OXY)
|
||||||
oxyloss += (damage/(blocked+1))
|
oxyloss += (damage/(blocked+1))
|
||||||
if(CLONE)
|
if(CLONE)
|
||||||
|
|||||||
Reference in New Issue
Block a user