ref: Ammo HUD, more modularisation (#21406)

* ref: welding tool ammo hud

* ref: guns ammo_hud

* update readme

* fix: set welding ammo update
This commit is contained in:
larentoun
2023-05-31 11:43:42 -07:00
committed by GitHub
parent 053e29196d
commit 33d73d6988
10 changed files with 45 additions and 13 deletions
@@ -223,7 +223,6 @@
if(get_fuel() >= used)
reagents.remove_reagent(/datum/reagent/fuel, used)
SEND_SIGNAL(src, COMSIG_UPDATE_AMMO_HUD) //SKYRAT EDIT ADDITION
check_fuel()
return TRUE
else
@@ -237,7 +236,6 @@
. = welding
welding = new_value
set_light_on(welding)
SEND_SIGNAL(src, COMSIG_UPDATE_AMMO_HUD) //SKYRAT EDIT ADDITION
/// Turns off the welder if there is no more fuel (does this really need to be its own proc?)
@@ -396,7 +394,6 @@
/obj/item/weldingtool/abductor/process()
if(get_fuel() <= max_fuel)
reagents.add_reagent(/datum/reagent/fuel, 1)
SEND_SIGNAL(src, COMSIG_UPDATE_AMMO_HUD) //SKYRAT EDIT ADDITION
..()
/obj/item/weldingtool/hugetank
@@ -427,7 +424,6 @@
if(get_fuel() < max_fuel && nextrefueltick < world.time)
nextrefueltick = world.time + 10
reagents.add_reagent(/datum/reagent/fuel, 1)
SEND_SIGNAL(src, COMSIG_UPDATE_AMMO_HUD) //SKYRAT EDIT ADDITION
#undef WELDER_FUEL_BURN_INTERVAL