mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 09:05:11 +01:00
Removes Destroy overrides from most circuit components (#60492)
Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
@@ -80,20 +80,6 @@
|
||||
bolted = add_output_port("Bolted", PORT_TYPE_SIGNAL)
|
||||
unbolted = add_output_port("Unbolted", PORT_TYPE_SIGNAL)
|
||||
|
||||
/obj/item/circuit_component/airlock/Destroy()
|
||||
bolt = null
|
||||
unbolt = null
|
||||
open = null
|
||||
close = null
|
||||
is_open = null
|
||||
is_bolted = null
|
||||
opened = null
|
||||
closed = null
|
||||
bolted = null
|
||||
unbolted = null
|
||||
attached_airlock = null
|
||||
return ..()
|
||||
|
||||
/obj/item/circuit_component/airlock/register_shell(atom/movable/shell)
|
||||
. = ..()
|
||||
if(istype(shell, /obj/machinery/door/airlock))
|
||||
|
||||
@@ -61,11 +61,7 @@
|
||||
signal = add_output_port("Signal", PORT_TYPE_SIGNAL)
|
||||
|
||||
/obj/item/circuit_component/bci_action/Destroy()
|
||||
button_name = null
|
||||
signal = null
|
||||
|
||||
QDEL_NULL(bci_action)
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/item/circuit_component/bci_action/populate_options()
|
||||
@@ -181,14 +177,6 @@
|
||||
|
||||
/obj/item/circuit_component/bci_core/Destroy()
|
||||
QDEL_NULL(charge_action)
|
||||
|
||||
message = null
|
||||
send_message_signal = null
|
||||
|
||||
user_port = null
|
||||
|
||||
user = null
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/item/circuit_component/bci_core/register_shell(atom/movable/shell)
|
||||
|
||||
@@ -31,10 +31,6 @@
|
||||
. = ..()
|
||||
signal = add_output_port("Signal", PORT_TYPE_SIGNAL)
|
||||
|
||||
/obj/item/circuit_component/compact_remote/Destroy()
|
||||
signal = null
|
||||
return ..()
|
||||
|
||||
/obj/item/circuit_component/compact_remote/register_shell(atom/movable/shell)
|
||||
RegisterSignal(shell, COMSIG_ITEM_ATTACK_SELF, .proc/send_trigger)
|
||||
|
||||
|
||||
@@ -36,12 +36,6 @@
|
||||
alt = add_output_port("Alternate Signal", PORT_TYPE_SIGNAL)
|
||||
right = add_output_port("Extra Signal", PORT_TYPE_SIGNAL)
|
||||
|
||||
/obj/item/circuit_component/controller/Destroy()
|
||||
signal = null
|
||||
alt = null
|
||||
right = null
|
||||
return ..()
|
||||
|
||||
/obj/item/circuit_component/controller/register_shell(atom/movable/shell)
|
||||
RegisterSignal(shell, COMSIG_ITEM_ATTACK_SELF, .proc/send_trigger)
|
||||
RegisterSignal(shell, COMSIG_CLICK_ALT, .proc/send_alternate_signal)
|
||||
|
||||
@@ -79,11 +79,6 @@
|
||||
attached_bot.add_money(-to_dispense)
|
||||
new /obj/item/holochip(drop_location(), to_dispense)
|
||||
|
||||
/obj/item/circuit_component/money_dispenser/Destroy()
|
||||
dispense_amount = null
|
||||
attached_bot = null
|
||||
return ..()
|
||||
|
||||
/obj/item/circuit_component/money_bot
|
||||
display_name = "Money Bot"
|
||||
var/obj/structure/money_bot/attached_bot
|
||||
@@ -119,13 +114,6 @@
|
||||
attached_bot = null
|
||||
return ..()
|
||||
|
||||
/obj/item/circuit_component/money_bot/Destroy()
|
||||
attached_bot = null
|
||||
total_money = null
|
||||
money_input = null
|
||||
money_trigger = null
|
||||
return ..()
|
||||
|
||||
/obj/item/circuit_component/money_bot/proc/handle_money_insert(atom/source, obj/item/item, mob/living/attacker)
|
||||
SIGNAL_HANDLER
|
||||
if(!attached_bot || !iscash(item))
|
||||
|
||||
@@ -41,12 +41,6 @@
|
||||
attacking = add_output_port("Scanned Entity", PORT_TYPE_ATOM)
|
||||
signal = add_output_port("Scanned", PORT_TYPE_SIGNAL)
|
||||
|
||||
/obj/item/circuit_component/wiremod_scanner/Destroy()
|
||||
attacker = null
|
||||
attacking = null
|
||||
signal = null
|
||||
return ..()
|
||||
|
||||
/obj/item/circuit_component/wiremod_scanner/register_shell(atom/movable/shell)
|
||||
RegisterSignal(shell, COMSIG_ITEM_AFTERATTACK, .proc/handle_afterattack)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user