mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 15:37:36 +01:00
medhud fixes
This commit is contained in:
@@ -115,6 +115,7 @@
|
||||
|
||||
/mob/living/simple_animal/borer/New(atom/newloc, var/gen=1)
|
||||
..(newloc)
|
||||
remove_from_all_data_huds()
|
||||
generation = gen
|
||||
add_language("Cortical Link")
|
||||
notify_ghosts("A cortical borer has been created in [get_area(src)]!", enter_link = "<a href=?src=[UID()];ghostjoin=1>(Click to enter)</a>", source = src, action = NOTIFY_ATTACK)
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
var/perfectsouls = 0 //How many perfect, regen-cap increasing souls the revenant has.
|
||||
var/image/ghostimage = null //Visible to ghost with darkness off
|
||||
|
||||
|
||||
/mob/living/simple_animal/revenant/Life()
|
||||
..()
|
||||
if(revealed && essence <= 0)
|
||||
@@ -117,6 +118,7 @@
|
||||
ghostimage = image(src.icon,src,src.icon_state)
|
||||
ghost_darkness_images |= ghostimage
|
||||
updateallghostimages()
|
||||
remove_from_all_data_huds()
|
||||
|
||||
spawn(5)
|
||||
if(src.mind)
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
|
||||
/mob/living/simple_animal/slaughter/New()
|
||||
..()
|
||||
remove_from_all_data_huds()
|
||||
var/obj/effect/proc_holder/spell/bloodcrawl/bloodspell = new
|
||||
AddSpell(bloodspell)
|
||||
whisper_action = new()
|
||||
|
||||
@@ -110,16 +110,7 @@
|
||||
|
||||
/mob/living/simple_animal/handle_hud_icons_health()
|
||||
..()
|
||||
if(healths && maxHealth > 0)
|
||||
switch(health / maxHealth * 30)
|
||||
if(30 to INFINITY) healths.icon_state = "health0"
|
||||
if(26 to 29) healths.icon_state = "health1"
|
||||
if(21 to 25) healths.icon_state = "health2"
|
||||
if(16 to 20) healths.icon_state = "health3"
|
||||
if(11 to 15) healths.icon_state = "health4"
|
||||
if(6 to 10) healths.icon_state = "health5"
|
||||
if(1 to 5) healths.icon_state = "health6"
|
||||
if(0) healths.icon_state = "health7"
|
||||
RoundHealth(health / maxHealth * 30)
|
||||
|
||||
/mob/living/simple_animal/proc/process_ai()
|
||||
handle_automated_movement()
|
||||
|
||||
Reference in New Issue
Block a user