Skip to content

Commit

Permalink
v5.0.0-alpha.258: '*' token Character AutoGUI Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncheung00 committed Sep 15, 2023
1 parent 7113960 commit 5486ff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
"preview:https": "serve dist",
"reinstall": "rm -rf node_modules; yarn; vue-tsc --noEmit"
},
"version": "5.0.0-alpha.257"
"version": "5.0.0-alpha.258"
}
4 changes: 2 additions & 2 deletions src/components/units/GameBody/CharacterAutoGUI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:y="yOffset + centers[i][1] * scaledHeight / richPositionData.rows"
:width="scaledWidth / richPositionData.columns"
:height="scaledHeight / richPositionData.rows" />
<text v-if="cell.token != '-'"
<text v-if="cell.token != '-' && cell.token != '*'"
:x="xOffset + (centers[i][0] + 0.5) * scaledWidth / richPositionData.columns"
:y="yOffset + (centers[i][1] + 0.5) * scaledHeight / richPositionData.rows"
:class="'app-game-board-default-token ' + (cell.move ? 'move ' : '') + getBoardMoveElementHintClass(cell.move)"
Expand Down Expand Up @@ -91,7 +91,7 @@
const richPositionData = computed(() => {
const position: string = currentPosition.value;
const matches = position.match(/^R_(A|B)_([0-9]+)_([0-9]+)_([a-zA-Z0-9-]+)*/)!;
const matches = position.match(/^R_(A|B)_([0-9]+)_([0-9]+)_([a-zA-Z0-9-\*]+)*/)!;
const validRichPosition = matches && matches.length >= 5;
if (validRichPosition) {
Expand Down

0 comments on commit 5486ff1

Please sign in to comment.