mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Fixed borg items spamming user chat every mob tick when on low power
This commit is contained in:
@@ -26,11 +26,11 @@
|
||||
return
|
||||
else if (is_component_functioning("power cell") && cell)
|
||||
if(module)
|
||||
for(var/obj/item/borg/B in module.modules)
|
||||
for(var/obj/item/borg/B in get_all_slots())
|
||||
if(B.powerneeded)
|
||||
if((cell.charge * 100 / cell.maxcharge) < B.powerneeded)
|
||||
src << "Deactivating [B.name] due to lack of power!"
|
||||
unEquip(B)
|
||||
uneq_module(B)
|
||||
if(cell.charge <= 0)
|
||||
uneq_all()
|
||||
update_headlamp(1)
|
||||
|
||||
Reference in New Issue
Block a user