diff --git a/code/modules/modular_computers/hardware/battery_module.dm b/code/modules/modular_computers/hardware/battery_module.dm index 27d3546ca2..1f2f884bf4 100644 --- a/code/modules/modular_computers/hardware/battery_module.dm +++ b/code/modules/modular_computers/hardware/battery_module.dm @@ -69,6 +69,7 @@ icon_state = "cell_mini" w_class = WEIGHT_CLASS_TINY maxcharge = 750 + has_charge_overlay = FALSE /obj/item/stock_parts/cell/computer/advanced name = "advanced battery" diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index bf8899e5d5..f3587c01b3 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -22,6 +22,8 @@ var/ratingdesc = TRUE ///If it's a grown that acts as a battery, add a wire overlay to it. var/grown_battery = FALSE + /// If true, add the o1 and o2 overlays based on charge level. + var/has_charge_overlay = TRUE rad_flags = RAD_NO_CONTAMINATE // Prevent the same cheese as with the stock parts /obj/item/stock_parts/cell/get_cell() @@ -64,7 +66,7 @@ if(grown_battery) . += image('icons/obj/power.dmi', "grown_wires") return - if(charge < 0.01) + if(!has_charge_overlay || charge < 0.01) return else if(charge/maxcharge >=0.995) . += "cell-o2"