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:
Geeves
2020-12-16 23:22:40 +02:00
committed by GitHub
parent f89337159b
commit 41d4dd8bf7
8 changed files with 44 additions and 2 deletions

View File

@@ -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