mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 23:51:17 +01:00
Vaurca Breeder Health HUD Offset Fix (#10175)
This commit is contained in:
@@ -871,19 +871,24 @@
|
||||
|
||||
// Apply a fire overlay if we're burning.
|
||||
if(on_fire)
|
||||
health_images += image('icons/mob/screen1_health.dmi',"burning")
|
||||
var/image/burning_image = image('icons/mob/screen1_health.dmi', "burning", pixel_x = species.healths_overlay_x)
|
||||
health_images += burning_image
|
||||
|
||||
// Show a general pain/crit indicator if needed.
|
||||
if(is_asystole())
|
||||
health_images += image('icons/mob/screen1_health.dmi',"hardcrit")
|
||||
var/image/hardcrit_image = image('icons/mob/screen1_health.dmi', "hardcrit", pixel_x = species.healths_overlay_x)
|
||||
health_images += hardcrit_image
|
||||
else if(trauma_val)
|
||||
if(can_feel_pain())
|
||||
if(trauma_val > 0.7)
|
||||
health_images += image('icons/mob/screen1_health.dmi',"softcrit")
|
||||
var/image/softcrit_image = image('icons/mob/screen1_health.dmi', "softcrit", pixel_x = species.healths_overlay_x)
|
||||
health_images += softcrit_image
|
||||
if(trauma_val >= 1)
|
||||
health_images += image('icons/mob/screen1_health.dmi',"hardcrit")
|
||||
var/image/hardcrit_image = image('icons/mob/screen1_health.dmi', "hardcrit", pixel_x = species.healths_overlay_x)
|
||||
health_images += hardcrit_image
|
||||
else if(no_damage)
|
||||
health_images += image('icons/mob/screen1_health.dmi',"fullhealth")
|
||||
var/image/fullhealth_image = image('icons/mob/screen1_health.dmi', "fullhealth", pixel_x = species.healths_overlay_x)
|
||||
health_images += fullhealth_image
|
||||
|
||||
healths.overlays += health_images
|
||||
|
||||
|
||||
@@ -159,6 +159,8 @@
|
||||
var/datum/hud_data/hud
|
||||
var/hud_type
|
||||
var/health_hud_intensity = 1
|
||||
var/healths_x // set this to specify where exactly the healths HUD element appears
|
||||
var/healths_overlay_x = 0 // set this to tweak where the overlays on top of the healths HUD element goes
|
||||
|
||||
// Body/form vars.
|
||||
var/list/inherent_verbs // Species-specific verbs.
|
||||
|
||||
@@ -49,6 +49,8 @@
|
||||
icobase = 'icons/mob/human_races/vaurca/r_vaurcac.dmi'
|
||||
deform = 'icons/mob/human_races/vaurca/r_vaurcac.dmi'
|
||||
icon_x_offset = -8
|
||||
healths_x = 22
|
||||
healths_overlay_x = 9
|
||||
unarmed_types = list(/datum/unarmed_attack/stomp, /datum/unarmed_attack/kick, /datum/unarmed_attack/claws/strong, /datum/unarmed_attack/bite/strong)
|
||||
rarity_value = 10
|
||||
slowdown = 2
|
||||
|
||||
Reference in New Issue
Block a user