v0.4.0: Refactored strength requirements, also changed how they scale
Also refactored class armor a bit so that it is upgradeable
This commit is contained in:
@@ -165,7 +165,7 @@ public class ItemSlot extends Button {
|
||||
|
||||
if (item.levelKnown || (isWeapon && !(item instanceof MeleeWeapon))) {
|
||||
|
||||
int str = isArmor ? ((Armor)item).STR : ((Weapon)item).STR;
|
||||
int str = isArmor ? ((Armor)item).STRReq() : ((Weapon)item).STRReq();
|
||||
topRight.text( Messages.format( TXT_STRENGTH, str ) );
|
||||
if (str > Dungeon.hero.STR()) {
|
||||
topRight.hardlight( DEGRADED );
|
||||
@@ -176,8 +176,8 @@ public class ItemSlot extends Button {
|
||||
} else {
|
||||
|
||||
topRight.text( Messages.format( TXT_TYPICAL_STR, isArmor ?
|
||||
((Armor)item).typicalSTR() :
|
||||
((MeleeWeapon)item).typicalSTR() ) );
|
||||
((Armor)item).STRReq(0) :
|
||||
((Weapon)item).STRReq(0) ) );
|
||||
topRight.hardlight( WARNING );
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user