Skip to content

Commit

Permalink
Fixes runtimes when eminances are damaged (#11351)
Browse files Browse the repository at this point in the history
* Fixes runtime spam from setting hud health

* Changed these over to CRASHes from stack_traces

* forgot this too
  • Loading branch information
HowToLoLu authored Aug 25, 2024
1 parent eabad6e commit 227957d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/data_huds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
var/icon/I = icon(icon, icon_state, dir)
holder.pixel_y = I.Height() - world.icon_size
else
stack_trace("[src] does not have a HEALTH_HUD but updates it!")
CRASH("[src] does not have a HEALTH_HUD but updates it!")

//for carbon suit sensors
/mob/living/carbon/med_hud_set_health()
Expand All @@ -183,7 +183,7 @@
else
holder.icon_state = "hudhealthy"
else
stack_trace("[src] does not have a HEALTH_HUD but updates it!")
CRASH("[src] does not have a HEALTH_HUD but updates it!")

/mob/living/carbon/med_hud_set_status()
var/image/holder = hud_list[STATUS_HUD]
Expand Down Expand Up @@ -234,7 +234,7 @@
if(null)
holder.icon_state = "hudhealthy"
else
stack_trace("[src] does not have a HEALTH_HUD but updates it!")
CRASH("[src] does not have a HEALTH_HUD but updates it!")


/***********************************************
Expand Down
6 changes: 6 additions & 0 deletions code/modules/antagonists/clock_cult/mobs/eminence.dm
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@
tab_data["Cogs Available"] = GENERATE_STAT_TEXT("[cogs] Cogs")
return tab_data

/mob/living/simple_animal/eminence/med_hud_set_health()
return

/mob/living/simple_animal/eminence/med_hud_set_status()
return

/mob/living/simple_animal/eminence/update_health_hud()
return

Expand Down

0 comments on commit 227957d

Please sign in to comment.