Skip to content

Commit

Permalink
address #242, fix challenges in scenario summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurkars committed Nov 24, 2023
1 parent 72b46a1 commit c7e3364
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 5 deletions.
57 changes: 57 additions & 0 deletions data/gh/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -491,5 +491,62 @@
]
}
]
},
{
"type": "city",
"cardId": 10,
"options": [
{
"effects": [
{
"condition": {
"type": "reputationGT",
"value": "-5"
},
"text": true,
"rewards": [
[
{
"type": "loseGold",
"value": "5"
}
]
],
"return": true
},
{
"condition": {
"type": "otherwise"
},
"text": true,
"remove": true,
"rewards": [
[
{
"type": "gold",
"value": 5
}
]
]
}
]
},
{
"outcome": true,
"remove": true,
"effects": [
{
"rewards": [
[
{
"type": "reputation",
"value": 1
}
]
]
}
]
}
]
}
]
2 changes: 1 addition & 1 deletion data/toa/character/spiked-ring.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
{
"type": "add",
"count": 1,
"custom": "%game.custom.perks.ignoreNegativeScenario%",
"custom": "%game.custom.perks.ignoreNegativeItem%",
"cards": [
{
"count": 1,
Expand Down
4 changes: 2 additions & 2 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.83.2",
"version": "0.83.3",
"license": "AGPL3",
"description": "Gloomhaven Secretariat is a Gloomhaven Companion app.",
"homepage": "https://gloomhaven-secretariat.de",
Expand Down
1 change: 0 additions & 1 deletion src/app/ui/footer/scenario/summary/scenario-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ export class ScenarioSummaryComponent {

updateState(forceCampaign: boolean = false): void {
this.forceCampaign = forceCampaign;
this.challenges = 0;
this.numberChallenges = 0;
this.rewards = undefined;
this.townGuardAMs = [];
Expand Down

0 comments on commit c7e3364

Please sign in to comment.