mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-20 02:27:36 +01:00
Updates the proximity monitor component (#15836)
* prox component update * mochi review * bug fix, makes proximity sensors always active * GC fixes and removes an unused proc * Disposal fixes from TM * fixes runtimes when objects created in nullspace runtimes, fixes portable flasher * a fresh perspective * lewcc review * adds comment about direct loc setting over forceMove
This commit is contained in:
@@ -170,7 +170,6 @@
|
||||
to_chat(usr, "<span class='notice'>You detach [assembly] from [src]</span>")
|
||||
usr.put_in_hands(assembly)
|
||||
assembly = null
|
||||
qdel(GetComponent(/datum/component/proximity_monitor))
|
||||
update_icon()
|
||||
else
|
||||
to_chat(usr, "<span class='notice'>There is no assembly to remove.</span>")
|
||||
@@ -187,8 +186,6 @@
|
||||
assembly = W
|
||||
user.drop_item()
|
||||
W.forceMove(src)
|
||||
if(assembly.has_prox_sensors())
|
||||
AddComponent(/datum/component/proximity_monitor)
|
||||
overlays += "assembly"
|
||||
else
|
||||
..()
|
||||
|
||||
@@ -153,7 +153,6 @@
|
||||
usr.visible_message("<span class='notice'>[usr] detaches [rig] from [src].</span>", "<span class='notice'>You detach [rig] from [src].</span>")
|
||||
rig.forceMove(get_turf(usr))
|
||||
rig = null
|
||||
qdel(GetComponent(/datum/component/proximity_monitor))
|
||||
lastrigger = null
|
||||
overlays.Cut()
|
||||
|
||||
@@ -176,8 +175,6 @@
|
||||
rig = H
|
||||
user.drop_item()
|
||||
H.forceMove(src)
|
||||
if(rig.has_prox_sensors())
|
||||
AddComponent(/datum/component/proximity_monitor)
|
||||
var/icon/test = getFlatIcon(H)
|
||||
test.Shift(NORTH, 1)
|
||||
test.Shift(EAST, 6)
|
||||
|
||||
Reference in New Issue
Block a user