v0.8.0: Fixes:
- Added a missing translation for the prompt for dart tipping - fixed a rare crash bug with disarming traps
This commit is contained in:
parent
8bcb1e4630
commit
f831a84816
|
@ -60,7 +60,7 @@ public class Dart extends MissileWeapon {
|
|||
@Override
|
||||
public void execute(Hero hero, String action) {
|
||||
if (action.equals(AC_TIP)){
|
||||
GameScene.selectItem(itemSelector, WndBag.Mode.SEED, "select a seed");
|
||||
GameScene.selectItem(itemSelector, WndBag.Mode.SEED, Messages.get(this, "prompt"));
|
||||
}
|
||||
|
||||
super.execute(hero, action);
|
||||
|
|
|
@ -68,8 +68,10 @@ public class DisarmingTrap extends Trap{
|
|||
if (weapon != null && !weapon.cursed) {
|
||||
|
||||
int cell;
|
||||
int tries = 20;
|
||||
do {
|
||||
cell = Dungeon.level.randomRespawnCell();
|
||||
if (tries-- < 0 && cell != -1) break;
|
||||
|
||||
PathFinder.buildDistanceMap(pos, Dungeon.level.passable);
|
||||
} while (cell == -1 || PathFinder.distance[cell] < 10 || PathFinder.distance[cell] > 20);
|
||||
|
|
|
@ -1458,6 +1458,7 @@ items.weapon.missiles.darts.chillingdart.desc=These darts are tipped with an ice
|
|||
|
||||
items.weapon.missiles.darts.dart.name=dart
|
||||
items.weapon.missiles.darts.dart.ac_tip=TIP
|
||||
items.weapon.missiles.darts.dart.prompt=Select a seed
|
||||
items.weapon.missiles.darts.dart.tip_title=Tip Darts
|
||||
items.weapon.missiles.darts.dart.tip_desc=A seed can be combined with one or two darts to tip them. Each type of seed produces its own type of tipped dart, with a unique single-use effect.\n\nTipping a dart with these seeds will produce a _%s._
|
||||
items.weapon.missiles.darts.dart.tip_all=tip %1$d darts with %2$d seeds
|
||||
|
|
Loading…
Reference in New Issue
Block a user