Commit Graph

2302 Commits

Author SHA1 Message Date
Chr1Z93
426be3e4a8 exclude "chaos bag" from cleanup 2022-11-24 17:00:08 +01:00
Chr1Z93
f8d9a0f846 displaying tag by default 2022-11-24 16:50:53 +01:00
Chr1Z93
97b3dd4ce5 use require, optimize 2022-11-24 16:44:04 +01:00
Chr1Z93
c043ab78eb fixing position, using require 2022-11-24 15:00:52 +01:00
Chr1Z93
86d87cb45b resolving issues/bugfixing 2022-11-24 14:33:29 +01:00
Buhallin
2ec1bae42a
Fix multiple bugs with uses
- Saved old cards have a different structure for uses (single vs. array) making the change breaking.  Code was assuming an array, breaking any loaded objects with the old structure
- Uses spawn loop was setting the values only, resulting in only the last item being spawned
- Upkeep checks were embedded incorrectly, leading to logic errors in certain circumstances
- If uses had multiple entries, tokens were spawning on top of each other and exploding, probably due to the yPos shift in playmats.  Added an offset to spawn the groups in different places to avoid this, which is prettier anyway
2022-11-24 00:00:25 -08:00
Chr1Z93
a1d10432d2 correction of typo 2022-11-23 22:37:28 +01:00
Buhallin
4e054b2c22
Clean up testing log statements 2022-11-22 14:49:21 -08:00
Buhallin
2da0899b37
Refactor SpawnBag to be required as a module
This enables data hiding and improves modularity
2022-11-22 14:48:46 -08:00
Buhallin
70b2cf420b
Refactor Zones to be used as an included module
This enables data hiding and enforces a functional interface.
2022-11-22 14:44:46 -08:00
Chr1Z
3cf51936f2
Merge pull request #59 from argonui/bump-action-patch
bump action version
2022-11-22 08:28:44 +01:00
Argonui
18d6bbe86d
hotfix version of action 2022-11-21 23:07:27 -06:00
argonui
4ddf5a2c97
bump action version 2022-11-21 23:02:41 -06:00
Chr1Z93
9f9410a3aa Merge branch 'main' of https://github.com/argonui/SCED into datahelper-tsk 2022-11-21 21:42:13 +01:00
Chr1Z93
5ee6a9e196 clue data for five scenarios 2022-11-21 21:40:37 +01:00
Buhallin
32963eb206
Merge pull request #57 from argonui/tokenraise
raising tokens, combining and updating source scripts
2022-11-18 17:32:45 -08:00
Chr1Z93
c54afed3ff resolving comments 2022-11-19 01:56:50 +01:00
Chr1Z93
270c731246 raising tokens, combining sourcescript 2022-11-19 00:33:21 +01:00
Chr1Z
410a06e6ef
Merge pull request #55 from argonui/upgrade-sheet-bag
Convert Upgrade Sheet container to SpawnBag
2022-11-18 19:23:01 +01:00
Chr1Z
86c8bac295
Merge pull request #54 from argonui/living-ink-circles
Add skill selection capability to Living Ink
2022-11-18 19:22:04 +01:00
Chr1Z
9478ef8010
Merge pull request #56 from argonui/trait-fix
Fix bug with deck loader since trait removal
2022-11-18 19:20:35 +01:00
Buhallin
d2b498a3ba
Fix bug with deck loader since trait removal
Since traits are now an optional field in the metadata, add nil checks when using them
2022-11-17 18:51:31 -08:00
Buhallin
b5ff337266
Add skill selection capability to Living Ink
Skill icons can now be clicked on the sheet to circle them
2022-11-17 18:26:30 -08:00
Buhallin
901c0c5908
Convert Upgrade Sheet container to SpawnBag
Includes a minor change to record the new Minicard tag in the core file
2022-11-17 15:29:58 -08:00
Chr1Z
fb93be674c
Merge pull request #53 from argonui/stat-position
Tweak stat tracker positions to be consistent above each playmat
2022-11-17 22:22:44 +01:00
Chr1Z
3edbf26225
Merge pull request #51 from argonui/metadata-minimization
Metadata minimization
2022-11-17 22:14:32 +01:00
Buhallin
5e5b602101
Tweak stat tracker positions to be consistent above each playmat
Uses the White playmat as a base (hence no changes there)
2022-11-17 13:01:46 -08:00
Buhallin
7474dca09f
Add card type tags to playermats
Tags the main playmat slots as Asset, and the investigator as Investigator.  This matches the tagging on player cards so only the appropriate type of card will snap to those points.
2022-11-17 12:32:46 -08:00
Buhallin
92e2f6198b
Metadata minimization
Mass change to streamline the metadata JSON.  For boolean fields which are rarely true (e.g. permanent, weakness) the fields are removed and assumed to be false if absenst.

