mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-20 18:47:20 +01:00
95 lines
2.3 KiB
Plaintext
95 lines
2.3 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/obj/screen/using
|
|
|
|
guardianhealthdisplay = new /obj/screen/healths/guardian()
|
|
infodisplay += guardianhealthdisplay
|
|
|
|
using = new /obj/screen/act_intent/guardian()
|
|
using.icon_state = mymob.a_intent
|
|
static_inventory += using
|
|
action_intent = using
|
|
|
|
using = new /obj/screen/guardian/Manifest()
|
|
using.screen_loc = ui_rhand
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/guardian/Recall()
|
|
using.screen_loc = ui_lhand
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/guardian/ToggleMode()
|
|
using.screen_loc = ui_storage1
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/guardian/ToggleLight()
|
|
using.screen_loc = ui_inventory
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/guardian/Communicate()
|
|
using.screen_loc = ui_back
|
|
static_inventory += using
|
|
|
|
|
|
//HUD BUTTONS
|
|
|
|
/obj/screen/guardian
|
|
icon = 'icons/mob/guardian.dmi'
|
|
icon_state = "base"
|
|
|
|
/obj/screen/guardian/Manifest
|
|
icon_state = "manifest"
|
|
name = "Manifest"
|
|
desc = "Spring forth into battle!"
|
|
|
|
/obj/screen/guardian/Manifest/Click()
|
|
if(isguardian(usr))
|
|
var/mob/living/simple_animal/hostile/guardian/G = usr
|
|
if(G.loc == G.summoner)
|
|
G.Manifest()
|
|
|
|
/obj/screen/guardian/Recall
|
|
icon_state = "recall"
|
|
name = "Recall"
|
|
desc = "Return to your user."
|
|
|
|
/obj/screen/guardian/Recall/Click()
|
|
if(isguardian(usr))
|
|
var/mob/living/simple_animal/hostile/guardian/G = usr
|
|
G.Recall()
|
|
|
|
/obj/screen/guardian/ToggleMode
|
|
icon_state = "toggle"
|
|
name = "Toggle Mode"
|
|
desc = "Switch between ability modes."
|
|
|
|
/obj/screen/guardian/ToggleMode/Click()
|
|
if(isguardian(usr))
|
|
var/mob/living/simple_animal/hostile/guardian/G = usr
|
|
G.ToggleMode()
|
|
|
|
/obj/screen/guardian/Communicate
|
|
icon_state = "communicate"
|
|
name = "Communicate"
|
|
desc = "Communicate telepathically with your user."
|
|
|
|
/obj/screen/guardian/Communicate/Click()
|
|
if(isguardian(usr))
|
|
var/mob/living/simple_animal/hostile/guardian/G = usr
|
|
G.Communicate()
|
|
|
|
|
|
/obj/screen/guardian/ToggleLight
|
|
icon_state = "light"
|
|
name = "Toggle Light"
|
|
desc = "Glow like star dust."
|
|
|
|
/obj/screen/guardian/ToggleLight/Click()
|
|
if(isguardian(usr))
|
|
var/mob/living/simple_animal/hostile/guardian/G = usr
|
|
G.ToggleLight()
|