…and while i am at it… tried to teach NPCs to drink healing potions and vodka.
the code needs further testing, but basically, if some vital body part is in danger, or hp < maxhp/2, NPC will try to drink some healing potion (if it has any in the inventory, of course).
and if NPC is paniced, and has some alcohol, it will try to drink it too.
in theory, you can now give some healing liquid to your allies instead of throwing the bottles at them. note that dumb creatures (like puppies) simply cannot open the bottle, so they will not drink in this way.
ok. after some fixes i observed mistress drinking healing potion i gave to her, and growing a new arm. yay!
currently, NPC will always drink the whole potion. this prolly should be fixed later: intelligent NPCs could taste just enough to be healed. but even in it's current form it is much better than throwing healing potions to allies!
also, there is now a reason to give healing potions to spawned monsters: they know what to do with them!
by the way: if you'll manage to befriend Kaethos, and give him a healing potion, he'll drink it, and grow a new leg. this is because intelligent monsters will check if they're missing some limbs, and consider this as "need healing" situation. (yes, just checked this. it works.)