Finally fixed the proximity runtime (#22950)

* Finally fixed the proximity runtime

Also fixed some misue of Move(d)s and destroys

* Fixed remove_from_proximity_list

* Fine, we'll do it your way

* Should sense/update loc here as well

* Assume deez nuts
This commit is contained in:
Cyberboss
2017-01-13 17:52:07 -05:00
committed by oranges
parent 81b889264e
commit 326bdfd76b
4 changed files with 25 additions and 21 deletions
+6 -4
View File
@@ -226,7 +226,7 @@
/obj/structure/alien/egg/Destroy()
remove_from_proximity_list(src, 1)
..()
return ..()
/obj/structure/alien/egg/attack_paw(mob/living/user)
return attack_hand(user)
@@ -281,9 +281,11 @@
child.Attach(M)
break
/obj/structure/alien/egg/Move()
remove_from_proximity_list(src, 1)
..()
/obj/structure/alien/egg/Moved(oldloc)
remove_from_proximity_list(oldloc, 1)
if(status == GROWN)
add_to_proximity_list(src, 1)
return ..()
/obj/structure/alien/egg/deconstruct()
if(!(flags & NODECONSTRUCT))