Fix issues with New and Destroy in NTNet

- New() on atoms needs to call parent.
- Destroy() needs to return a qdel hint.
- Only add yourself to processing in Initialize() to make sure globals are instantiated.
This commit is contained in:
Leshana
2020-02-11 19:06:59 -05:00
parent d0159d32f8
commit 42d25f823d
5 changed files with 6 additions and 5 deletions

View File

@@ -47,6 +47,7 @@
to_chat(user, "Hardware Integrity Test... (Corruption: [damage]/[max_damage]) [damage > damage_failure ? "FAIL" : damage > damage_malfunction ? "WARN" : "PASS"]")
/obj/item/weapon/computer_hardware/New(var/obj/L)
..()
w_class = hardware_size
if(istype(L, /obj/item/modular_computer))
holder2 = L

View File

@@ -97,4 +97,4 @@ var/global/ntnet_card_uid = 1
/obj/item/weapon/computer_hardware/network_card/Destroy()
if(holder2 && (holder2.network_card == src))
holder2.network_card = null
..()
return ..()