mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
Fix EMPs to work on PDA power cells (#96930)
## About The Pull Request EMPs normally drain power cells for objects and machinery. I was surprised to learn during my testing that PDAs were completely immune despite having a power cell stored inside. It's an electric item, so it should be suffering from power drain. ## Why It's Good For The Game Consistency. ## Changelog 🆑 fix: Fix EMPs to work on PDA power cells /🆑
This commit is contained in:
@@ -422,6 +422,15 @@
|
||||
if(response == "Yes")
|
||||
turn_on(user)
|
||||
|
||||
/obj/item/modular_computer/emp_act(severity)
|
||||
. = ..()
|
||||
if (. & EMP_PROTECT_CONTENTS)
|
||||
return
|
||||
|
||||
if(internal_cell)
|
||||
internal_cell.emp_act(severity)
|
||||
handle_power(1 SECONDS)
|
||||
|
||||
/obj/item/modular_computer/emag_act(mob/user, obj/item/card/emag/emag_card, forced)
|
||||
if(!enabled && !forced)
|
||||
balloon_alert(user, "turn it on first!")
|
||||
|
||||
Reference in New Issue
Block a user