Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurkars committed Jun 18, 2024
1 parent 0814179 commit ba093e4
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 44 deletions.
3 changes: 2 additions & 1 deletion data/fh/sections/157-3.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"conclusion": true,
"named": true,
"unlocks": [
"93"
"93A",
"93B"
]
}
4 changes: 2 additions & 2 deletions data/toa/character/three-eyes.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
"effects": [
{
"type": "custom",
"value": "%game.coloredToken.c7386a.toa-ritualist%: %game.condition.enfeeble% / %game.coloredToken.336fa2.toa-conquerer%: %game.condition.enfeeble%",
"value": "%game.coloredToken.c7386a.toa-ritualist%: %game.condition.enfeeble% / %game.coloredToken.336fa2.toa-conquerer%: %game.condition.empower%",
"effects": [
{
"type": "specialTarget",
Expand Down Expand Up @@ -245,7 +245,7 @@
"effects": [
{
"type": "custom",
"value": "%game.coloredToken.5cac66.toa-reaver%: %game.condition.rupture% / %game.coloredToken.c7386a.toa-ritualist%: %game.condition.empower%",
"value": "%game.coloredToken.5cac66.toa-reaver%: %game.condition.rupture% / %game.coloredToken.c7386a.toa-ritualist%: %game.condition.enfeeble%",
"effects": [
{
"type": "specialTarget",
Expand Down
49 changes: 14 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gloomhavensecretariat",
"version": "0.99.9",
"version": "0.99.10",
"license": "AGPL3",
"description": "Gloomhaven Secretariat is a Gloomhaven/Frosthaven Companion app.",
"homepage": "https://gloomhaven-secretariat.de",
Expand Down
6 changes: 1 addition & 5 deletions src/app/game/businesslogic/GameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,9 @@ export class GameManager {
return this.sortFiguresByTypeAndName(a, b);
}
return a.getInitiative() - b.getInitiative();
} else if (a.getInitiative() > 0) {
return 1;
} else if (b.getInitiative() > 0) {
return -1;
}

return this.sortFiguresByTypeAndName(a, b);
return 0;
});
}

Expand Down
4 changes: 4 additions & 0 deletions src/app/ui/figures/ability/abilities-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ export class AbiltiesDialogComponent implements OnInit {
shuffle(upcoming: boolean = false) {
gameManager.stateManager.before("shuffleAbilityDeck" + (upcoming ? "Upcoming" : ""), "data.monster." + this.monster.name);
gameManager.monsterManager.shuffleAbilities(this.monster, upcoming);
gameManager.sortFigures();
gameManager.stateManager.after();
this.update();
}

draw() {
gameManager.stateManager.before("drawAbility", "data.monster." + this.monster.name);
gameManager.monsterManager.drawAbility(this.monster);
gameManager.sortFigures();
gameManager.stateManager.after();
this.update();
}
Expand All @@ -89,6 +91,7 @@ export class AbiltiesDialogComponent implements OnInit {
if (gameManager.game.state == GameState.next) {
gameManager.monsterManager.drawExtra(this.monster);
}
gameManager.sortFigures();
gameManager.stateManager.after();
}
this.update();
Expand Down Expand Up @@ -125,6 +128,7 @@ export class AbiltiesDialogComponent implements OnInit {
if (sameDeckMonster) {
gameManager.monsterManager.applySameDeck(sameDeckMonster);
}
gameManager.sortFigures();
gameManager.stateManager.after();
this.update();
}
Expand Down

0 comments on commit ba093e4

Please sign in to comment.