mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-07-13 16:12:19 +01:00
22 lines
431 B
Plaintext
22 lines
431 B
Plaintext
/datum/hud/ghost_observer
|
|
var/mob/dead/observer/master
|
|
|
|
New(I)
|
|
master = I
|
|
..()
|
|
update_ability_hotbar()
|
|
|
|
clear_master()
|
|
master = null
|
|
..()
|
|
|
|
proc/update_ability_hotbar()
|
|
if (!master.client)
|
|
return
|
|
|
|
for(var/obj/ability_button/B in master.client.screen)
|
|
master.client.screen -= B
|
|
|
|
if (master.abilityHolder) //abilities come first. no overlap from the upcoming buttons!
|
|
master.abilityHolder.updateButtons()
|