mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 01:49:19 +00:00
23 lines
580 B
Plaintext
23 lines
580 B
Plaintext
/obj/screen/voretoggle
|
|
name = "toggle vore mode"
|
|
icon = 'modular_citadel/icons/ui/screen_midnight.dmi'
|
|
icon_state = "nom_off"
|
|
|
|
/obj/screen/voretoggle/Click()
|
|
if(usr != hud.mymob)
|
|
return
|
|
var/mob/living/carbon/C = usr
|
|
if(SEND_SIGNAL(usr, COMSIG_COMBAT_MODE_CHECK, COMBAT_MODE_ACTIVE))
|
|
to_chat(usr, "<span class='warning'>Disable combat mode first.</span>")
|
|
return
|
|
C.toggle_vore_mode()
|
|
|
|
/obj/screen/voretoggle/update_icon_state()
|
|
var/mob/living/carbon/user = hud?.mymob
|
|
if(!istype(user))
|
|
return
|
|
if(user.voremode)
|
|
icon_state = "nom"
|
|
else
|
|
icon_state = "nom_off"
|