Chomps Edits & optimisation

This commit is contained in:
r4d6
2020-10-30 17:01:03 -04:00
parent 2505645e1b
commit 207d2e03fb
3 changed files with 5 additions and 8 deletions

View File

@@ -283,14 +283,11 @@
message = "hides their wings."
visible_message("[src] [message]")
// Chomp Edit Start
/mob/living/carbon/human/verb/hide_nutrition_vr()
set name = "Show/Hide Nutrition Levels"
set category = "IC"
set desc = "Allow other player to see your current nutrition level or not."
nutrition_hidden = !nutrition_hidden
var/message = ""
if(!nutrition_hidden)
message = "Players will now see your nutrition levels."
else
message = "Players will no longer see your nutrition levels."
to_chat(src, "[message]")
to_chat(src, "Players will [nutrition_hidden ? "no longer" : "now"] see your nutrition levels.")
// Chomp Edit End

View File

@@ -68,7 +68,7 @@
/mob/living/carbon/human/proc/examine_nutrition()
if(!show_pudge()) //Some clothing or equipment can hide this.
return ""
if(nutrition_hidden)
if(nutrition_hidden) // Chomp Edit
return ""
var/message = ""
var/nutrition_examine = round(nutrition)

View File

@@ -10,7 +10,7 @@
var/ability_flags = 0 //Shadekin abilities/potentially other species-based?
var/sensorpref = 5 //Suit sensor loadout pref
var/wings_hidden = FALSE
var/nutrition_hidden = FALSE
var/nutrition_hidden = FALSE // Chomp Edit
/mob/living/carbon/human/proc/shadekin_get_energy()
var/datum/species/shadekin/SK = species