mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-28 10:12:41 +00:00
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
/mob/recalculate_vis()
|
|
. = ..()
|
|
|
|
if(!plane_holder || !vis_enabled)
|
|
return
|
|
|
|
if(stomach_vision && !(VIS_CH_STOMACH in vis_enabled))
|
|
plane_holder.set_vis(VIS_CH_STOMACH,TRUE)
|
|
vis_enabled += VIS_CH_STOMACH
|
|
else if(!stomach_vision && (VIS_CH_STOMACH in vis_enabled))
|
|
plane_holder.set_vis(VIS_CH_STOMACH,FALSE)
|
|
vis_enabled -= VIS_CH_STOMACH
|
|
|
|
if(vantag_hud)
|
|
if(!(VIS_CH_VANTAG in vis_enabled))
|
|
plane_holder.set_vis(VIS_CH_VANTAG,TRUE)
|
|
vis_enabled += VIS_CH_VANTAG
|
|
else
|
|
if(VIS_CH_VANTAG in vis_enabled)
|
|
plane_holder.set_vis(VIS_CH_VANTAG,FALSE)
|
|
vis_enabled -= VIS_CH_VANTAG
|
|
|
|
//CHOMPAdd Start Soulcatcher
|
|
if(soulgem?.flag_check(SOULGEM_SEE_SR_SOULS))
|
|
plane_holder.set_vis(VIS_SOULCATCHER, TRUE)
|
|
vis_enabled += VIS_SOULCATCHER
|
|
else
|
|
plane_holder.set_vis(VIS_SOULCATCHER, FALSE)
|
|
vis_enabled -= VIS_SOULCATCHER
|
|
//CHOMPAdd End
|
|
return
|
|
|
|
|
|
/mob/verb/toggle_stomach_vision()
|
|
set name = "Toggle Stomach Sprites"
|
|
set category = "Preferences.Vore"
|
|
set desc = "Toggle the ability to see stomachs or not"
|
|
|
|
var/toggle
|
|
toggle = tgui_alert(src, "Would you like to see visible stomachs?", "Visible Tummy?", list("Yes", "No"))
|
|
if(!toggle)
|
|
return
|
|
if(toggle =="Yes")
|
|
stomach_vision = 1 //Simple! Easy!
|
|
to_chat(src, "You can now see stomachs!")
|
|
else
|
|
stomach_vision = 0
|
|
to_chat(src, "You will no longer see stomachs!")
|
|
recalculate_vis()
|
|
|
|
/* //Leaving this in as an example of 'how to properly enable a plane to hide/show itself' for future PRs.
|
|
if(stomach_vision && !(VIS_CH_STOMACH in vis_enabled))
|
|
plane_holder.set_vis(VIS_CH_STOMACH,TRUE)
|
|
vis_enabled += VIS_CH_STOMACH
|
|
else if(!stomach_vision && (VIS_CH_STOMACH in vis_enabled))
|
|
plane_holder.set_vis(VIS_CH_STOMACH,FALSE)
|
|
vis_enabled -= VIS_CH_STOMACH
|
|
*/
|