mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-13 18:33:22 +00:00
89 lines
2.0 KiB
Plaintext
89 lines
2.0 KiB
Plaintext
|
|
/datum/hud/guardian/New(mob/owner)
|
|
..()
|
|
var/obj/screen/using
|
|
|
|
healths = new /obj/screen/healths/guardian()
|
|
infodisplay += healths
|
|
|
|
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
|
|
|
|
|
|
/mob/living/simple_animal/hostile/guardian/create_mob_hud()
|
|
if(client && !hud_used)
|
|
hud_used = new /datum/hud/guardian(src)
|
|
|
|
|
|
/obj/screen/guardian
|
|
icon = 'icons/mob/guardian.dmi'
|
|
|
|
/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
|
|
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()
|