Skip to content

Commit

Permalink
Fix instruction string for gt4
Browse files Browse the repository at this point in the history
  • Loading branch information
noahcoolboy committed Sep 9, 2023
1 parent 16bfaf6 commit a8a6f50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/challenge.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Challenge {
return this.data.game_data.game_variant || this.data.game_data.instruction_string;
}
get instruction() {
return this.data.string_table[`${this.data.game_data.gameType}.instructions-${this.data.game_data.game_variant}`] || this.data.string_table[`${this.data.game_data.gameType}.touch_done_info${this.data.game_data.game_variant ? `_${this.data.game_data.game_variant}` : ""}`];
return this.data.string_table[`${this.data.game_data.gameType}.instructions-${this.variant}`] || this.data.string_table[`${this.data.game_data.gameType}.touch_done_info${this.data.game_data.game_variant ? `_${this.data.game_data.game_variant}` : ""}`];
}
get waves() {
return this.data.game_data.waves;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "funcaptcha",
"version": "1.1.3",
"version": "1.1.4",
"description": "A library used to interact with funcaptchas.",
"author": "noahcoolboy",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/challenge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export abstract class Challenge {
}

get instruction() {
return this.data.string_table[`${this.data.game_data.gameType}.instructions-${this.data.game_data.game_variant}`] || this.data.string_table[`${this.data.game_data.gameType}.touch_done_info${this.data.game_data.game_variant ? `_${this.data.game_data.game_variant}` : ""}`];
return this.data.string_table[`${this.data.game_data.gameType}.instructions-${this.variant}`] || this.data.string_table[`${this.data.game_data.gameType}.touch_done_info${this.data.game_data.game_variant ? `_${this.data.game_data.game_variant}` : ""}`];
}

get waves() {
Expand Down

0 comments on commit a8a6f50

Please sign in to comment.