mirror of
https://github.com/evilew/GS13-Citadel.git
synced 2026-08-26 22:57:48 +01:00
fixed a bug where it would not stop draining power upon being taken off
This commit is contained in:
@@ -154,8 +154,6 @@
|
||||
|
||||
activate()
|
||||
|
||||
|
||||
|
||||
/obj/item/bluespace_belt/primitive/attack_self(mob/person)
|
||||
if (!cell)
|
||||
return
|
||||
@@ -193,7 +191,10 @@
|
||||
to_chat(user, "<span class='notice'>The belt beeps as it's battery runs out, and your mass starts flowing out!</span>")
|
||||
deactivate()
|
||||
return
|
||||
|
||||
|
||||
if(!equipped)
|
||||
STOP_PROCESSING(SSprocessing, src)
|
||||
return
|
||||
|
||||
var/power_drained = min(power_drain, cell.charge)
|
||||
cell.use(power_drained)
|
||||
|
||||
Reference in New Issue
Block a user