Fixes Intellicards in computers being deleted when the computer is destroyed (#78475)

## About The Pull Request

As described in #78467, if an Intellicard is inserted into a laptop or
stationary modular computer, and said computer is destroyed, then the
Intellicard (as well as any AI on it) is instantly deleted. This PR
makes the Intellicard get dropped instead. Closes #78467.
## Why It's Good For The Game

Bugs are bad.
## Changelog
🆑
fix: Intellicards in computers are no longer deleted when the computer
is destroyed.
fix: Modular consoles can now be deconstructed by right clicking with a
wrench.
/🆑
This commit is contained in:
GPeckman
2023-09-25 08:53:35 +00:00
committed by GitHub
parent 99f4d6bb56
commit b2995cbd6e
2 changed files with 22 additions and 16 deletions
@@ -125,9 +125,9 @@
return cpu.screwdriver_act(user, tool)
return ..()
/obj/machinery/modular_computer/wrench_act(mob/user, obj/item/tool)
/obj/machinery/modular_computer/wrench_act_secondary(mob/user, obj/item/tool)
if(cpu)
return cpu.wrench_act(user, tool)
return cpu.wrench_act_secondary(user, tool)
return ..()
/obj/machinery/modular_computer/welder_act(mob/user, obj/item/tool)