v0.9.2: implement the point blank talent

This commit is contained in:
Evan Debenham 2021-01-23 21:18:49 -05:00
parent 79d577031a
commit 44c11c4b50
3 changed files with 5 additions and 3 deletions

View File

@ -391,6 +391,8 @@ actors.hero.talent.heightened_senses.title=heightened senses
actors.hero.talent.heightened_senses.desc=_+1:_ The Huntress gains mind vision on any enemy within _2 tiles of her position_.\n\n_+2:_ The Huntress gains mind vision on any enemy within _3 tiles of her position_.
actors.hero.talent.durable_projectiles.title=durable projectiles
actors.hero.talent.durable_projectiles.desc=_+1:_ Thrown weapons have _+50% durability_ when used by the Huntress.\n\n_+2:_ Thrown weapons have _+75% durability_ when used by the Huntress.
actors.hero.talent.point_blank.title=point blank
actors.hero.talent.point_blank.desc=_+1:_ When the Huntress uses a thrown weapon at melee range it has _-30% accuracy,_ instead of -50%.\n\n_+2:_ When the Huntress uses a thrown weapon at melee range it has _-10% accuracy,_ instead of -50%.\n\n_+3:_ When the Huntress uses a thrown weapon at melee range it has _+10% accuracy,_ instead of -50%.\n\nNote that thrown weapons always have +50% accuracy when used at a distance.
actors.hero.hero.name=you
actors.hero.hero.leave=You can't leave yet, the rest of the dungeon awaits below!

View File

@ -400,7 +400,7 @@ public class Hero extends Char {
if (wep instanceof MissileWeapon){
if (Dungeon.level.adjacent( pos, target.pos )) {
accuracy *= 0.5f;
accuracy *= (0.5f + 0.2f*pointsInTalent(Talent.POINT_BLANK));
} else {
accuracy *= 1.5f;
}

View File

@ -104,7 +104,7 @@ public enum Talent {
//Huntress T2
INVIGORATING_MEAL(100), RESTORED_NATURE(101), REJUVENATING_STEPS(102), HEIGHTENED_SENSES(103), DURABLE_PROJECTILES(104),
//Huntress T3
HUNTRESS_T3_1(105, 3), HUNTRESS_T3_2(106, 3),
POINT_BLANK(105, 3), HUNTRESS_T3_2(106, 3),
//Sniper T3
SNIPER_T3_1(107, 3), SNIPER_T3_2(108, 3), SNIPER_T3_3(109, 3),
//Warden T3
@ -424,7 +424,7 @@ public enum Talent {
Collections.addAll(tierTalents, ROGUE_T3_1, ROGUE_T3_2);
break;
case HUNTRESS:
Collections.addAll(tierTalents, HUNTRESS_T3_1, HUNTRESS_T3_2);
Collections.addAll(tierTalents, POINT_BLANK, HUNTRESS_T3_2);
break;
}
for (Talent talent : tierTalents){