mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Update error msg to not use fullcaps
This commit is contained in:
parent
17894af7c4
commit
3d0c050a5e
@ -64,10 +64,12 @@ export class MoveHelper extends GameManagerHelper {
|
|||||||
const movePosition = this.getMovePosition(pkmIndex, move);
|
const movePosition = this.getMovePosition(pkmIndex, move);
|
||||||
if (movePosition === -1) {
|
if (movePosition === -1) {
|
||||||
expect.fail(
|
expect.fail(
|
||||||
`MoveHelper.select called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene
|
`MoveHelper.select called with move ${toReadableString(MoveId[move])} not in moveset!
|
||||||
|
Battler Index: ${toReadableString(BattlerIndex[pkmIndex])};
|
||||||
|
Moveset: ${this.game.scene
|
||||||
.getField()
|
.getField()
|
||||||
[pkmIndex].getMoveset()
|
[pkmIndex].getMoveset()
|
||||||
.map(pm => MoveId[pm.moveId])
|
.map(pm => toReadableString(MoveId[pm.moveId]))
|
||||||
.join(", ")}`,
|
.join(", ")}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -106,10 +108,12 @@ export class MoveHelper extends GameManagerHelper {
|
|||||||
const movePosition = this.getMovePosition(pkmIndex, move);
|
const movePosition = this.getMovePosition(pkmIndex, move);
|
||||||
if (movePosition === -1) {
|
if (movePosition === -1) {
|
||||||
expect.fail(
|
expect.fail(
|
||||||
`MoveHelper.selectWithTera called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene
|
`MoveHelper.selectWithTera called with move '${toReadableString(MoveId[move])}'not in moveset!
|
||||||
|
Battler Index: ${toReadableString(BattlerIndex[pkmIndex])};
|
||||||
|
Moveset: ${this.game.scene
|
||||||
.getField()
|
.getField()
|
||||||
[pkmIndex].getMoveset()
|
[pkmIndex].getMoveset()
|
||||||
.map(pm => MoveId[pm.moveId])
|
.map(pm => toReadableString(MoveId[pm.moveId]))
|
||||||
.join(", ")}`,
|
.join(", ")}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user