This commit is contained in:
Metis
2024-06-28 00:40:04 -04:00
parent 9ffa3dfd85
commit b66f050c1a
3 changed files with 24 additions and 5 deletions
@@ -1362,57 +1362,71 @@ GLOBAL_LIST_EMPTY(roundstart_races)
if(preferences.helplessness_no_movement)
if(!HAS_TRAIT_FROM(fatty, TRAIT_NO_MOVE, HELPLESSNESS_TRAIT))
if(fatty.fatness >= preferences.helplessness_no_movement)
to_chat(fatty, "<span class='warning'>You have become too fat to move anymore.</span>")
ADD_TRAIT(fatty, TRAIT_NO_MOVE, HELPLESSNESS_TRAIT)
else if(fatty.fatness < preferences.helplessness_no_movement)
to_chat(fatty, "<span class='notice'>You have become thin enough to regain some of your mobility.</span>")
REMOVE_TRAIT(fatty, TRAIT_NO_MOVE, HELPLESSNESS_TRAIT)
if(preferences.helplessness_clumsy)
if(!HAS_TRAIT_FROM(fatty, TRAIT_CLUMSY, HELPLESSNESS_TRAIT))
if(fatty.fatness >= preferences.helplessness_clumsy)
to_chat(fatty, "<span class='warning'>Your newfound weight has made it hard to manipulate objects.</span>")
ADD_TRAIT(fatty, TRAIT_CLUMSY, HELPLESSNESS_TRAIT)
else if(fatty.fatness < preferences.helplessness_clumsy)
to_chat(fatty, "<span class='notice'>You feel like you have lost enough weight to recover your dexterity.</span>")
REMOVE_TRAIT(fatty, TRAIT_CLUMSY, HELPLESSNESS_TRAIT)
if(preferences.helplessness_nearsighted)
if(!HAS_TRAIT_FROM(fatty, TRAIT_NEARSIGHT, HELPLESSNESS_TRAIT))
if(fatty.fatness >= preferences.helplessness_nearsighted)
to_chat(fatty, "<span class='warning'>Your fat makes it difficult to see the world around you. </span>")
fatty.become_nearsighted(HELPLESSNESS_TRAIT)
else if(fatty.fatness < preferences.helplessness_nearsighted)
to_chat(fatty, "<span class='notice'>You are thin enough to see your enviornment again. </span>")
fatty.cure_nearsighted(HELPLESSNESS_TRAIT)
if(preferences.helplessness_hidden_face)
if(!HAS_TRAIT_FROM(fatty, TRAIT_DISFIGURED, HELPLESSNESS_TRAIT))
if(fatty.fatness >= preferences.helplessness_hidden_face)
to_chat(fatty, "<span class='warning'>You have gotten fat enough that your face is now unrecognizable. </span>")
ADD_TRAIT(fatty, TRAIT_DISFIGURED, HELPLESSNESS_TRAIT)
else if(fatty.fatness < preferences.helplessness_hidden_face)
to_chat(fatty, "<span class='notice'>You have lost enough weight to allow people to now recognize your face.</span>")
REMOVE_TRAIT(fatty, TRAIT_DISFIGURED, HELPLESSNESS_TRAIT)
if(preferences.helplessness_mute)
if(!HAS_TRAIT_FROM(fatty, TRAIT_MUTE, HELPLESSNESS_TRAIT))
if(fatty.fatness >= preferences.helplessness_mute)
to_chat(fatty, "<span class='warning'>Your fat makes it impossible for you to speak.</span>")
ADD_TRAIT(fatty, TRAIT_MUTE, HELPLESSNESS_TRAIT)
else if(fatty.fatness < preferences.helplessness_mute)
to_chat(fatty, "<span class='notice'>You are thin enough now to be able to speak again. </span>")
REMOVE_TRAIT(fatty, TRAIT_MUTE, HELPLESSNESS_TRAIT)
if(preferences.helplessness_immobile_arms)
if(!HAS_TRAIT_FROM(fatty, TRAIT_PARALYSIS_L_ARM, HELPLESSNESS_TRAIT))
if(fatty.fatness >= preferences.helplessness_immobile_arms)
to_chat(fatty, "<span class='warning'>Your arms are now engulfed in fat, making it impossible to move your arms. </span>")
ADD_TRAIT(fatty, TRAIT_PARALYSIS_L_ARM, HELPLESSNESS_TRAIT)
ADD_TRAIT(fatty, TRAIT_PARALYSIS_R_ARM, HELPLESSNESS_TRAIT)
fatty.update_disabled_bodyparts()
else if(fatty.fatness < preferences.helplessness_immobile_arms)
to_chat(fatty, "<span class='notice'>You are able to move your arms again. </span>")
REMOVE_TRAIT(fatty, TRAIT_PARALYSIS_L_ARM, HELPLESSNESS_TRAIT)
REMOVE_TRAIT(fatty, TRAIT_PARALYSIS_R_ARM, HELPLESSNESS_TRAIT)
fatty.update_disabled_bodyparts()
if(preferences.helplessness_clothing_jumpsuit)
@@ -1426,6 +1440,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
fatty.dropItemToGround(jumpsuit)
else if(fatty.fatness < preferences.helplessness_clothing_jumpsuit)
to_chat(fatty, "<span class='notice'>You feel thin enough to put on jumpsuits now. </span>")
REMOVE_TRAIT(fatty, TRAIT_NO_JUMPSUIT, HELPLESSNESS_TRAIT)
@@ -1450,6 +1465,7 @@ GLOBAL_LIST_EMPTY(roundstart_races)
fatty.dropItemToGround(worn_shoes)
else if(fatty.fatness < preferences.helplessness_clothing_misc)
to_chat(fatty, "<span class='notice'>You feel thin enough to put on suits, shoes, and gloves now. </span>")
REMOVE_TRAIT(fatty, TRAIT_NO_MISC, HELPLESSNESS_TRAIT)
@@ -1463,15 +1479,18 @@ GLOBAL_LIST_EMPTY(roundstart_races)
fatty.dropItemToGround(back_item)
else if(fatty.fatness < preferences.helplessness_clothing_back)
to_chat(fatty, "<span class='notice'>You feel thin enough to hold items on your back now. </span>")
REMOVE_TRAIT(fatty, TRAIT_NO_BACKPACK, HELPLESSNESS_TRAIT)
if(preferences.helplessness_no_buckle)
if(!HAS_TRAIT_FROM(fatty, TRAIT_NO_BUCKLE, HELPLESSNESS_TRAIT))
if(fatty.fatness >= preferences.helplessness_no_buckle)
to_chat(fatty, "<span class='warning'>You feel like you've gotten too big to fit on anything.</span>")
ADD_TRAIT(fatty, TRAIT_NO_BUCKLE, HELPLESSNESS_TRAIT)
else if(fatty.fatness < preferences.helplessness_no_buckle)
to_chat(fatty, "<span class='notice'>You feel thin enough to sit on things again. </span>")
REMOVE_TRAIT(fatty, TRAIT_NO_BUCKLE, HELPLESSNESS_TRAIT)