mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
[MIRROR] Dunking handle_atom_del() in the trash bin. [MDB IGNORE] (#23183)
* Dunking handle_atom_del() in the trash bin. * Update _box_magazine.dm * Modular paths --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
This commit is contained in:
@@ -33,16 +33,14 @@
|
||||
/obj/item/transfer_valve/IsAssemblyHolder()
|
||||
return TRUE
|
||||
|
||||
/obj/item/transfer_valve/handle_atom_del(atom/deleted_atom)
|
||||
/obj/item/transfer_valve/Exited(atom/movable/gone, direction)
|
||||
. = ..()
|
||||
if(deleted_atom == tank_one)
|
||||
if(gone == tank_one)
|
||||
tank_one = null
|
||||
update_appearance()
|
||||
return
|
||||
if(deleted_atom == tank_two)
|
||||
else if(gone == tank_two)
|
||||
tank_two = null
|
||||
update_appearance()
|
||||
return
|
||||
|
||||
/obj/item/transfer_valve/attackby(obj/item/item, mob/user, params)
|
||||
if(istype(item, /obj/item/tank))
|
||||
@@ -152,7 +150,7 @@
|
||||
T.Translate(-13, 0)
|
||||
J.transform = T
|
||||
underlays = list(J)
|
||||
|
||||
|
||||
if(wired)
|
||||
cable_overlay = mutable_appearance(icon, icon_state = "valve_cables", layer = layer + 0.05, appearance_flags = KEEP_TOGETHER)
|
||||
add_overlay(cable_overlay)
|
||||
@@ -160,12 +158,12 @@
|
||||
else if(cable_overlay)
|
||||
cut_overlay(cable_overlay, TRUE)
|
||||
cable_overlay = null
|
||||
|
||||
|
||||
worn_icon_state = "[initial(worn_icon_state)][tank_two ? "l" : ""][tank_one ? "r" : ""]"
|
||||
if(ishuman(loc)) //worn
|
||||
var/mob/living/carbon/human/human = loc
|
||||
human.update_worn_back()
|
||||
|
||||
|
||||
if(!attached_device)
|
||||
return
|
||||
|
||||
@@ -303,14 +301,12 @@
|
||||
split_gases()
|
||||
valve_open = FALSE
|
||||
tank_one.forceMove(drop_location())
|
||||
tank_one = null
|
||||
. = TRUE
|
||||
if("tanktwo")
|
||||
if(tank_two)
|
||||
split_gases()
|
||||
valve_open = FALSE
|
||||
tank_two.forceMove(drop_location())
|
||||
tank_two = null
|
||||
. = TRUE
|
||||
if("toggle")
|
||||
toggle_valve()
|
||||
|
||||
Reference in New Issue
Block a user