Make the belly Visibility pref a client one as opposed to a per-character one. (#17375)

* Automatic changelog compile [ci skip]

* Make Belly pref global as opposed to per-character

---------

Co-authored-by: vorestation-ci[bot] <199609141+vorestation-ci[bot]@users.noreply.github.com>
This commit is contained in:
eghughguhhhhhh
2025-03-19 00:44:40 +01:00
committed by GitHub
co-authored by vorestation-ci[bot] <199609141+vorestation-ci[bot]@users.noreply.github.com>
parent 46a3d2a9b6
commit dfeaa5f5ed
13 changed files with 77 additions and 70 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
if(!plane_holder || !vis_enabled)
return
var/stomach_vision = client?.prefs.read_preference(/datum/preference/toggle/tummy_sprites)
if(stomach_vision && !(VIS_CH_STOMACH in vis_enabled))
plane_holder.set_vis(VIS_CH_STOMACH,TRUE)
vis_enabled += VIS_CH_STOMACH
@@ -40,10 +40,10 @@
if(!toggle)
return
if(toggle =="Yes")
stomach_vision = 1 //Simple! Easy!
client?.prefs.write_preference_by_type(/datum/preference/toggle/tummy_sprites,TRUE) //Simple! Easy!
to_chat(src, "You can now see stomachs!")
else
stomach_vision = 0
client?.prefs.write_preference_by_type(/datum/preference/toggle/tummy_sprites,FALSE)
to_chat(src, "You will no longer see stomachs!")
recalculate_vis()