From f81bb85dfd47202f2a203abae75f0018db9d09b7 Mon Sep 17 00:00:00 2001 From: joep van der velden Date: Sat, 20 Oct 2018 17:06:35 +0200 Subject: [PATCH] Borg fire extinguishers and welding tools now get refilled --- code/game/machinery/rechargestation.dm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/game/machinery/rechargestation.dm b/code/game/machinery/rechargestation.dm index f0e23d6c7d4..255cc4d7169 100644 --- a/code/game/machinery/rechargestation.dm +++ b/code/game/machinery/rechargestation.dm @@ -220,6 +220,16 @@ var/i = 1 for(1, i <= coeff, i++) LR.Charge(occupant) + //Fire extinguisher + if(istype(O, /obj/item/extinguisher)) + var/obj/item/extinguisher/ext = O + if(ext.reagents.get_reagent_amount("water") < ext.max_water) + ext.reagents.add_reagent("water", 5 * coeff) + //Welding tools + if(istype(O,/obj/item/weldingtool)) + var/obj/item/weldingtool/weld = O + if(weld.reagents.get_reagent_amount("fuel") < weld.max_fuel) + weld.reagents.add_reagent("fuel", 2 * coeff) if(R) if(R.module) R.module.respawn_consumable(R)