diff --git a/code/game/area/areas.dm b/code/game/area/areas.dm
index 4647eeec6ba..9dc2918dd8f 100644
--- a/code/game/area/areas.dm
+++ b/code/game/area/areas.dm
@@ -354,18 +354,12 @@
return
if((istype(M,/mob/living/carbon/human/)) && (M.m_intent == "run")).
- //M.AdjustStunned(5)
- //M.AdjustWeakened(5)
-
- if(M.stunned <= 5) M.stunned = 5
- if(M.weakened <= 5) M.weakened = 5
+ M.Stun(5)
+ M.Weaken(5)
else if (istype(M,/mob/living/carbon/human/))
- //M.AdjustStunned(2)
- //M.AdjustWeakened(2)
-
- if(M.stunned <= 2) M.stunned = 2
- if(M.weakened <= 2) M.weakened = 2
+ M.Stun(2)
+ M.Weaken(2)
M << "Gravity!"
diff --git a/code/game/dna/genes/goon_powers.dm b/code/game/dna/genes/goon_powers.dm
index 300074bfa54..e0fbd6b8f0a 100644
--- a/code/game/dna/genes/goon_powers.dm
+++ b/code/game/dna/genes/goon_powers.dm
@@ -428,16 +428,16 @@
if (FAT in usr.mutations && prob(66))
usr.visible_message("\red [usr.name] crashes due to their heavy weight!")
//playsound(usr.loc, 'zhit.wav', 50, 1)
- usr.weakened += 10
- usr.stunned += 5
+ usr.AdjustWeakened(10)
+ usr.AdjustStunned(5)
usr.layer = prevLayer
if (istype(usr.loc,/obj/))
var/obj/container = usr.loc
usr << "\red You leap and slam your head against the inside of [container]! Ouch!"
- usr.paralysis += 3
- usr.weakened += 5
+ usr.AdjustParalysis(3)
+ usr.AdjustWeakened(5)
container.visible_message("\red [usr.loc] emits a loud thump and rattles a bit.")
playsound(usr.loc, 'sound/effects/bang.ogg', 50, 1)
var/wiggle = 6
diff --git a/code/game/dna/genes/monkey.dm b/code/game/dna/genes/monkey.dm
index 474c034f21c..dcf6cbd5250 100644
--- a/code/game/dna/genes/monkey.dm
+++ b/code/game/dna/genes/monkey.dm
@@ -20,8 +20,8 @@
H.unEquip(W)
H.regenerate_icons()
+ H.SetStunned(1)
H.canmove = 0
- H.stunned = 1
H.icon = null
H.invisibility = 101
@@ -33,8 +33,7 @@
sleep(22)
qdel(animation)
- H.stunned = 0
- H.update_canmove()
+ H.SetStunned(0)
H.invisibility = initial(H.invisibility)
if(!H.species.primitive_form) //If the creature in question has no primitive set, this is going to be messy.
@@ -62,8 +61,8 @@
continue
H.unEquip(W)
H.regenerate_icons()
+ H.SetStunned(1)
H.canmove = 0
- H.stunned = 1
H.icon = null
H.invisibility = 101
@@ -75,8 +74,7 @@
sleep(22)
qdel(animation)
- H.stunned = 0
- H.update_canmove()
+ H.SetStunned(0)
H.invisibility = initial(H.invisibility)
if(!H.species.greater_form) //If the creature in question has no primitive set, this is going to be messy.
diff --git a/code/game/gamemodes/vampire/vampire_powers.dm b/code/game/gamemodes/vampire/vampire_powers.dm
index e07f24983b1..5794b144d51 100644
--- a/code/game/gamemodes/vampire/vampire_powers.dm
+++ b/code/game/gamemodes/vampire/vampire_powers.dm
@@ -75,9 +75,9 @@
var/datum/mind/M = usr.mind
if(!M) return
if(M.current.vampire_power(0, 1))
- M.current.weakened = 0
- M.current.stunned = 0
- M.current.paralysis = 0
+ M.current.SetWeakened(0)
+ M.current.SetStunned(0)
+ M.current.SetParalysis(0)
M.current.adjustStaminaLoss(-75)
//M.vampire.bloodusable -= 10
M.current << "\blue You flush your system with clean blood and remove any incapacitating effects."
diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm
index 83e1f3f723e..65880ef5da6 100644
--- a/code/game/machinery/doors/airlock.dm
+++ b/code/game/machinery/doors/airlock.dm
@@ -352,8 +352,8 @@ About the new airlock wires panel:
return
else if(user.hallucination > 50 && prob(10) && src.operating == 0)
user << "\red You feel a powerful shock course through your body!"
- user.staminaloss += 50
- user.stunned += 5
+ user.adjustStaminaLoss(50)
+ user.AdjustStunned(5)
return
..(user)
diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm
index 992f846c524..56e1c08f646 100644
--- a/code/modules/mob/living/silicon/silicon.dm
+++ b/code/modules/mob/living/silicon/silicon.dm
@@ -110,11 +110,11 @@
if(!effect || (blocked >= 2)) return 0
switch(effecttype)
if(STUN)
- stunned = max(stunned,(effect/(blocked+1)))
+ Stun(effect / (blocked + 1))
if(WEAKEN)
- weakened = max(weakened,(effect/(blocked+1)))
+ Weaken(effect / (blocked + 1))
if(PARALYZE)
- paralysis = max(paralysis,(effect/(blocked+1)))
+ Paralyse(effect / (blocked + 1))
if(IRRADIATE)
radiation += min((effect - (effect*getarmor(null, "rad"))), 0)//Rads auto check armor
if(STUTTER)
diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm
index a89f4e4b1f7..95ee1616972 100644
--- a/code/modules/projectiles/projectile/bullets.dm
+++ b/code/modules/projectiles/projectile/bullets.dm
@@ -101,14 +101,14 @@
if(..(target, blocked))
var/mob/living/M = target
M.dizziness += 20
- M:slurring += 20
+ M.slurring += 20
M.confused += 20
M.eye_blurry += 20
M.drowsyness += 20
for(var/datum/reagent/ethanol/A in M.reagents.reagent_list)
- M.paralysis += 2
+ M.AdjustParalysis(2)
M.dizziness += 10
- M:slurring += 10
+ M.slurring += 10
M.confused += 10
M.eye_blurry += 10
M.drowsyness += 10
diff --git a/code/modules/reagents/oldchem/reagents/drink/reagents_alcohol.dm b/code/modules/reagents/oldchem/reagents/drink/reagents_alcohol.dm
index e2892ee3b89..eb862a4300f 100644
--- a/code/modules/reagents/oldchem/reagents/drink/reagents_alcohol.dm
+++ b/code/modules/reagents/oldchem/reagents/drink/reagents_alcohol.dm
@@ -22,7 +22,7 @@
// Sobering multiplier.
// Sober block makes it more difficult to get drunk
var/sober_str=!(SOBER in M.mutations)?1:2
- M:nutrition += nutriment_factor
+ M.nutrition += nutriment_factor
if(!src.data) data = 1
src.data++
@@ -42,8 +42,8 @@
M.dizziness += dizzy_adj.
if(d >= slur_start && d < pass_out)
- if (!M:slurring) M:slurring = 1
- M:slurring += slurr_adj/sober_str
+ if (!M.slurring) M.slurring = 1
+ M.slurring += slurr_adj/sober_str
if(d >= brawl_start && ishuman(M))
var/mob/living/carbon/human/H = M
F.teach(H,1)
@@ -51,17 +51,17 @@
if(H.martial_art == F)
F.remove(H)
if(d >= confused_start && prob(33))
- if (!M:confused) M:confused = 1
- M.confused = max(M:confused+(confused_adj/sober_str),0)
+ if (!M.confused) M.confused = 1
+ M.confused = max(M.confused+(confused_adj/sober_str),0)
if(d >= blur_start)
M.eye_blurry = max(M.eye_blurry, 10/sober_str)
- M:drowsyness = max(M:drowsyness, 0)
+ M.drowsyness = max(M.drowsyness, 0)
if(d >= vomit_start)
if(prob(8))
M.fakevomit()
if(d >= pass_out)
- M:paralysis = max(M:paralysis, 20/sober_str)
- M:drowsyness = max(M:drowsyness, 30/sober_str)
+ M.Paralyse(20 / sober_str)
+ M.drowsyness = max(M.drowsyness, 30/sober_str)
if(ishuman(M))
var/mob/living/carbon/human/H = M
var/obj/item/organ/liver/L = H.internal_organs_by_name["liver"]
diff --git a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_hurt.dm b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_hurt.dm
index 17ed53282db..5a4f402269f 100644
--- a/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_hurt.dm
+++ b/code/modules/research/xenoarchaeology/artifact/effects/unknown_effect_hurt.dm
@@ -17,7 +17,7 @@
C.apply_effect(25 * weakness,IRRADIATE,0)
C.nutrition -= min(50 * weakness, C.nutrition)
C.Dizzy(6 * weakness)
- C.weakened += 6 * weakness
+ C.AdjustWeakened(6 * weakness)
/datum/artifact_effect/hurt/DoEffectAura()
if(holder)
diff --git a/code/modules/research/xenoarchaeology/tools/suspension_generator.dm b/code/modules/research/xenoarchaeology/tools/suspension_generator.dm
index e5a13d5fde2..f377d7322c8 100644
--- a/code/modules/research/xenoarchaeology/tools/suspension_generator.dm
+++ b/code/modules/research/xenoarchaeology/tools/suspension_generator.dm
@@ -28,14 +28,14 @@
var/turf/T = get_turf(suspension_field)
if(field_type == "carbon")
for(var/mob/living/carbon/M in T)
- M.weakened = max(M.weakened, 3)
+ M.Weaken(3)
cell.charge -= power_use
if(prob(5))
M << "\blue [pick("You feel tingly.","You feel like floating.","It is hard to speak.","You can barely move.")]"
if(field_type == "iron")
for(var/mob/living/silicon/M in T)
- M.weakened = max(M.weakened, 3)
+ M.Weaken(3)
cell.charge -= power_use
if(prob(5))
M << "\blue [pick("You feel tingly.","You feel like floating.","It is hard to speak.","You can barely move.")]"
@@ -47,7 +47,7 @@
I.loc = suspension_field
for(var/mob/living/simple_animal/M in T)
- M.weakened = max(M.weakened, 3)
+ M.Weaken(3)
cell.charge -= power_use
if(prob(5))
M << "\blue [pick("You feel tingly.","You feel like floating.","It is hard to speak.","You can barely move.")]"
@@ -247,7 +247,7 @@
if("carbon")
success = 1
for(var/mob/living/carbon/C in T)
- C.weakened += 5
+ C.AdjustWeakened(5)
C.visible_message("\blue \icon[C] [C] begins to float in the air!","You feel tingly and light, but it is difficult to move.")
if("nitrogen")
success = 1
@@ -270,7 +270,7 @@
if("iron")
success = 1
for(var/mob/living/silicon/R in T)
- R.weakened += 5
+ R.AdjustWeakened(5)
R.visible_message("\blue \icon[R] [R] begins to float in the air!","You feel tingly and light, but it is difficult to move.")
//
//in case we have a bad field type
@@ -279,7 +279,7 @@
for(var/mob/living/simple_animal/C in T)
C.visible_message("\blue \icon[C] [C] begins to float in the air!","You feel tingly and light, but it is difficult to move.")
- C.weakened += 5
+ C.AdjustWeakened(5)
suspension_field = new(T)
suspension_field.field_type = field_type
@@ -306,7 +306,7 @@
for(var/mob/M in T)
M << "You no longer feel like floating."
- M.weakened = min(M.weakened, 3)
+ M.SetWeakened(min(M.weakened, 3))
src.visible_message("\blue \icon[src] [src] deactivates with a gentle shudder.")
qdel(suspension_field)
diff --git a/code/modules/research/xenobiology/xenobiology.dm b/code/modules/research/xenobiology/xenobiology.dm
index 3fce14135e8..00954e16dc9 100644
--- a/code/modules/research/xenobiology/xenobiology.dm
+++ b/code/modules/research/xenobiology/xenobiology.dm
@@ -385,7 +385,8 @@
var/mob/living/M = A
if(M in immune)
continue
- M.stunned = 10
+ M.stunned += 10
+ M.canmove = 0
M.anchored = 1
if(istype(M, /mob/living/simple_animal/hostile))
var/mob/living/simple_animal/hostile/H = M
@@ -413,7 +414,7 @@
return
/obj/effect/timestop/proc/unfreeze_mob(mob/living/M)
- M.stunned = 0
+ M.AdjustStunned(-10)
M.anchored = 0
if(istype(M, /mob/living/simple_animal/hostile))
var/mob/living/simple_animal/hostile/H = M