v0.3.2: tweaked fleeing to cancel at a certain distance, tweaked thieves to destroy their stolen item after escaping, tweaked bags to be kept (empty) on ressurect

This commit is contained in:
Evan Debenham
2015-10-30 17:27:44 -04:00
parent d829e63f19
commit 303a6ddc5b
4 changed files with 20 additions and 5 deletions
@@ -187,6 +187,10 @@ public class Belongings implements Iterable<Item> {
}
} else if (item.unique) {
item.detachAll(backpack);
//you keep the bag itself, not its contents.
if (item instanceof Bag){
((Bag)item).clear();
}
item.collect();
} else if (!item.isEquipped( owner )) {
item.detachAll( backpack );