mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
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:
co-authored by
vorestation-ci[bot] <199609141+vorestation-ci[bot]@users.noreply.github.com>
parent
46a3d2a9b6
commit
dfeaa5f5ed
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user