diff --git a/code/WorkInProgress/virus2/base.dm b/code/WorkInProgress/virus2/base.dm index 2c79fb26eef..903ffee99fc 100644 --- a/code/WorkInProgress/virus2/base.dm +++ b/code/WorkInProgress/virus2/base.dm @@ -437,7 +437,7 @@ proc/airborne_can_reach(turf/source, turf/target) name = "Lazy mind syndrome" stage = 3 activate(var/mob/living/carbon/mob,var/multiplier) - mob.brainloss = 50 + mob.setBrainLoss(50) /datum/disease2/effect/greater/suicide name = "Suicidal syndrome" @@ -462,7 +462,7 @@ proc/airborne_can_reach(turf/source, turf/target) name = "Lazy mind syndrome" stage = 3 activate(var/mob/living/carbon/mob,var/multiplier) - mob.brainloss = 20 + mob.setBrainLoss(20) /datum/disease2/effect/lesser/deaf name = "Hard of hearing syndrome" diff --git a/code/datums/diseases/brainrot.dm b/code/datums/diseases/brainrot.dm index d068e42f771..ea43be7f751 100644 --- a/code/datums/diseases/brainrot.dm +++ b/code/datums/diseases/brainrot.dm @@ -23,15 +23,15 @@ if(prob(2)) affected_mob << "\red Your don't feel like yourself." if(prob(5)) - affected_mob.brainloss +=1 + affected_mob.adjustBrainLoss(1) affected_mob.updatehealth() if(3) if(prob(2)) affected_mob.emote("stare") if(prob(2)) affected_mob.emote("drool") - if(prob(10) && affected_mob.brainloss<=98)//shouldn't retard you to death now - affected_mob.brainloss += 2 + if(prob(10) && affected_mob.getBrainLoss()<=98)//shouldn't retard you to death now + affected_mob.adjustBrainLoss(2) affected_mob.updatehealth() if(prob(2)) affected_mob << "\red Your try to remember something important...but can't." @@ -50,8 +50,8 @@ affected_mob.updatehealth() if(prob(2)) affected_mob << "\red Your head hurts." */ - if(prob(15) && affected_mob.brainloss<=98) //shouldn't retard you to death now - affected_mob.brainloss +=3 + if(prob(15) && affected_mob.getBrainLoss()<=98) //shouldn't retard you to death now + affected_mob.adjustBrainLoss(3) affected_mob.updatehealth() if(prob(2)) affected_mob << "\red Strange buzzing fills your head, removing all thoughts." diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index d61a98881a8..5a4b1c11723 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1482,7 +1482,7 @@ for(var/mob/living/carbon/human/H in world) if(H.client) H << "\red You suddenly feel stupid." - H.brainloss = 60 + H.setBrainLoss(60) message_admins("[key_name_admin(usr)] made everybody retarded") else alert("You cannot perform this action. You must be of a higher administrative rank!") diff --git a/code/modules/chemical/Chemistry-Reagents.dm b/code/modules/chemical/Chemistry-Reagents.dm index 71a5641ac99..1216c05cc18 100644 --- a/code/modules/chemical/Chemistry-Reagents.dm +++ b/code/modules/chemical/Chemistry-Reagents.dm @@ -1379,7 +1379,7 @@ datum holder.remove_reagent("carpotoxin", 5) if(holder.has_reagent("zombiepowder")) holder.remove_reagent("zombiepowder", 5) - M.brainloss = 0 + M.setBrainLoss(0) M.disabilities = 0 M.eye_blurry = 0 M.eye_blind = 0 diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm index ff477dd429a..58cff9a6138 100644 --- a/code/modules/mob/living/carbon/human/examine.dm +++ b/code/modules/mob/living/carbon/human/examine.dm @@ -172,7 +172,7 @@ usr << "\blue [src.name] looks quite chubby." if(!stat) - if (src.brainloss >= 60) + if (src.getBrainLoss() >= 60) usr << "\red [src.name] has a stupid expression on [t_his] face." if (!src.client) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 9bafddc407a..5831a7a2481 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -271,7 +271,7 @@ if (prob(10))//Instant Chad Ore! stuttering = max(10, stuttering) - if (brainloss >= 60 && stat != 2) + if (getBrainLoss() >= 60 && stat != 2) if (prob(7)) switch(pick(1,2,3)) if(1) diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index 505337dfdc1..d59ae496a26 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -71,7 +71,7 @@ var/message_range = null var/message_mode = null - if (brainloss >= 60 && prob(50)) + if (getBrainLoss() >= 60 && prob(50)) if (ishuman(src)) message_mode = "headset" // Special message handling @@ -160,7 +160,7 @@ message = capitalize(message) //capitalize the first letter of what they actually say // :downs: - if (brainloss >= 60) + if (getBrainLoss() >= 60) message = dd_replacetext(message, " am ", " ") message = dd_replacetext(message, " is ", " ") message = dd_replacetext(message, " are ", " ") diff --git a/code/modules/mob/say.dm b/code/modules/mob/say.dm index 8bceb81fa08..f036910eef8 100644 --- a/code/modules/mob/say.dm +++ b/code/modules/mob/say.dm @@ -59,7 +59,7 @@ return "stammers, \"[text]\""; if (src.slurring) return "slurrs, \"[text]\""; - if (src.brainloss >= 60) + if (src.getBrainLoss() >= 60) return "gibbers, \"[text]\""; if (ending == "?") return "asks, \"[text]\""; diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 9a6e4cd3a0e..b25be7819d9 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -780,11 +780,11 @@ return 0 var/mob/living/carbon/human/H = user if (istype(H)) - if(H.brainloss >= 60) + if(H.getBrainLoss() >= 60) for(var/mob/M in viewers(src, null)) M << "\red [H] stares cluelessly at [src] and drools." return 0 - else if(prob(H.brainloss)) + else if(prob(H.getBrainLoss())) user << "\red You momentarily forget how to use [src]." return 0 return 1