Flashes actually work as said on the tin.

This commit is contained in:
Mechoid
2019-07-02 23:42:08 -07:00
parent be5413ad10
commit a01fb92313
+2 -2
View File
@@ -122,9 +122,9 @@
if(use_external_power)
battery = get_external_power_supply()
if(times_used <= max_flashes && battery && battery.checked_use(charge_cost))
if(times_used <= max_flashes && battery && battery.charge >= charge_cost)
last_used = world.time
if(prob( max(0, times_used - safe_flashes) * 2 + (times_used >= 1) ) && can_break) //if you use it 10 times in a minute it has a 30% chance to break.
if(prob( max(0, times_used - safe_flashes) * 2 + (times_used >= safe_flashes)) && can_break) //if you use it 10 times in a minute it has a 30% chance to break.
broken = TRUE
if(user)
to_chat(user, "<span class='warning'>The bulb has burnt out!</span>")