Leaving a pet in open door (which shuts afterwards) while sleeping seems to kill it (PET ERROR: UNFOLLOW PET). I'm not 100% sure it is caused by the door, maybe, just by sleeping.
Still, the first turn after sleeping pet is ok and is shown at the same tile, as the player is (i.e. on the bed). The next move after the sleep throws error and the pet vanishes forever :)
Confirmed: pets are killed by sleeping, not by door.
Seems like it's the result of #127
I tried it out several time but I can't reproduce this bug. for me it works just fine.
Strange... I've got three pets unfollowed and eliminated with 100% reproduction. Maybe that might be caused by the savegame started and all three pets hatched before the bugfix was applied?
P.S. It happens in Desert.
Same happened in the overworld with a new pet (most certainly obtained after the last update). Sleeping makes unfollow pet.
I guess I should try starting a new game.
Is there a cheat to get a monster egg / pet faster? :)
Fixed this on a much easier way. The pet stays next to you but the radius where monsters can wake you up is increased.
to spawn a new pet try:
world.maplist[player.pos][player.on_map].npcs[player.pos+2][player.pos] = deepcopy(ml.mlist['pet'])