v2.0.0: fixed unencumbered spirit items not dropping with full invent

This commit is contained in:
Evan Debenham
2023-03-01 13:12:00 -05:00
parent e3ce66b58f
commit 2dc9ff8aeb

View File

@@ -390,8 +390,14 @@ public enum Talent {
}
if (talent == LIGHTLY_ARMED && hero.pointsInTalent(talent) == 3){
new ClothArmor().identify().collect();
new Gloves().identify().collect();
Item toGive = new ClothArmor().identify();
if (!toGive.collect()){
Dungeon.level.drop(toGive, hero.pos).sprite.drop();
}
toGive = new Gloves().identify();
if (!toGive.collect()){
Dungeon.level.drop(toGive, hero.pos).sprite.drop();
}
}
}