diff --git a/code/_onclick/hud/_defines.dm b/code/_onclick/hud/_defines.dm index 1486e546481..96eaef8724f 100644 --- a/code/_onclick/hud/_defines.dm +++ b/code/_onclick/hud/_defines.dm @@ -85,6 +85,8 @@ #define ui_borg_health "14:28,6:13" //borgs have the health display where humans have the pressure damage indicator. #define ui_alien_health "14:28,6:13" //aliens have the health display where humans have the pressure damage indicator. +#define ui_ling_chemical_display "EAST,NORTH-6:7" + //Pop-up inventory #define ui_shoes "2:8,1:5" diff --git a/code/_onclick/hud/human.dm b/code/_onclick/hud/human.dm index 2e894acdd6d..805bae1912f 100644 --- a/code/_onclick/hud/human.dm +++ b/code/_onclick/hud/human.dm @@ -302,6 +302,11 @@ mymob.nutrition_icon.screen_loc = ui_nutrition hud_elements |= mymob.nutrition_icon + mymob.ling_chem_display = new /obj/screen/ling/chems() + mymob.ling_chem_display.screen_loc = ui_ling_chemical_display + mymob.ling_chem_display.icon_state = "ling_chems" + hud_elements |= mymob.ling_chem_display + mymob.blind = new /obj/screen() mymob.blind.icon = 'icons/mob/screen1_full.dmi' mymob.blind.icon_state = "blackimageoverlay" @@ -393,3 +398,10 @@ undershirt = null underwear = null regenerate_icons() + +/obj/screen/ling + invisibility = 101 + +/obj/screen/ling/chems + name = "chemical storage" + icon_state = "power_display" \ No newline at end of file diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index cdd556034d4..a7ac668ae96 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -1447,6 +1447,12 @@ /mob/living/carbon/human/proc/handle_changeling() if(mind && mind.changeling) mind.changeling.regenerate() + if(hud_used) + ling_chem_display.invisibility = 0 + ling_chem_display.maptext = "
[round(mind.changeling.chem_charges)]
" + else + if(mind && hud_used) + ling_chem_display.invisibility = 101 /mob/living/carbon/human/handle_shock() ..() diff --git a/code/modules/mob/mob_defines.dm b/code/modules/mob/mob_defines.dm index cee9e723a46..57e2902c441 100644 --- a/code/modules/mob/mob_defines.dm +++ b/code/modules/mob/mob_defines.dm @@ -33,6 +33,7 @@ var/obj/screen/gun/move/gun_move_icon = null var/obj/screen/gun/run/gun_run_icon = null var/obj/screen/gun/mode/gun_setting_icon = null + var/obj/screen/ling/chems/ling_chem_display = null //spells hud icons - this interacts with add_spell and remove_spell var/list/obj/screen/movable/spell_master/spell_masters = null diff --git a/icons/mob/screen1.dmi b/icons/mob/screen1.dmi index 8181013f7ee..61f2aa12a43 100644 Binary files a/icons/mob/screen1.dmi and b/icons/mob/screen1.dmi differ