v2.4.0: adjusted some weapon ability error messages
This commit is contained in:
@@ -1733,7 +1733,8 @@ items.weapon.melee.meleeweapon.ability_low_str=You aren't strong enough to use t
|
|||||||
items.weapon.melee.meleeweapon.ability_no_charge=You don't have enough energy to use that ability.
|
items.weapon.melee.meleeweapon.ability_no_charge=You don't have enough energy to use that ability.
|
||||||
items.weapon.melee.meleeweapon.ability_cant_use=You can't use that ability right now.
|
items.weapon.melee.meleeweapon.ability_cant_use=You can't use that ability right now.
|
||||||
items.weapon.melee.meleeweapon.ability_no_target=There is no target there.
|
items.weapon.melee.meleeweapon.ability_no_target=There is no target there.
|
||||||
items.weapon.melee.meleeweapon.ability_bad_position=That target can't be reached.
|
items.weapon.melee.meleeweapon.ability_target_range=That target isn't in range.
|
||||||
|
items.weapon.melee.meleeweapon.ability_occupied=That location is occupied.
|
||||||
items.weapon.melee.meleeweapon.prompt=Select a Target
|
items.weapon.melee.meleeweapon.prompt=Select a Target
|
||||||
items.weapon.melee.meleeweapon.swap=Swap Weapons
|
items.weapon.melee.meleeweapon.swap=Swap Weapons
|
||||||
items.weapon.melee.meleeweapon.swap_full=You can't do that with a full inventory.
|
items.weapon.melee.meleeweapon.swap_full=You can't do that with a full inventory.
|
||||||
|
|||||||
+9
-6
@@ -358,7 +358,7 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action {
|
|||||||
|
|
||||||
UnarmedAbilityTracker tracker = Buff.affect(hero, UnarmedAbilityTracker.class);
|
UnarmedAbilityTracker tracker = Buff.affect(hero, UnarmedAbilityTracker.class);
|
||||||
if (!hero.canAttack(enemy)){
|
if (!hero.canAttack(enemy)){
|
||||||
GLog.w(Messages.get(MeleeWeapon.class, "ability_bad_position"));
|
GLog.w(Messages.get(MeleeWeapon.class, "ability_target_range"));
|
||||||
tracker.detach();
|
tracker.detach();
|
||||||
if (hero.buff(FlurryEmpowerTracker.class) != null){
|
if (hero.buff(FlurryEmpowerTracker.class) != null){
|
||||||
hero.buff(FlurryEmpowerTracker.class).detach();
|
hero.buff(FlurryEmpowerTracker.class).detach();
|
||||||
@@ -495,21 +495,24 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action {
|
|||||||
|
|
||||||
if (Dungeon.hero.rooted){
|
if (Dungeon.hero.rooted){
|
||||||
PixelScene.shake( 1, 1f );
|
PixelScene.shake( 1, 1f );
|
||||||
GLog.w(Messages.get(MeleeWeapon.class, "ability_bad_position"));
|
GLog.w(Messages.get(MeleeWeapon.class, "ability_target_range"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Dungeon.level.distance(hero.pos, target) > range){
|
if (Dungeon.level.distance(hero.pos, target) > range){
|
||||||
GLog.w(Messages.get(MeleeWeapon.class, "ability_bad_position"));
|
GLog.w(Messages.get(MeleeWeapon.class, "ability_target_range"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Actor.findChar(target) != null){
|
||||||
|
GLog.w(Messages.get(MeleeWeapon.class, "ability_occupied"));
|
||||||
|
}
|
||||||
|
|
||||||
Ballistica dash = new Ballistica(hero.pos, target, Ballistica.PROJECTILE);
|
Ballistica dash = new Ballistica(hero.pos, target, Ballistica.PROJECTILE);
|
||||||
|
|
||||||
if (!dash.collisionPos.equals(target)
|
if (!dash.collisionPos.equals(target)
|
||||||
|| Actor.findChar(target) != null
|
|
||||||
|| (Dungeon.level.solid[target] && !Dungeon.level.passable[target])){
|
|| (Dungeon.level.solid[target] && !Dungeon.level.passable[target])){
|
||||||
GLog.w(Messages.get(MeleeWeapon.class, "ability_bad_position"));
|
GLog.w(Messages.get(MeleeWeapon.class, "ability_target_range"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -574,7 +577,7 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action {
|
|||||||
|
|
||||||
UnarmedAbilityTracker tracker = Buff.affect(hero, UnarmedAbilityTracker.class);
|
UnarmedAbilityTracker tracker = Buff.affect(hero, UnarmedAbilityTracker.class);
|
||||||
if (!hero.canAttack(enemy)){
|
if (!hero.canAttack(enemy)){
|
||||||
GLog.w(Messages.get(MeleeWeapon.class, "ability_bad_position"));
|
GLog.w(Messages.get(MeleeWeapon.class, "ability_target_range"));
|
||||||
tracker.detach();
|
tracker.detach();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -207,7 +207,7 @@ public class Pickaxe extends MeleeWeapon {
|
|||||||
|
|
||||||
hero.belongings.abilityWeapon = this;
|
hero.belongings.abilityWeapon = this;
|
||||||
if (!hero.canAttack(enemy)){
|
if (!hero.canAttack(enemy)){
|
||||||
GLog.w(Messages.get(this, "ability_bad_position"));
|
GLog.w(Messages.get(this, "ability_target_range"));
|
||||||
hero.belongings.abilityWeapon = null;
|
hero.belongings.abilityWeapon = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -107,15 +107,15 @@ public class Dagger extends MeleeWeapon {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Actor.findChar(target) != null || !Dungeon.level.heroFOV[target] || hero.rooted) {
|
PathFinder.buildDistanceMap(Dungeon.hero.pos, BArray.or(Dungeon.level.passable, Dungeon.level.avoid, null), maxDist);
|
||||||
GLog.w(Messages.get(wep, "ability_bad_position"));
|
if (PathFinder.distance[target] == Integer.MAX_VALUE || !Dungeon.level.heroFOV[target] || hero.rooted) {
|
||||||
|
GLog.w(Messages.get(wep, "ability_target_range"));
|
||||||
if (Dungeon.hero.rooted) PixelScene.shake( 1, 1f );
|
if (Dungeon.hero.rooted) PixelScene.shake( 1, 1f );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
PathFinder.buildDistanceMap(Dungeon.hero.pos, BArray.or(Dungeon.level.passable, Dungeon.level.avoid, null), maxDist);
|
if (Actor.findChar(target) != null) {
|
||||||
if (PathFinder.distance[target] == Integer.MAX_VALUE) {
|
GLog.w(Messages.get(wep, "ability_occupied"));
|
||||||
GLog.w(Messages.get(wep, "ability_bad_position"));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -79,7 +79,7 @@ public class Greataxe extends MeleeWeapon {
|
|||||||
|
|
||||||
hero.belongings.abilityWeapon = this;
|
hero.belongings.abilityWeapon = this;
|
||||||
if (!hero.canAttack(enemy)){
|
if (!hero.canAttack(enemy)){
|
||||||
GLog.w(Messages.get(this, "ability_bad_position"));
|
GLog.w(Messages.get(this, "ability_target_range"));
|
||||||
hero.belongings.abilityWeapon = null;
|
hero.belongings.abilityWeapon = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -89,7 +89,7 @@ public class Mace extends MeleeWeapon {
|
|||||||
|
|
||||||
hero.belongings.abilityWeapon = wep;
|
hero.belongings.abilityWeapon = wep;
|
||||||
if (!hero.canAttack(enemy)){
|
if (!hero.canAttack(enemy)){
|
||||||
GLog.w(Messages.get(wep, "ability_bad_position"));
|
GLog.w(Messages.get(wep, "ability_target_range"));
|
||||||
hero.belongings.abilityWeapon = null;
|
hero.belongings.abilityWeapon = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -99,7 +99,7 @@ public class Rapier extends MeleeWeapon {
|
|||||||
|
|
||||||
if (hero.rooted || Dungeon.level.distance(hero.pos, target) < 2
|
if (hero.rooted || Dungeon.level.distance(hero.pos, target) < 2
|
||||||
|| Dungeon.level.distance(hero.pos, target)-1 > wep.reachFactor(hero)){
|
|| Dungeon.level.distance(hero.pos, target)-1 > wep.reachFactor(hero)){
|
||||||
GLog.w(Messages.get(wep, "ability_bad_position"));
|
GLog.w(Messages.get(wep, "ability_target_range"));
|
||||||
if (hero.rooted) PixelScene.shake( 1, 1f );
|
if (hero.rooted) PixelScene.shake( 1, 1f );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -116,7 +116,7 @@ public class Rapier extends MeleeWeapon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (lungeCell == -1){
|
if (lungeCell == -1){
|
||||||
GLog.w(Messages.get(wep, "ability_bad_position"));
|
GLog.w(Messages.get(wep, "ability_target_range"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -77,7 +77,7 @@ public class RunicBlade extends MeleeWeapon {
|
|||||||
tracker.boost = 2f + 0.50f*buffedLvl();
|
tracker.boost = 2f + 0.50f*buffedLvl();
|
||||||
hero.belongings.abilityWeapon = this;
|
hero.belongings.abilityWeapon = this;
|
||||||
if (!hero.canAttack(enemy)){
|
if (!hero.canAttack(enemy)){
|
||||||
GLog.w(Messages.get(this, "ability_bad_position"));
|
GLog.w(Messages.get(this, "ability_target_range"));
|
||||||
tracker.detach();
|
tracker.detach();
|
||||||
hero.belongings.abilityWeapon = null;
|
hero.belongings.abilityWeapon = null;
|
||||||
return;
|
return;
|
||||||
|
|||||||
+1
-1
@@ -90,7 +90,7 @@ public class Sai extends MeleeWeapon {
|
|||||||
|
|
||||||
hero.belongings.abilityWeapon = wep;
|
hero.belongings.abilityWeapon = wep;
|
||||||
if (!hero.canAttack(enemy)){
|
if (!hero.canAttack(enemy)){
|
||||||
GLog.w(Messages.get(wep, "ability_bad_position"));
|
GLog.w(Messages.get(wep, "ability_target_range"));
|
||||||
hero.belongings.abilityWeapon = null;
|
hero.belongings.abilityWeapon = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -89,7 +89,7 @@ public class Sickle extends MeleeWeapon {
|
|||||||
|
|
||||||
hero.belongings.abilityWeapon = wep;
|
hero.belongings.abilityWeapon = wep;
|
||||||
if (!hero.canAttack(enemy)){
|
if (!hero.canAttack(enemy)){
|
||||||
GLog.w(Messages.get(wep, "ability_bad_position"));
|
GLog.w(Messages.get(wep, "ability_target_range"));
|
||||||
hero.belongings.abilityWeapon = null;
|
hero.belongings.abilityWeapon = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -89,7 +89,7 @@ public class Spear extends MeleeWeapon {
|
|||||||
|
|
||||||
hero.belongings.abilityWeapon = wep;
|
hero.belongings.abilityWeapon = wep;
|
||||||
if (!hero.canAttack(enemy) || Dungeon.level.adjacent(hero.pos, enemy.pos)){
|
if (!hero.canAttack(enemy) || Dungeon.level.adjacent(hero.pos, enemy.pos)){
|
||||||
GLog.w(Messages.get(wep, "ability_bad_position"));
|
GLog.w(Messages.get(wep, "ability_target_range"));
|
||||||
hero.belongings.abilityWeapon = null;
|
hero.belongings.abilityWeapon = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -91,7 +91,7 @@ public class Sword extends MeleeWeapon {
|
|||||||
|
|
||||||
hero.belongings.abilityWeapon = wep;
|
hero.belongings.abilityWeapon = wep;
|
||||||
if (!hero.canAttack(enemy)){
|
if (!hero.canAttack(enemy)){
|
||||||
GLog.w(Messages.get(wep, "ability_bad_position"));
|
GLog.w(Messages.get(wep, "ability_target_range"));
|
||||||
hero.belongings.abilityWeapon = null;
|
hero.belongings.abilityWeapon = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user