Added overdoses to some chemicals. Fixed some gamemode stuff, involving uplinks.

This commit is contained in:
SkyMarshal
2012-02-29 17:17:41 -07:00
parent 3a14201f37
commit e8bd665e76
5 changed files with 86 additions and 11 deletions
+76 -6
View File
@@ -399,6 +399,9 @@ datum
if(25 to INFINITY)
M.Paralyse(20)
M.drowsyness = max(M:drowsyness, 30)
// NO.
// if(50 to INFINITY)
// M:adjustToxLoss(0.1)
data++
..()
return
@@ -434,6 +437,8 @@ datum
M.slurring = 0
M.confused = 0
M.jitteriness = 0
if(50 to INFINITY)
M:adjustToxLoss(0.1)
..()
return
@@ -446,9 +451,13 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(!data) data = 1
data++
if(M.losebreath >= 10)
M.losebreath = max(10, M.losebreath-5)
holder.remove_reagent(src.id, 0.2)
if(data >= 50)
M:adjustToxLoss(0.1)
return
space_drugs
@@ -460,12 +469,16 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M.druggy = max(M.druggy, 15)
if(isturf(M.loc) && !istype(M.loc, /turf/space))
if(M.canmove)
if(prob(10)) step(M, pick(cardinal))
if(prob(7)) M:emote(pick("twitch","drool","moan","giggle"))
holder.remove_reagent(src.id, 0.2)
if(data >= 50)
M:adjustToxLoss(0.2)
return
serotrotium
@@ -593,6 +606,7 @@ datum
if(M.canmove && istype(M.loc, /turf/space))
step(M, pick(cardinal))
if(prob(5)) M:emote(pick("twitch","drool","moan"))
M:adjustToxLoss(1)
..()
return
@@ -831,7 +845,6 @@ datum
M.adjustToxLoss(100)
M:antibodies |= M:virus2.antigen
..()
return
@@ -851,8 +864,13 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M.mutations = 0
M.disabilities = 0
switch(data)
if(50 to INFINITY)
M:adjustToxLoss(0.1)
..()
return
@@ -1153,10 +1171,14 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(!data) data = 1
data++
if(M.bodytemperature > 310)
M.bodytemperature = max(310, M.bodytemperature-20)
else if(M.bodytemperature < 311)
M.bodytemperature = min(310, M.bodytemperature+20)
if(data >= 50)
M:adjustToxLoss(0.1)
..()
return
@@ -1169,10 +1191,14 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M.make_dizzy(1)
if(!M.confused) M.confused = 1
M.confused = max(M.confused, 20)
holder.remove_reagent(src.id, 0.2)
if(data >= 50)
M:adjustToxLoss(0.1)
..()
return
@@ -1205,7 +1231,11 @@ datum
if(M.stat == 2.0)
return
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M:heal_organ_damage(0,2)
if(data >= 50)
M:adjustToxLoss(0.1)
..()
return
@@ -1220,7 +1250,11 @@ datum
if(M.stat == 2.0) //THE GUY IS **DEAD**! BEREFT OF ALL LIFE HE RESTS IN PEACE etc etc. He does NOT metabolise shit anymore, god DAMN
return
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M:heal_organ_damage(0,3)
if(data >= 50)
M:adjustToxLoss(0.1)
..()
return
@@ -1235,9 +1269,13 @@ datum
if(M.stat == 2.0)
return //See above, down and around. --Agouri
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M:adjustOxyLoss(-2)
if(holder.has_reagent("lexorin"))
holder.remove_reagent("lexorin", 2)
if(data >= 50)
M:adjustToxLoss(0.1)
..()
return
@@ -1252,9 +1290,13 @@ datum
if(M.stat == 2.0)
return
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M:oxyloss = 0
if(holder.has_reagent("lexorin"))
holder.remove_reagent("lexorin", 2)
if(data >= 50)
M:adjustToxLoss(0.2)
..()
return
@@ -1377,10 +1419,14 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M:jitteriness = max(M:jitteriness-5,0)
if(prob(80)) M:adjustBrainLoss(1)
if(prob(50)) M:drowsyness = max(M:drowsyness, 3)
if(prob(10)) M:emote("drool")
if(data >= 50)
M:adjustToxLoss(0.1)
..()
return
@@ -1394,6 +1440,8 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
M:radiation = max(M:radiation-3,0)
if(data >= 50)
M:adjustToxLoss(0.1)
..()
return
@@ -1408,11 +1456,15 @@ datum
if(M.stat == 2.0)
return //See above, down and around. --Agouri
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M:radiation = max(M:radiation-7,0)
M:adjustToxLoss(-1)
if(prob(15))
M.take_organ_damage(1, 0)
..()
if(data >= 50)
M:adjustToxLoss(0.1)
return
alkysine
@@ -1425,6 +1477,7 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
M:adjustBrainLoss(-3)
M:adjustToxLoss(0.1)
..()
return
@@ -1437,10 +1490,13 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M:eye_blurry = max(M:eye_blurry-5 , 0)
M:eye_blind = max(M:eye_blind-5 , 0)
M:disabilities &= ~1
// M:sdisabilities &= ~1 Replaced by eye surgery
if(data >= 50)
M:adjustToxLoss(0.1)
..()
return
@@ -1455,7 +1511,11 @@ datum
if(M.stat == 2.0)
return
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M:heal_organ_damage(2,0)
if(data >= 50)
M:adjustToxLoss(0.1)
..()
return
@@ -1468,8 +1528,12 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(!data) data = 1
data++
if(prob(5)) M:emote(pick("twitch","blink_r","shiver"))
holder.remove_reagent(src.id, 0.2)
if(data >= 50)
M:adjustToxLoss(0.3)
..()
return
@@ -1517,7 +1581,11 @@ datum
color = "#C8A5DC" // rgb: 200, 165, 220
on_mob_life(var/mob/living/M as mob)//no more mr. panacea
if(!data) data = 1
data++
holder.remove_reagent(src.id, 0.1)
if(data >= 50)
M:adjustToxLoss(0.2)
return
carpotoxin
@@ -1557,7 +1625,7 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
M:bodytemperature -= 50 //This and the following two lines need to be checked and tinkered with so that the Cryo-In-A-Syringe
M:bodytemperature = max(M:bodytemperature - 30, 100) //This and the following two lines need to be checked and tinkered with so that the Cryo-In-A-Syringe
if(prob(5)) // leaves someone at 100% healthy from anything up to in heavy crit (-75%)
M.take_organ_damage(0, 1)
if(prob(80) && istype(M, /mob/living/carbon/metroid))
@@ -1579,7 +1647,11 @@ datum
on_mob_life(var/mob/M)
if(!M) M = holder.my_atom
if(!data) data = 1
data++
M:hallucination += 5
if(data >= 50)
M:adjustToxLoss(0.2)
..()
return
@@ -4043,6 +4115,4 @@ datum
else if(data >= 115 && prob(60))
M.confused = max(M:confused+15,15)
..()
return*/
return*/