diff --git a/code/_onclick/hud/_defines.dm b/code/_onclick/hud/_defines.dm index ba6879c23e6..8ad8401ea45 100644 --- a/code/_onclick/hud/_defines.dm +++ b/code/_onclick/hud/_defines.dm @@ -172,5 +172,8 @@ #define ui_ghost_mafia "SOUTH: 6, CENTER+2:24" #define ui_ghost_language_menu "SOUTH: 22, CENTER+3:8" +//Blobbernauts +#define ui_blobbernaut_overmind_health "EAST-1:28,CENTER+0:19" + //Families #define ui_wanted_lvl "NORTH,11" diff --git a/code/_onclick/hud/blobbernaut.dm b/code/_onclick/hud/blobbernaut.dm new file mode 100644 index 00000000000..d8531516d41 --- /dev/null +++ b/code/_onclick/hud/blobbernaut.dm @@ -0,0 +1,6 @@ +/datum/hud/living/blobbernaut/New(mob/living/owner) + . = ..() + + blobpwrdisplay = new /atom/movable/screen/healths/blob/overmind() + blobpwrdisplay.hud = src + infodisplay += blobpwrdisplay diff --git a/code/_onclick/hud/blobbernauthud.dm b/code/_onclick/hud/blobbernauthud.dm deleted file mode 100644 index 430e8e81e7f..00000000000 --- a/code/_onclick/hud/blobbernauthud.dm +++ /dev/null @@ -1,11 +0,0 @@ - -/datum/hud/blobbernaut/New(mob/owner) - ..() - - blobpwrdisplay = new /atom/movable/screen/healths/blob/naut/core() - blobpwrdisplay.hud = src - infodisplay += blobpwrdisplay - - healths = new /atom/movable/screen/healths/blob/naut() - healths.hud = src - infodisplay += healths diff --git a/code/_onclick/hud/screen_objects.dm b/code/_onclick/hud/screen_objects.dm index 4ab57048f84..259075915e5 100644 --- a/code/_onclick/hud/screen_objects.dm +++ b/code/_onclick/hud/screen_objects.dm @@ -633,15 +633,11 @@ screen_loc = ui_internal mouse_opacity = MOUSE_OPACITY_TRANSPARENT -/atom/movable/screen/healths/blob/naut - name = "health" - icon = 'icons/hud/blob.dmi' - icon_state = "nauthealth" - -/atom/movable/screen/healths/blob/naut/core +/atom/movable/screen/healths/blob/overmind name = "overmind health" + icon = 'icons/hud/blob.dmi' icon_state = "corehealth" - screen_loc = ui_health + screen_loc = ui_blobbernaut_overmind_health /atom/movable/screen/healths/guardian name = "summoner health" diff --git a/code/modules/antagonists/blob/blob_mobs.dm b/code/modules/antagonists/blob/blob_mobs.dm index bf1b3d08ec9..e6b46f58209 100644 --- a/code/modules/antagonists/blob/blob_mobs.dm +++ b/code/modules/antagonists/blob/blob_mobs.dm @@ -269,7 +269,7 @@ force_threshold = 10 pressure_resistance = 50 mob_size = MOB_SIZE_LARGE - hud_type = /datum/hud/blobbernaut + hud_type = /datum/hud/living/blobbernaut /mob/living/simple_animal/hostile/blob/blobbernaut/Initialize() . = ..() @@ -314,15 +314,6 @@ I.color = overmind.blobstrain.complementary_color flick_overlay_view(I, src, 8) -/mob/living/simple_animal/hostile/blob/blobbernaut/adjustHealth(amount, updating_health = TRUE, forced = FALSE) - . = ..() - if(updating_health) - update_health_hud() - -/mob/living/simple_animal/hostile/blob/blobbernaut/update_health_hud() - if(hud_used) - hud_used.healths.maptext = MAPTEXT("