Lurkars / gloomhavensecretariat

A Gloomhaven / Frosthaven Companion App
https://gloomhaven-secretariat.de
GNU Affero General Public License v3.0
181 stars 70 forks source link

Frosthaven C... #96

Open Lurkars opened 1 year ago

Lurkars commented 1 year ago

Implement FH challenges feature, at least what's possible. Should be easily adopted with the scenario rules. Addition may need to change monster stats (abilities). Data available at https://github.com/any2cards/worldhaven/tree/master/images/challenge-cards/frosthaven

z-m-k commented 1 year ago

Even if not fully implemented, can you add a toggle to reflect that a group has X active challenges and award 2X experience to each player? I can see this done the following way: add a toggle that challenges are unlocked and then on the 'success' screen reuse the 'goal' tick boxes to add a 'challenge' line.

Lurkars commented 1 year ago

I don't have access to the rule book stickers yet, so don't have the challenge rules available. Can you provide me those or give more details?

Lurkars commented 1 year ago

Ah okay, I found some info, so important is only the rule "each character gains 2XP for every challenge played on success". Any good idea how to add this feature spoiler free? I mean I personally do not care, but unsure if I just add a challenge field to the success summary, if this is spoiler for some folks.

TheSquinter commented 1 year ago

Could be just a tick box in a corner of the summary screen or below battle goals called 'Challenge' or 'Challenge Compete'? Ticking it adds +2 bonus XP to all characters not absent. Most people would know of the challenge deck in general due to the setting up, but not know the details.

Or can you make it hidden behind spoiler text like "Building #" that you need to click on to view the words "Challenge Complete"

Lurkars commented 1 year ago

Damn in the end would be best if I had #163 finished and make it depended from that. But still no good idea where and how to add buildings support. The general data is already there.

Lurkars commented 1 year ago

So now with tracking of buildings in #163, I hope I can quickly add this in the basic function to the scenario summary.

Lurkars commented 1 year ago

So in 0.62.4 I add challenges if Town Hall is build. On Scenario summary there is a checkbox to mark if the challenge was successful, in building level 3 there are two checkboxes of course. I hope this is enough for the start.

TheSquinter commented 1 year ago

Did a quick test, seems to work but there might be a bug with forced linked scenarios:

Same with non-forced linked scenarios where you can either finish or continue with link

image

Lurkars commented 1 year ago

Thanks, will check.

Lurkars commented 1 year ago

Ähem...possible that it's currently wrong for other stuff too. When you successfully finish a scenario and continue with a linked one, you would get any bonuses right? Even on forced one! Besides challenges: battleGoals, collective gold, items, etc also missing on linked. so need to fix that!

Lurkars commented 1 year ago

Should be fixed in v0.62.5

StaffanBaloo commented 1 year ago

Regarding challenges, I think some of them make global adjustments to monster stats. For example, I saw someone on Reddit mention a challenge that gave all monsters +2 health. I figure that implementing the challenge deck itself is probably a lot of work, but I'm guessing there is already support for scenario-based stat adjustments (since there are some scenarios that do things like "all monsters add push 2 to their attacks"). Perhaps it would be possible to allow manual access to these modifiers and handle it that way? Or are the modified monsters implemented as their own set of monsters (e.g. there's both a "Snow Imp" and a "Snow Imp (scenario X)" in the data files?

Lurkars commented 1 year ago

For now, special scenario rules are technically complete new monsters. So this is not an easy change. Anyways, since there are even more use cases for this, I am already thinking about a better format to "change" existing monsters dynamically and use that also for the scenario rules. But still on a long backlog list, but of course, this ticket is open to add support for this sometimes and that will of course include the stuff you mentioned. But as already mentioned, by now the monsters have different files (simple example City Guard from Scenario 1)

Lurkars commented 4 months ago

first draft in v0.99.13

Needs to be enabled in Settings under FH Rules first!

Whats currently missing:

sacrelicious2 commented 1 month ago

How do you enable the challenge cards? I don't see any such options under Frosthaven Rules

Lurkars commented 1 month ago

Sorry, actually was a bug. Should be fixed now in v0.101.1. Anyways you need the corresponding building available to see the setting.

Lurkars commented 4 weeks ago

So finally this can be moved to a testing state in v0.102.2. I tried to implement all automatons possible.

Happy if some can also help testing here, because I am still not in a FH Campaign with our group and even if we start this year, will take some time until we unlock challenges.