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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user