mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-02 05:22:40 +00:00
HUD Changes (#10770)
Talking indicators now appear on the right, in order for them to not appear behind other HUD elements.
Thralls now get an icon next to their master to easier see and remember who they are. Likewise, vampires who have thralls now get little icons next to their thralls.
image
Inspired by: VOREStation/VOREStation#2636
I also replaced the cult icon with one from Paradise station, credits to them.
This commit is contained in:
@@ -18,6 +18,9 @@
|
||||
var/obj/effect/dummy/veil_walk/holder = null // The veil_walk dummy.
|
||||
var/mob/living/carbon/human/master = null // The vampire/thrall's master.
|
||||
|
||||
var/image/master_image
|
||||
var/image/thrall_image
|
||||
|
||||
/datum/vampire/thrall
|
||||
status = VAMP_ISTHRALL
|
||||
|
||||
@@ -45,3 +48,18 @@
|
||||
return
|
||||
|
||||
blood_usable = max(0, blood_usable - blood_to_use)
|
||||
|
||||
/datum/vampire/proc/assign_master(var/mob/M, var/mob/set_master, var/datum/vampire/V)
|
||||
master = set_master
|
||||
V.thralls += M
|
||||
thrall_image = image('icons/mob/hud.dmi', M, "hudthrall")
|
||||
set_master.client.images += thrall_image
|
||||
master_image = image('icons/mob/hud.dmi', set_master, "hudvampire")
|
||||
M.client.images += master_image
|
||||
|
||||
/datum/vampire/proc/lose_master(var/mob/M)
|
||||
QDEL_NULL(thrall_image)
|
||||
QDEL_NULL(master_image)
|
||||
if(master?.mind?.vampire)
|
||||
master.mind.vampire.thralls -= M
|
||||
master = null
|
||||
Reference in New Issue
Block a user