It also removes the traits field if it was empty, which would apply to non-card cards like Minicards and Upgrade Sheets.
2022-11-17 11:50:52 -08:00
Buhallin
c92c44c5c6
Merge pull request #46 from argonui/scriptstate-cleanup
clearing the cache for the data helper
2022-11-17 11:20:43 -08:00
Buhallin
90278297db
Merge pull request #50 from argonui/loader-cust-refactor
Refactor upgrade sheet handling in the deck loader
2022-11-17 01:55:18 -08:00
Buhallin
6abaaa7e00
Move Minicard spawn zone so they're not on top of the new stat trackers 2022-11-17 01:48:59 -08:00
Buhallin
d830314598
Merge pull request #48 from argonui/spawn_bag
Create SpawnBag to replace card memory bags
2022-11-17 01:44:01 -08:00
Chr1Z93
082bcea8ac moved scriptstate into JSON 2022-11-17 10:43:14 +01:00
Buhallin
65063caa1c
Merge pull request #47 from argonui/cleanup
Rounding cleanup
2022-11-17 01:43:11 -08:00
Buhallin
7c9d728820
Handle review comments, and add some documentation that got lost 2022-11-17 01:39:49 -08:00
Buhallin
c04c7df9f1
Handle review comments 2022-11-17 01:27:59 -08:00
Buhallin
d19d35a310
Refactor upgrade sheet handling in the deck loader
- Split upgrade sheets to follow the slots/data pattern
- Factor out methods to set selections on upgrade sheets
- Factor out method to add Summoned Servitor minicard
- Add type 'UpgradeSheet' to appropriate cards
- Remove handleStartsInPlay() method and detect it as a default zone
2022-11-17 01:03:58 -08:00
Chr1Z
b286a64ada
Merge pull request #49 from argonui/runic-fix
Add replenish charge to Runic Axe metadata
2022-11-17 09:43:06 +01:00
Buhallin
7e331ff45c
Add replenish charge to Runic Axe metadata 2022-11-16 23:00:27 -08:00
Buhallin
15e69d6d0e
Rounding cleanup
Looks like a lot of files got committed without the value rounding applied.  Not sure when or which PR, but this cleans it up.

This change was generated based on the current main by assembling then decomposing the mod.
2022-11-16 17:53:41 -08:00
Buhallin
2eba59d971
Create SpawnBag to replace card memory bags
This adds a new SpawnBag capability which will replace the various small memory bags around the table.

Initial implementation is for the Bonded container, which is no longer a bag.
2022-11-16 17:49:31 -08:00
Chr1Z93
cd72568dc1 clearing the cache for the data helper 2022-11-17 00:32:03 +01:00
Chr1Z
90ed79ee96
Merge pull request #21 from argonui/playermats
updated playermats and added InvestigatorSkillTracker
2022-11-17 00:22:46 +01:00
argonui
1901a5dfff
Merge pull request #45 from argonui/update_build_mod 2022-11-16 16:51:51 -06:00
argonui
e929fa306e
Update build-mod.yml 2022-11-16 15:02:31 -06:00
Chr1Z93
752d9a8b43 clean up of skill tracker 2022-11-16 19:08:19 +01:00
Chr1Z93
9f1415901e adding requested changes 2022-11-16 18:58:59 +01:00
Buhallin
bbbc7428c5
Merge pull request #42 from argonui/metadata_update5
A few more data cleanups
2022-11-16 03:17:21 -08:00
Buhallin
e0041f9fc7
Remove reference to orphaned file 2022-11-16 01:58:24 -08:00