v2.0.0: re-added the 0-1 blocking on rapier and buffed aggro barrier

This commit is contained in:
Evan Debenham
2023-01-29 13:05:32 -05:00
parent fe99e22abc
commit 9d91de72cf
5 changed files with 10 additions and 4 deletions
@@ -831,7 +831,7 @@ actors.hero.talent.adventurers_intuition.desc=_+1:_ The Duelist identifies weapo
actors.hero.talent.patient_strike.title=patient strike
actors.hero.talent.patient_strike.desc=If the Duelist waits before performing a melee attack, she will deal _1-2 bonus damage_.\n\nIf the Duelist waits before performing a melee attack, she will deal _2 bonus damage_.
actors.hero.talent.aggressive_barrier.title=aggressive barrier
actors.hero.talent.aggressive_barrier.desc=_+1:_ The Duelist gains 2 shielding when she uses a weapon ability and is below _33% health_.\n\n_+2:_ The Duelist gains 2 shielding when she uses a weapon ability and is below _50% health_.
actors.hero.talent.aggressive_barrier.desc=_+1:_ The Duelist gains 3 shielding when she uses a weapon ability and is below _33% health_.\n\n_+2:_ The Duelist gains 3 shielding when she uses a weapon ability and is below _50% health_.
actors.hero.talent.aggressive_barrier.meta_desc=_If this talent is gained by a different hero_ it will instead grant shielding when making a melee attack at low health, with a 50 turn cooldown.
actors.hero.talent.focused_meal.title=focused meal
@@ -1631,9 +1631,10 @@ items.weapon.melee.quarterstaff$defensivestance.name=defensive stance
items.weapon.melee.quarterstaff$defensivestance.desc=The Duelist is using her quarterstaff to deflect incoming blows and projectiles. As long as she is in this stance, her evasion against all attacks is doubled.\n\nTurns remaining: %s.
items.weapon.melee.rapier.name=rapier
items.weapon.melee.rapier.stats_desc=This weapon blocks 0-1 damage.
items.weapon.melee.rapier.ability_name=lunge
items.weapon.melee.rapier.ability_desc=The Duelist can _lunge_ with a rapier at an enemy 1 tile away. This moves toward the enemy, deals +67% damage, and is guaranteed to hit.
items.weapon.melee.rapier.desc=A slim straight sword has less raw slashing power, but can still be quite strong with the right technique.
items.weapon.melee.rapier.desc=A slim straight sword that offers some protection in exchange for less slashing power.
items.weapon.melee.roundshield.name=round shield
items.weapon.melee.roundshield.typical_stats_desc=Typically this weapon blocks 0-%d damage. This blocking scales with upgrades.
@@ -1207,7 +1207,7 @@ public class Hero extends Char {
&& hasTalent(Talent.AGGRESSIVE_BARRIER)
&& buff(Talent.AggressiveBarrierCooldown.class) == null
&& (HP / (float)HT) < 0.167f*(1+pointsInTalent(Talent.AGGRESSIVE_BARRIER))){
Buff.affect(this, Barrier.class).setShield(2);
Buff.affect(this, Barrier.class).setShield(3);
Buff.affect(this, Talent.AggressiveBarrierCooldown.class, 50f);
}
sprite.attack( enemy.pos );
@@ -184,7 +184,7 @@ public class MeleeWeapon extends Weapon {
if (hero.heroClass == HeroClass.DUELIST
&& hero.hasTalent(Talent.AGGRESSIVE_BARRIER)
&& (hero.HP / (float)hero.HT) < 0.167f*(1+hero.pointsInTalent(Talent.AGGRESSIVE_BARRIER))){
Buff.affect(hero, Barrier.class).setShield(2);
Buff.affect(hero, Barrier.class).setShield(3);
}
if (hero.buff(Talent.CombinedLethalityAbilityTracker.class) != null
@@ -53,6 +53,11 @@ public class Rapier extends MeleeWeapon {
lvl*(tier+1); //scaling unchanged
}
@Override
public int defenseFactor( Char owner ) {
return 1; //1 extra defence
}
@Override
public String targetingPrompt() {
return Messages.get(this, "prompt");