I kindof liked the manhack method, as it’s really funny when you throw out a pichu and the game says "The pichu scans you and emits an IFF beep"
Though, I suspect that this is a stupid stopgap that ruins the whole point of having pokemon in it.
I’ll look into actually changing the item so that this can happen without being stupid.
edit: It appears that there isn’t a forward definition of monster in the item class, so it can’t have the unique_ptr type for that.
Adding that in, it seems to cause everything, and I do mean everything to break, mostly the things that need the default constructor for the Item class, the copy constructor, the destructor, etc… I don’t want to rewrite any of that, so I need a bit more help with that. I think I might be able to just use a monster pointer normally, as it is checked considerably less…
Anyway, thanks for helping me around the code.
Edit again:
I’m having trouble figuring out how to serialize the monster internally. I’ve settled on storing the id, and its experience for now.