mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
Code Cleanup: (Bump(), Bumped()) -> (Collide(), CollidedWith()) (#4349)
This PR rips out the old Bump() and Bumped() procs and replaces them with Collide() and CollidedWith() respectively. Behavior should be the same, but Bump() should no longer be double-called, and no longer relies on spawns. Other changes: LAssailant is now a weakref. Some direct loc setting are now forceMove().
This commit is contained in:
@@ -72,11 +72,15 @@
|
||||
/obj/singularity/bullet_act(obj/item/projectile/P)
|
||||
return 0 //Will there be an impact? Who knows. Will we see it? No.
|
||||
|
||||
/obj/singularity/Bump(atom/A)
|
||||
consume(A)
|
||||
/obj/singularity/Collide(atom/A)
|
||||
. = ..()
|
||||
if (A)
|
||||
consume(A)
|
||||
|
||||
/obj/singularity/Bumped(atom/A)
|
||||
consume(A)
|
||||
/obj/singularity/CollidedWith(atom/movable/AM)
|
||||
. = ..()
|
||||
if (AM)
|
||||
consume(AM)
|
||||
|
||||
/obj/singularity/process()
|
||||
eat()
|
||||
|
||||
Reference in New Issue
Block a user