[quote=“Kevin Granade, post:4, topic:2614”]Wow that’s a fun one, spawned an unlimited number of bear traps…
Had the dog run over a bear trap previously?
I’m asking because this could either be a random monster drop, or the mechanism where a bear trap attaches to a monster and then drops afterwards…
I’m guessing the second, because if it was a normal drop I’d expect to see tons of reports.
EDIT: There’s definitely an oddity with beartrap handling:
void trapfuncm::beartrap(game *g, monster *z, int x, int y)
{
...
g->sound(x, y, 8, "SNAP!");
if (z->hurt(35)) {
g->kill_mon(g->mon_at(x, y));
g->m.spawn_item(x, y, "beartrap", 0);
} else {
z->moves = 0;
z->add_effect(ME_BEARTRAP, rng(8, 15));
}
g->m.tr_at(x, y) = tr_null;
item beartrap(g->itypes["beartrap"], 0);
z->add_item(beartrap);
}
At the very least, if the beartrap kills the monster it spawns one on the map, and sticks another one in the monster inventory, at the worst it does something really weird because after g->kill_monster() z is undefined 0_0
Ok, so it’s weird but harmless, the monster inventory gets dumped in kill_mon(), and kill_mon() doesn’t invalidate z…
Have to look into it later when I can get a debugger on it.[/quote]
Yeah I thought it might have omething to do with what you described, mostly.
As I left the shelter I found some traps close by, got a bear trap and yeah I mostly use them to run away from dogs the dog died and then dropped one bear trap, the other couple of dogs in the save, just came out of town and haven’t been caught in bear traps I put, I think?X3