v0.3.5: fixed equipping armor scaling with speed in the wrong way
This commit is contained in:
parent
03a4ffb652
commit
371bf9b58f
|
@ -150,7 +150,7 @@ public class Armor extends EquipableItem {
|
|||
((HeroSprite)hero.sprite).updateArmor();
|
||||
activate(hero);
|
||||
|
||||
hero.spendAndNext( 2 * time2equip( hero ) );
|
||||
hero.spendAndNext( time2equip( hero ) );
|
||||
return true;
|
||||
|
||||
} else {
|
||||
|
@ -179,7 +179,7 @@ public class Armor extends EquipableItem {
|
|||
|
||||
@Override
|
||||
protected float time2equip( Hero hero ) {
|
||||
return hero.speed();
|
||||
return 2 / hero.speed();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user