mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01: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
@@ -67,7 +67,7 @@
|
||||
|
||||
blob_act()
|
||||
src << "The blob attempts to reabsorb you."
|
||||
toxloss += 20
|
||||
adjustToxLoss(20)
|
||||
return
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ Doesn't work on other aliens/AI.*/
|
||||
set category = "Alien"
|
||||
|
||||
if(powerc(50,1))
|
||||
toxloss -= 50
|
||||
adjustToxLoss(-50)
|
||||
for(var/mob/O in viewers(src, null))
|
||||
O.show_message(text("\green <B>[src] has planted some alien weeds!</B>"), 1)
|
||||
new /obj/effect/alien/weeds/node(loc)
|
||||
@@ -36,7 +36,7 @@ Doesn't work on other aliens/AI.*/
|
||||
set category = "Alien"
|
||||
|
||||
if(powerc(5))
|
||||
toxloss -= 5
|
||||
adjustToxLoss(-5)
|
||||
for(var/obj/item/clothing/mask/facehugger/F in range(8,src))
|
||||
F.GoActive()
|
||||
emote("roar")
|
||||
@@ -48,7 +48,7 @@ Doesn't work on other aliens/AI.*/
|
||||
set category = "Alien"
|
||||
|
||||
if(powerc(10))
|
||||
toxloss -= 10
|
||||
adjustToxLoss(-10)
|
||||
var/msg = sanitize(input("Message:", "Alien Whisper") as text|null)
|
||||
if(msg)
|
||||
log_say("AlienWhisper: [key_name(src)]->[M.key] : [msg]")
|
||||
@@ -66,8 +66,8 @@ Doesn't work on other aliens/AI.*/
|
||||
if (amount)
|
||||
if(powerc(amount))
|
||||
if (get_dist(src,M) <= 1)
|
||||
M.toxloss += amount
|
||||
toxloss -= amount
|
||||
M.adjustToxLoss(amount)
|
||||
adjustToxLoss(-amount)
|
||||
M << "\green [src] has transfered [amount] plasma to you."
|
||||
src << {"\green You have trasferred [amount] plasma to [M]"}
|
||||
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(powerc(200))//Check 2.
|
||||
if(A in view(1))//Check 3.
|
||||
toxloss -= 200
|
||||
adjustToxLoss(-200)
|
||||
A.acid(src)
|
||||
else
|
||||
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(powerc(200))
|
||||
if(!O.unacidable)
|
||||
toxloss -= 200
|
||||
adjustToxLoss(-200)
|
||||
O.acid()
|
||||
else//So the aliens don't destroy energy fields/singularies/other aliens/etc with their acid.
|
||||
src << "\green You cannot destroy this object."
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
set category = "Alien"
|
||||
|
||||
if(powerc(500))
|
||||
toxloss -= 500
|
||||
adjustToxLoss(-500)
|
||||
src << "\green You begin to evolve!"
|
||||
for(var/mob/O in viewers(src, null))
|
||||
O.show_message(text("\green <B>[src] begins to twist and contort!</B>"), 1)
|
||||
@@ -40,7 +40,7 @@
|
||||
set category = "Alien"
|
||||
|
||||
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
|
||||
src << "\green You shape a [choice]."
|
||||
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(locate(/obj/effect/alien/weeds) in loc)
|
||||
if(health >= 150)
|
||||
toxloss += 5
|
||||
adjustToxLoss(5)
|
||||
if(getToxLoss() > max_plasma)
|
||||
toxloss = max_plasma
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
set category = "Alien"
|
||||
|
||||
if(powerc(50))
|
||||
toxloss -= 50
|
||||
adjustToxLoss(-50)
|
||||
alien_invis = 1.0
|
||||
src << "\green You are now invisible."
|
||||
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(locate(/obj/effect/alien/weeds) in loc)
|
||||
if(health >= 125)
|
||||
toxloss += 10
|
||||
adjustToxLoss(10)
|
||||
if(getToxLoss() > max_plasma)
|
||||
toxloss = max_plasma
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
if(isalien(target))
|
||||
src << "\green Your allies are not a valid target."
|
||||
return
|
||||
toxloss -= 50
|
||||
adjustToxLoss(-50)
|
||||
src << "\green You spit neurotoxin at [target]."
|
||||
for(var/mob/O in oviewers())
|
||||
if ((O.client && !( O.blinded )))
|
||||
|
||||
@@ -149,12 +149,12 @@
|
||||
if(1 to 49)
|
||||
src.radiation--
|
||||
if(prob(25))
|
||||
src.toxloss++
|
||||
src.adjustToxLoss(1)
|
||||
src.updatehealth()
|
||||
|
||||
if(50 to 74)
|
||||
src.radiation -= 2
|
||||
src.toxloss++
|
||||
src.adjustToxLoss(1)
|
||||
if(prob(5))
|
||||
src.radiation -= 5
|
||||
src.weakened = 3
|
||||
@@ -164,7 +164,7 @@
|
||||
|
||||
if(75 to 100)
|
||||
src.radiation -= 3
|
||||
src.toxloss += 3
|
||||
src.adjustToxLoss(3)
|
||||
if(prob(1))
|
||||
src << "\red You mutate!"
|
||||
randmutb(src)
|
||||
@@ -267,7 +267,7 @@
|
||||
|
||||
if(Toxins_pp) // Detect toxins in air
|
||||
|
||||
toxloss += breath.toxins*250
|
||||
adjustToxLoss(breath.toxins*250)
|
||||
toxins_alert = max(toxins_alert, 1)
|
||||
|
||||
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(locate(/obj/effect/alien/weeds) in loc)
|
||||
if(health >= 100)
|
||||
toxloss += 15
|
||||
adjustToxLoss(15)
|
||||
if(getToxLoss() > 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(locate(/obj/effect/alien/weeds) in loc)
|
||||
if(health >= 250)
|
||||
toxloss += 20
|
||||
adjustToxLoss(20)
|
||||
if(getToxLoss() > max_plasma)
|
||||
toxloss = max_plasma
|
||||
else
|
||||
@@ -172,7 +172,7 @@
|
||||
return
|
||||
|
||||
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))
|
||||
O.show_message(text("\green <B>[src] has laid an egg!</B>"), 1)
|
||||
new /obj/effect/alien/egg(loc)
|
||||
|
||||
@@ -129,12 +129,12 @@
|
||||
if(1 to 49)
|
||||
radiation--
|
||||
if(prob(25))
|
||||
toxloss++
|
||||
adjustToxLoss(1)
|
||||
updatehealth()
|
||||
|
||||
if(50 to 74)
|
||||
radiation -= 2
|
||||
toxloss++
|
||||
adjustToxLoss(1)
|
||||
if(prob(5))
|
||||
radiation -= 5
|
||||
weakened = 3
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
if(75 to 100)
|
||||
radiation -= 3
|
||||
toxloss += 3
|
||||
adjustToxLoss(3)
|
||||
updatehealth()
|
||||
|
||||
update_mind()
|
||||
@@ -248,7 +248,7 @@
|
||||
|
||||
if(Toxins_pp) // Detect toxins in air
|
||||
|
||||
toxloss += breath.toxins*250
|
||||
adjustToxLoss(breath.toxins*250)
|
||||
toxins_alert = max(toxins_alert, 1)
|
||||
|
||||
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(locate(/obj/effect/alien/weeds) in loc)
|
||||
if(health >= 25)
|
||||
toxloss += 5
|
||||
adjustToxLoss(5)
|
||||
else
|
||||
bruteloss -= 5
|
||||
fireloss -= 5
|
||||
|
||||
@@ -62,12 +62,12 @@
|
||||
if(1 to 49)
|
||||
radiation--
|
||||
if(prob(25))
|
||||
toxloss++
|
||||
adjustToxLoss(1)
|
||||
updatehealth()
|
||||
|
||||
if(50 to 74)
|
||||
radiation -= 2
|
||||
toxloss++
|
||||
adjustToxLoss(1)
|
||||
if(prob(5))
|
||||
radiation -= 5
|
||||
weakened = 3
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
if(75 to 100)
|
||||
radiation -= 3
|
||||
toxloss += 3
|
||||
adjustToxLoss(3)
|
||||
if(prob(1))
|
||||
src << "\red You mutate!"
|
||||
randmutb(src)
|
||||
|
||||
@@ -190,12 +190,12 @@
|
||||
if(1 to 49)
|
||||
radiation--
|
||||
if(prob(25))
|
||||
toxloss++
|
||||
adjustToxLoss(1)
|
||||
updatehealth()
|
||||
|
||||
if(50 to 74)
|
||||
radiation -= 2
|
||||
toxloss++
|
||||
adjustToxLoss(1)
|
||||
if(prob(5))
|
||||
radiation -= 5
|
||||
weakened = 3
|
||||
@@ -205,7 +205,7 @@
|
||||
|
||||
if(75 to 100)
|
||||
radiation -= 3
|
||||
toxloss += 3
|
||||
adjustToxLoss(3)
|
||||
if(prob(1))
|
||||
src << "\red You mutate!"
|
||||
randmutb(src)
|
||||
@@ -369,7 +369,7 @@
|
||||
|
||||
if(Toxins_pp > safe_toxins_max) // Too much toxins
|
||||
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)
|
||||
else
|
||||
toxins_alert = 0
|
||||
@@ -605,8 +605,8 @@
|
||||
heal_overall_damage(0,1)
|
||||
if(getBruteLoss())
|
||||
heal_overall_damage(1,0)
|
||||
if(getToxLoss())
|
||||
toxloss--
|
||||
adjustToxLoss(-1)
|
||||
|
||||
if(getOxyLoss())
|
||||
oxyloss--
|
||||
|
||||
|
||||
@@ -417,7 +417,7 @@
|
||||
|
||||
if(prob(30))
|
||||
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(cloneloss>0) cloneloss = max(cloneloss-1,0)
|
||||
if(getBruteLoss()>0) bruteloss = max(getBruteLoss()-1,0)
|
||||
@@ -486,7 +486,7 @@
|
||||
nutrition = 0
|
||||
if(prob(75))
|
||||
|
||||
toxloss+=rand(0,5)
|
||||
adjustToxLoss(rand(0,5))
|
||||
|
||||
else
|
||||
if(istype(src, /mob/living/carbon/metroid/adult))
|
||||
|
||||
@@ -72,12 +72,12 @@
|
||||
|
||||
if(istype(M, /mob/living/carbon))
|
||||
Victim.cloneloss += rand(1,10)
|
||||
Victim.toxloss += rand(1,2)
|
||||
Victim.adjustToxLoss(rand(1,2))
|
||||
if(Victim.health <= 0)
|
||||
Victim.toxloss += rand(2,4)
|
||||
Victim.adjustToxLoss(rand(2,4))
|
||||
|
||||
if(getToxLoss() > 0)
|
||||
toxloss = max(0, getToxLoss()-10)
|
||||
adjustToxLoss(-10)
|
||||
|
||||
if(getOxyLoss() > 0)
|
||||
oxyloss = max(0, getOxyLoss()-10)
|
||||
|
||||
@@ -149,12 +149,12 @@
|
||||
if(1 to 49)
|
||||
src.radiation--
|
||||
if(prob(25))
|
||||
src.toxloss++
|
||||
src.adjustToxLoss(1)
|
||||
src.updatehealth()
|
||||
|
||||
if(50 to 74)
|
||||
src.radiation -= 2
|
||||
src.toxloss++
|
||||
src.adjustToxLoss(1)
|
||||
if(prob(5))
|
||||
src.radiation -= 5
|
||||
src.weakened = 3
|
||||
@@ -164,7 +164,7 @@
|
||||
|
||||
if(75 to 100)
|
||||
src.radiation -= 3
|
||||
src.toxloss += 3
|
||||
src.adjustToxLoss(3)
|
||||
if(prob(1))
|
||||
src << "\red You mutate!"
|
||||
randmutb(src)
|
||||
@@ -316,7 +316,7 @@
|
||||
|
||||
if(Toxins_pp > safe_toxins_max) // Too much toxins
|
||||
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)
|
||||
else
|
||||
toxins_alert = 0
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
if(mutations & COLD_RESISTANCE) damage = 0
|
||||
fireloss += (damage/(blocked+1))
|
||||
if(TOX)
|
||||
toxloss += (damage/(blocked+1))
|
||||
adjustToxLoss(damage/(blocked+1))
|
||||
if(OXY)
|
||||
oxyloss += (damage/(blocked+1))
|
||||
if(CLONE)
|
||||
|
||||
Reference in New Issue
Block a user