mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
* introduce helper + remove unused proc * we love compatibility * Update code/_onclick/hud/action_button.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/action_button.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/alert.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/blob_overmind.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/blob_overmind.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/blob_overmind.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/martial_arts/martial.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mining/lavaland/loot/tendril_loot.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/shadow.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/species/shadow.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/living_update_status.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/screen_objects.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/screen_objects.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/_onclick/hud/screen_objects.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/objects/items/weapons/storage/internal.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/machinery/computer/camera_advanced.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/machinery/computer/camera_advanced.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/objects/items/weapons/storage/internal.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/mecha/mecha.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * deconflict --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
102 lines
2.8 KiB
Plaintext
102 lines
2.8 KiB
Plaintext
/mob/living/simple_animal/hostile/guardian/create_mob_hud()
|
|
if(client && !hud_used)
|
|
hud_used = new /datum/hud/guardian(src)
|
|
|
|
/datum/hud/guardian/New(mob/owner)
|
|
..()
|
|
var/atom/movable/screen/using
|
|
|
|
guardianhealthdisplay = new /atom/movable/screen/healths/guardian()
|
|
infodisplay += guardianhealthdisplay
|
|
|
|
using = new /atom/movable/screen/act_intent/guardian()
|
|
using.icon_state = mymob.a_intent
|
|
static_inventory += using
|
|
action_intent = using
|
|
|
|
using = new /atom/movable/screen/guardian/Manifest()
|
|
using.screen_loc = ui_rhand
|
|
static_inventory += using
|
|
|
|
using = new /atom/movable/screen/guardian/Recall()
|
|
using.screen_loc = ui_lhand
|
|
static_inventory += using
|
|
|
|
using = new /atom/movable/screen/guardian/ToggleMode()
|
|
using.screen_loc = ui_storage1
|
|
static_inventory += using
|
|
|
|
using = new /atom/movable/screen/guardian/ToggleLight()
|
|
using.screen_loc = ui_inventory
|
|
static_inventory += using
|
|
|
|
using = new /atom/movable/screen/guardian/Communicate()
|
|
using.screen_loc = ui_back
|
|
static_inventory += using
|
|
|
|
|
|
//HUD BUTTONS
|
|
|
|
/atom/movable/screen/guardian
|
|
icon = 'icons/mob/guardian.dmi'
|
|
icon_state = "base"
|
|
|
|
/atom/movable/screen/guardian/Manifest
|
|
icon_state = "manifest"
|
|
name = "Manifest"
|
|
desc = "Spring forth into battle!"
|
|
|
|
/atom/movable/screen/guardian/Manifest/Click()
|
|
if(isguardian(usr))
|
|
var/mob/living/simple_animal/hostile/guardian/G = usr
|
|
var/summoner_loc = G.summoner.loc
|
|
if(istype(summoner_loc, /obj/machinery/atmospherics))
|
|
to_chat(G, "<span class='warning'>You can not manifest while in these pipes!</span>")
|
|
return
|
|
if(istype(summoner_loc, /obj/structure/closet/cardboard/agent))
|
|
to_chat(G, "<span class='warning'>You can not manifest while inside an active Stealth Implant!</span>")
|
|
return
|
|
if(G.loc == G.summoner)
|
|
G.Manifest()
|
|
|
|
/atom/movable/screen/guardian/Recall
|
|
icon_state = "recall"
|
|
name = "Recall"
|
|
desc = "Return to your user."
|
|
|
|
/atom/movable/screen/guardian/Recall/Click()
|
|
if(isguardian(usr))
|
|
var/mob/living/simple_animal/hostile/guardian/G = usr
|
|
G.Recall()
|
|
|
|
/atom/movable/screen/guardian/ToggleMode
|
|
icon_state = "toggle"
|
|
name = "Toggle Mode"
|
|
desc = "Switch between ability modes."
|
|
|
|
/atom/movable/screen/guardian/ToggleMode/Click()
|
|
if(isguardian(usr))
|
|
var/mob/living/simple_animal/hostile/guardian/G = usr
|
|
G.ToggleMode()
|
|
|
|
/atom/movable/screen/guardian/Communicate
|
|
icon_state = "communicate"
|
|
name = "Communicate"
|
|
desc = "Communicate telepathically with your user."
|
|
|
|
/atom/movable/screen/guardian/Communicate/Click()
|
|
if(isguardian(usr))
|
|
var/mob/living/simple_animal/hostile/guardian/G = usr
|
|
G.Communicate()
|
|
|
|
|
|
/atom/movable/screen/guardian/ToggleLight
|
|
icon_state = "light"
|
|
name = "Toggle Light"
|
|
desc = "Glow like star dust."
|
|
|
|
/atom/movable/screen/guardian/ToggleLight/Click()
|
|
if(isguardian(usr))
|
|
var/mob/living/simple_animal/hostile/guardian/G = usr
|
|
G.ToggleLight()
|