Just a quick update. If you have spawned anything before now, the treasure code is not going to work for long. This is because the creatures were taking treasure gifts and placing them in their inventory. But when Thorn adds skill learning to the battle system, your creatures will drop skill pocket variables sometimes. Which is not a good thing.
So go ahead and delete your spawns and spawn them again (or copy the new template creature code into yours if you are a coder).
The new treasure code will work with the next battle system because your creature will create a pouch and place treasure inside it.
Thorn's curiosity got to him, as he spawned a passive mummy, then spawned some aggressive maggots and gave them to the mummy. After killing the mummy he was surprised to be attacked viciously by the treasure it dropped.
So as of now, passive creatures will remember who hit them last so dropped treasure will be given proper ownership.
One more thing (ok maybe this isn't such a short update after all)... the new treasure code won't accept anything worth more than 10% of the creature itself. This fixes a potential money-making exploit.