Charge spell no longer kills cells (#29869)

This commit is contained in:
Qwertytoforty
2025-08-07 16:37:44 +00:00
committed by GitHub
parent 3b085824c0
commit f7a8edd211
-12
View File
@@ -71,12 +71,6 @@
break
else if(istype(item, /obj/item/stock_parts/cell/))
var/obj/item/stock_parts/cell/C = item
if(!C.self_recharge)
if(prob(80))
C.maxcharge -= 200
if(C.maxcharge <= 1) //Div by 0 protection
C.maxcharge = 1
burnt_out = TRUE
C.charge = C.maxcharge
charged_item = C
break
@@ -85,12 +79,6 @@
for(I in item.contents)
if(istype(I, /obj/item/stock_parts/cell/))
var/obj/item/stock_parts/cell/C = I
if(!C.self_recharge)
if(prob(80))
C.maxcharge -= 200
if(C.maxcharge <= 1) //Div by 0 protection
C.maxcharge = 1
burnt_out = TRUE
C.charge = C.maxcharge
item.update_icon()
charged_item = item