Merging 1.9.1 source: item changes
This commit is contained in:
@@ -141,7 +141,7 @@ public class Thief extends Mob {
|
||||
|
||||
Item item = hero.belongings.randomUnequipped();
|
||||
|
||||
if (item != null && !item.unique && item.level < 1 ) {
|
||||
if (item != null && !item.unique && item.level() < 1 ) {
|
||||
|
||||
GLog.w( TXT_STOLE, this.name, item.name() );
|
||||
Dungeon.quickslot.clearItem( item );
|
||||
|
||||
@@ -338,11 +338,11 @@ public class Ghost extends NPC {
|
||||
do {
|
||||
another = Generator.randomWeapon(10+i);
|
||||
} while (another instanceof MissileWeapon);
|
||||
if (another.level >= weapon.level) {
|
||||
if (another.level() >= weapon.level()) {
|
||||
weapon = (Weapon) another;
|
||||
}
|
||||
another = Generator.randomArmor(10+i);
|
||||
if (another.level >= armor.level) {
|
||||
if (another.level() >= armor.level()) {
|
||||
armor = (Armor) another;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user