Refactors the mind.original variable into non reference variables. Improving player mob GC (#17219)

This commit is contained in:
Farie82
2021-12-16 18:30:21 +01:00
committed by GitHub
parent 6e1976f5cf
commit 8001f1ec04
14 changed files with 30 additions and 21 deletions
+2 -2
View File
@@ -28,7 +28,7 @@
if(mind)
mind.transfer_to(O)
O.mind.original = O
O.mind.set_original_mob(O)
else
O.key = key
@@ -81,7 +81,7 @@
if(mind) //TODO
mind.transfer_to(O)
if(O.mind.assigned_role == "Cyborg")
O.mind.original = O
O.mind.set_original_mob(O)
else if(mind && mind.special_role)
O.mind.store_memory("In case you look at this after being borged, the objectives are only here until I find a way to make them not show up for you, as I can't simply delete them without screwing up round-end reporting. --NeoFite")
else