Open jasonhsw opened 3 years ago
By invalidate, do you mean changing the class to #-1 (like you had recycle()ed the original class) or actually deleting every reference to the waif from lists and properties?
I have a feeling you mean the latter but I'd like to check before rambling on!
Well, I think that changing the class to #-1 might be easier to implement. Sort of like what happens to references to an anon when it gets destroyed by the recycle() builtin.
I think it would be very useful to have a way to force WAIFs to be destroyed. For example, I have noticed that if WAIFs send text to players, references to them can get caught in places like the paranoid database, which prevents them from being destroyed. Maybe an invalidate function, or maybe an extension to the recycle function.