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 String TXT_TO_STRING = "%s :%d";
|
||||
private static final String AC_DETACH = "DETACH";
|
||||
protected static final String AC_DETACH = "DETACH";
|
||||
|
||||
public int tier;
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ import com.watabou.utils.Bundle;
|
|||
|
||||
import java.util.ArrayList;
|
||||
|
||||
//FIXME: this should be upgradeable, fix in 0.4.0
|
||||
abstract public class ClassArmor extends Armor {
|
||||
|
||||
private static final String AC_SPECIAL = "SPECIAL";
|
||||
|
@ -70,6 +71,7 @@ abstract public class ClassArmor extends Armor {
|
|||
break;
|
||||
}
|
||||
|
||||
classArmor.level(armor.level());
|
||||
classArmor.STR = armor.STR;
|
||||
classArmor.DR = armor.DR();
|
||||
|
||||
|
@ -98,6 +100,7 @@ abstract public class ClassArmor extends Armor {
|
|||
@Override
|
||||
public ArrayList<String> actions( Hero hero ) {
|
||||
ArrayList<String> actions = super.actions( hero );
|
||||
actions.remove( AC_DETACH );
|
||||
if (hero.HP >= 3 && isEquipped( hero )) {
|
||||
actions.add( AC_SPECIAL );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user