v0.3.5a: fixed warrior's seal working incorrectly with class armor
This commit is contained in:
parent
ae450603a3
commit
f898df2c22
|
@ -55,7 +55,7 @@ public class Armor extends EquipableItem {
|
||||||
private static final int HITS_TO_KNOW = 10;
|
private static final int HITS_TO_KNOW = 10;
|
||||||
|
|
||||||
private static final String TXT_TO_STRING = "%s :%d";
|
private static final String TXT_TO_STRING = "%s :%d";
|
||||||
private static final String AC_DETACH = "DETACH";
|
protected static final String AC_DETACH = "DETACH";
|
||||||
|
|
||||||
public int tier;
|
public int tier;
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ import com.watabou.utils.Bundle;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
//FIXME: this should be upgradeable, fix in 0.4.0
|
||||||
abstract public class ClassArmor extends Armor {
|
abstract public class ClassArmor extends Armor {
|
||||||
|
|
||||||
private static final String AC_SPECIAL = "SPECIAL";
|
private static final String AC_SPECIAL = "SPECIAL";
|
||||||
|
@ -69,7 +70,8 @@ abstract public class ClassArmor extends Armor {
|
||||||
classArmor = new HuntressArmor();
|
classArmor = new HuntressArmor();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
classArmor.level(armor.level());
|
||||||
classArmor.STR = armor.STR;
|
classArmor.STR = armor.STR;
|
||||||
classArmor.DR = armor.DR();
|
classArmor.DR = armor.DR();
|
||||||
|
|
||||||
|
@ -98,6 +100,7 @@ abstract public class ClassArmor extends Armor {
|
||||||
@Override
|
@Override
|
||||||
public ArrayList<String> actions( Hero hero ) {
|
public ArrayList<String> actions( Hero hero ) {
|
||||||
ArrayList<String> actions = super.actions( hero );
|
ArrayList<String> actions = super.actions( hero );
|
||||||
|
actions.remove( AC_DETACH );
|
||||||
if (hero.HP >= 3 && isEquipped( hero )) {
|
if (hero.HP >= 3 && isEquipped( hero )) {
|
||||||
actions.add( AC_SPECIAL );
|
actions.add( AC_SPECIAL );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user