v2.4.0: adjusted counter ability talent now that all abilities cost 1
This commit is contained in:
@@ -946,7 +946,7 @@ actors.hero.talent.feigned_retreat.desc=_+1:_ If an enemy attacks the Duelist's
|
||||
actors.hero.talent.expose_weakness.title=expose weakness
|
||||
actors.hero.talent.expose_weakness.desc=_+1:_ Enemies that attack the Duelist's afterimage become vulnerable for _2 turns_.\n\n_+2:_ Enemies that attack the Duelist's afterimage become vulnerable for _4 turns_.\n\n_+3:_ Enemies that attack the Duelist's afterimage become vulnerable for _6 turns_.\n\n_+4:_ Enemies that attack the Duelist's afterimage become vulnerable for _8 turns_.
|
||||
actors.hero.talent.counter_ability.title=counter ability
|
||||
actors.hero.talent.counter_ability.desc=_+1:_ If the Duelist uses a weapon ability within 3 turns of her afterimage being attacked, it will consume _0.5 fewer charges_.\n\n_+2:_ If the Duelist uses a weapon ability within 3 turns of her afterimage being attacked, it will consume _1 fewer charge_.\n\n_+3:_ If the Duelist uses a weapon ability within 3 turns of her afterimage being attacked, it will consume _1.5 fewer charges_.\n\n_+4:_ If the Duelist uses a weapon ability within 3 turns of her afterimage being attacked, it will consume _2 fewer charges_.
|
||||
actors.hero.talent.counter_ability.desc=_+1:_ If the Duelist uses a weapon ability within 3 turns of her afterimage being attacked, she will instantly regain _0.33 charges_.\n\n_+2:_ If the Duelist uses a weapon ability within 3 turns of her afterimage being attacked, she will instantly regain _0.67 charges_.\n\n_+3:_ If the Duelist uses a weapon ability within 3 turns of her afterimage being attacked, she will instantly regain _1 charge_.\n\n_+4:_ If the Duelist uses a weapon ability within 3 turns of her afterimage being attacked, she will instantly regain _1.33 charges_.
|
||||
|
||||
#universal
|
||||
actors.hero.talent.heroic_energy.title=heroic energy
|
||||
|
||||
@@ -263,6 +263,10 @@ public class MeleeWeapon extends Weapon {
|
||||
}
|
||||
}
|
||||
if (hero.buff(Talent.CounterAbilityTacker.class) != null){
|
||||
if (hero.pointsInTalent(Talent.COUNTER_ABILITY) == 4){
|
||||
Charger charger = Buff.affect(hero, Charger.class);
|
||||
charger.gainCharge(hero.pointsInTalent(Talent.COUNTER_ABILITY)/3f);
|
||||
}
|
||||
hero.buff(Talent.CounterAbilityTacker.class).detach();
|
||||
}
|
||||
}
|
||||
@@ -279,11 +283,7 @@ public class MeleeWeapon extends Weapon {
|
||||
}
|
||||
|
||||
public final float abilityChargeUse(Hero hero, Char target){
|
||||
float chargeUse = baseChargeUse(hero, target);
|
||||
if (hero.buff(Talent.CounterAbilityTacker.class) != null){
|
||||
chargeUse = Math.max(0, chargeUse-0.5f*hero.pointsInTalent(Talent.COUNTER_ABILITY));
|
||||
}
|
||||
return chargeUse;
|
||||
return baseChargeUse(hero, target);
|
||||
}
|
||||
|
||||
public int tier;
|
||||
|
||||
Reference in New Issue
Block a user