Compare commits

...

197 commits
1.3.1 ... main

Author SHA1 Message Date
3ca9f31def chore(deps): update dependency @swc/core to v1.10.18 2025-02-19 07:01:33 +00:00
a60a24b502 chore(deps): update dependency rollup to v4.34.8 2025-02-17 07:01:23 +00:00
0ce81169c5 chore(deps): update dependency @swc/core to v1.10.16 2025-02-16 20:01:44 +01:00
5544e6f4ff chore(deps): update commitlint monorepo to v19.7.1 2025-02-16 19:01:10 +00:00
7294e18bb4 chore(deps): update dependency eslint-config-prettier to v10 2025-02-16 19:03:09 +01:00
00b0c61fad chore(deps): update yarn to v4.6.0 2025-02-16 19:02:42 +01:00
2f28d5f417 chore(deps): update dependency semver to v7.7.1 2025-02-16 19:02:20 +01:00
51c59a6661 chore(deps): update dependency rollup to v4.34.7 2025-02-16 19:02:09 +01:00
94976451ab chore(deps): update dependency fs-extra to v11.3.0 2025-02-16 19:02:00 +01:00
f0c87c8160 chore(deps): update dependency @guanghechen/rollup-plugin-copy to v6.0.4 2025-02-15 16:37:40 +00:00
505cb7468d chore(deps): update yarn to v4.5.1 2024-10-18 17:01:45 +00:00
dc4b7eb19f chore(deps): update dependency @swc/core to v1.7.36 2024-10-15 17:02:25 +00:00
576af4b0dc chore(deps): update dependency @swc/core to v1.7.35 2024-10-10 10:02:19 +00:00
6519db52d4 chore(deps): update dependency rollup-plugin-swc3 to v0.12.1 2024-10-07 20:02:12 +00:00
75b47f654e chore(deps): update dependency rollup-plugin-swc3 to v0.12.0 2024-10-06 08:02:09 +00:00
fcbf96728b chore(deps): update dependency @guanghechen/rollup-plugin-copy to v6 2024-10-03 13:01:47 +00:00
1aab186285 chore(deps): update dependency rollup to v4.24.0 2024-10-02 10:02:16 +00:00
58827f0a13 chore(deps): update dependency rollup to v4.22.5 2024-09-27 12:02:15 +00:00
adcf073767 chore(deps): update dependency @swc/core to v1.7.28 2024-09-24 13:02:23 +00:00
888d325839 chore(deps): update dependency rollup to v4.22.4 2024-09-21 07:03:57 +00:00
0d6e90bd03 chore(deps): update dependency rollup to v4.22.0 2024-09-19 05:02:01 +00:00
464d0c1532 chore(deps): update dependency eslint to v8.57.1 2024-09-16 16:01:52 +00:00
91e6aeae9e chore(deps): update yarn to v4.5.0 2024-09-14 13:01:31 +00:00
a57f59e7a4 chore(deps): update dependency rollup to v4.21.3 2024-09-13 16:02:01 +02:00
10bcd72e06 chore(deps): update dependency @swc/core to v1.7.26 2024-09-12 12:01:31 +00:00
36cfe53e5e chore(deps): update commitlint monorepo to v19.5.0 2024-09-11 09:02:05 +00:00
2e739ea74d chore(deps): update dependency @swc/core to v1.7.24 2024-09-08 07:02:07 +00:00
8d734a8866 chore(deps): update dependency @swc/core to v1.7.23 2024-09-03 00:01:51 +00:00
7ac88207cf chore(deps): update dependency @swc/core to v1.7.22 2024-08-31 11:01:24 +00:00
a63e008a90 chore(deps): update dependency rollup to v4.21.2 2024-08-30 08:02:02 +00:00
ca0fa06ea3 chore(deps): update commitlint monorepo to v19.4.1 2024-08-28 08:04:29 +00:00
b099f4921a chore(deps): update dependency rollup to v4.21.1 2024-08-26 17:03:48 +00:00
e9f27fd440 chore(deps): update yarn to v4.4.1 2024-08-25 14:01:23 +00:00
e897c34eb1 chore(deps): update dependency @swc/core to v1.7.18 2024-08-24 11:01:50 +00:00
d0568f5c4c chore(deps): update dependency @swc/core to v1.7.14 2024-08-19 15:01:53 +00:00
bcca5af4f1 chore(deps): update dependency rollup to v4.21.0 2024-08-18 06:02:10 +00:00
f11702c611 chore(deps): update dependency @swc/core to v1.7.11 2024-08-14 10:01:59 +00:00
a657616f20 chore(deps): update dependency @swc/core to v1.7.10 2024-08-09 21:05:13 +00:00
913238cacf chore(deps): update dependency @commitlint/cli to v19.4.0 2024-08-07 09:03:43 +00:00
d5af049c26 chore(deps): update dependency @swc/core to v1.7.6 2024-08-05 04:03:21 +00:00
33875419b0 chore(deps): update dependency rollup to v4.20.0 2024-08-04 01:01:24 +00:00
7f197f2082 chore(deps): update yarn to v4.4.0 2024-08-04 02:02:28 +02:00
b3927d5386 chore(deps): update dependency @swc/core to v1.7.5 2024-08-02 22:03:19 +00:00
235603bc26 chore(deps): update dependency rollup to v4.19.2 2024-08-01 20:01:22 +00:00
de5d3c0dee chore(deps): update dependency @swc/core to v1.7.4 2024-07-31 17:03:40 +00:00
b491217cad chore(deps): update dependency @swc/core to v1.7.3 2024-07-28 08:01:15 +00:00
e6a768e6a0 chore(deps): update dependency rollup to v4.19.1 2024-07-27 05:03:36 +00:00
3868e37e61 chore(deps): update dependency @swc/core to v1.7.2 2024-07-25 16:03:58 +00:00
89d7830e2b chore(deps): update dependency @swc/core to v1.7.1 2024-07-24 07:01:28 +00:00
b724ec02f7 chore(deps): update dependency rollup to v4.19.0 2024-07-20 06:01:44 +00:00
cbab5fcd7e chore(deps): update dependency @swc/core to v1.7.0 2024-07-18 05:03:19 +00:00
65297ae25e chore(deps): update dependency semver to v7.6.3 2024-07-16 23:03:44 +00:00
6d6b7f4702 chore(deps): update dependency rimraf to v6 2024-07-10 22:03:35 +00:00
9ced545e95 chore(deps): update dependency rimraf to v5.0.9 2024-07-09 19:02:51 +00:00
33974ce5b4 chore(deps): update dependency rollup to v4.18.1 2024-07-08 16:01:47 +00:00
4b307dc05f chore(deps): update dependency @swc/core to v1.6.13 2024-07-07 07:01:15 +00:00
5b08e52161 chore(deps): update dependency rimraf to v5.0.8 2024-07-06 05:02:03 +00:00
7ea98ade6d chore(deps): update dependency @swc/core to v1.6.7 2024-07-03 15:03:44 +00:00
9b515af2cb chore(deps): update dependency @swc/core to v1.6.6 2024-06-29 12:03:41 +00:00
0ba0f0555d chore(deps): update dependency @swc/core to v1.6.5 2024-06-22 09:02:36 +00:00
6823af9779 chore(deps): update yarn to v4.3.1 2024-06-21 07:01:29 +00:00
149c2c302b chore(deps): update dependency @swc/core to v1.6.3 2024-06-19 05:01:37 +00:00
46713d3fd5 chore(deps): update dependency @swc/core to v1.6.1 2024-06-16 07:03:24 +00:00
caac1d3882 chore(deps): update dependency conventional-changelog-conventionalcommits to v8 2024-06-15 20:05:12 +02:00
0bbe834345 chore(deps): update commitlint monorepo to v19 2024-06-15 18:04:28 +00:00
c809782df3 chore(deps): update yarn to v4.3.0 2024-06-15 17:05:40 +00:00
a88a09c8d5 chore(deps): update dependency conventional-changelog-cli to v5 2024-06-15 18:13:14 +02:00
6bcc17082e chore(deps): update dependency semver to v7.6.2 2024-06-15 18:11:51 +02:00
0baf2c8972 chore(deps): update dependency rollup to v4.18.0 2024-06-15 16:11:13 +00:00
25bb1c97ad chore(deps): update commitlint monorepo 2024-06-15 17:14:40 +02:00
6fe2c4e211 chore(deps): update dependency rollup-plugin-swc3 to v0.11.2 2024-06-15 17:14:19 +02:00
f5b4982299 chore(deps): update dependency eslint to v8.57.0 2024-06-15 17:14:14 +02:00
8495a93b00 chore(deps): update dependency rimraf to v5.0.7 2024-06-15 15:13:41 +00:00
1259e3f9be chore(deps): update dependency @swc/core to v1.6.0 2024-06-15 14:03:16 +00:00
cda8af89ae chore(deps): update dependency @swc/core to v1.3.101 2023-12-18 09:03:55 +00:00
ac7a34d188 chore(deps): update dependency rollup to v4.9.1 2023-12-17 07:01:31 +00:00
3ccf33fa08 chore(deps): update dependency eslint to v8.56.0 2023-12-15 23:04:20 +00:00
f270481b76 chore(deps): update dependency rollup to v4.9.0 2023-12-13 10:04:14 +00:00
3cef898abf chore(deps): update dependency rollup to v4.8.0 2023-12-11 07:01:41 +00:00
d1180bf7df chore(deps): update dependency rollup to v4.7.0 2023-12-08 08:01:41 +00:00
d19e327f4c chore(deps): update dependency rollup-plugin-swc3 to v0.11.0 2023-12-06 07:01:31 +00:00
7426ca274b chore(deps): update dependency eslint to v8.55.0 2023-12-03 15:01:01 +00:00
2a42f8b29f chore(deps): update dependency eslint-config-prettier to v9.1.0 2023-12-02 12:03:35 +00:00
a823fdbf00 chore(deps): update dependency @swc/core to v1.3.100 2023-12-01 09:03:20 +00:00
066c2b519f chore(deps): update dependency rollup to v4.6.1 2023-11-30 06:01:37 +00:00
9f00002105 chore(deps): update dependency fs-extra to v11.2.0 2023-11-28 01:03:36 +00:00
241c12fbdb chore(deps): update dependency rollup to v4.6.0 2023-11-26 14:01:33 +00:00
436393edbe chore(deps): update dependency rollup to v4.5.2 2023-11-24 07:03:44 +00:00
845272ca2f chore(deps): update dependency rollup to v4.5.1 2023-11-23 06:01:56 +00:00
cedad40674 chore(deps): update dependency @swc/core to v1.3.99 2023-11-22 05:01:04 +00:00
a559e3f757 chore(deps): update commitlint monorepo to v18.4.3 2023-11-21 03:02:12 +00:00
377e7934bb chore(deps): update dependency rollup to v4.5.0 2023-11-19 16:01:43 +00:00
0bc55acc24 chore(deps): update dependency eslint to v8.54.0 2023-11-18 14:03:00 +00:00
4a0ce3cabf chore(deps): update dependency rollup-plugin-swc3 to v0.10.4 2023-11-17 11:01:06 +00:00
32eb87a9fd chore(deps): update commitlint monorepo to v18.4.2 2023-11-16 09:01:09 +00:00
405f9282e8 chore(deps): update yarn to v4.0.2 2023-11-15 12:01:55 +00:00
212e8c1d33 chore(deps): update dependency rollup to v4.4.1 2023-11-14 06:01:11 +00:00
8275431a5f chore(deps): update dependency rollup to v4.4.0 2023-11-12 08:01:11 +00:00
f9d960f5b2 chore(deps): update commitlint monorepo 2023-11-12 05:03:06 +00:00
6d7a224453 chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.12 2023-11-07 22:01:10 +00:00
981f751dc6 chore(deps): update dependency eslint to v8.53.0 2023-11-07 01:01:20 +00:00
0e457ec062 chore(deps): update dependency @swc/core to v1.3.96 2023-11-05 23:01:03 +00:00
woodpecker[bot]
e4c19341bf chore(release): 1.4.4 2023-11-05 22:17:02 +00:00
d10c32cd70
chore(deps): bump foundry-publish to v2.4.1 2023-11-05 23:15:31 +01:00
woodpecker[bot]
d43bfdd660 chore(release): 1.4.3 2023-11-05 21:38:34 +00:00
woodpecker[bot]
caf0d70c5c chore(release): 1.4.2 2023-11-05 21:32:26 +00:00
5bf71441d7
build: fix bump-version 2023-11-05 22:31:33 +01:00
woodpecker[bot]
2fb69390a6 chore(release): 1.4.1 2023-11-05 21:24:13 +00:00
7ffd9706af
chore: use new package version publishing flow 2023-11-05 22:21:19 +01:00
27992aa4d6
chore(deps): update yarn to v4 2023-11-05 22:16:46 +01:00
ca88e4975d chore(deps): update dependency rollup to v4.3.0 2023-11-03 21:01:42 +00:00
c2d083b7fe chore(deps): update dependency rollup to v4.2.0 2023-11-01 05:00:59 +00:00
b4310f531d chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.11 2023-10-31 02:01:36 +00:00
216d812cad chore(deps): update dependency rollup to v4.1.5 2023-10-28 14:00:54 +00:00
27ca6ec375 chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.10 2023-10-27 11:00:57 +00:00
e5aed880e5 chore(deps): update commitlint monorepo 2023-10-26 08:01:50 +00:00
f614027da5 chore(deps): update dependency @swc/core to v1.3.95 2023-10-24 13:01:30 +00:00
8007302d75 chore(deps): update dependency eslint to v8.52.0 2023-10-22 19:01:06 +00:00
4971b6c5e6 chore(deps): update commitlint monorepo to v18 2023-10-22 18:58:58 +00:00
c9e793f12a chore(deps): update dependency @swc/core to v1.3.94 2023-10-22 18:58:35 +00:00
8a1541b5bc chore(deps): update dependency rollup-plugin-swc3 to v0.10.3 2023-10-21 16:01:21 +00:00
c54b97c1bf chore(deps): update commitlint monorepo to v17.8.1 2023-10-20 13:01:44 +00:00
54cd50f2eb chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.9 2023-10-18 15:01:24 +00:00
1a005d12af chore(deps): update dependency rollup to v4.1.4 2023-10-16 05:01:34 +00:00
e9c0665adb chore(deps): update commitlint monorepo to v17.8.0 2023-10-14 13:01:27 +00:00
bd7609c322 chore(deps): update dependency @swc/core to v1.3.93 2023-10-13 05:01:27 +00:00
bf329ae87e chore(deps): update dependency rollup to v4 2023-10-08 09:02:03 +00:00
ec0608b00a chore(deps): update dependency eslint to v8.51.0 2023-10-08 09:01:42 +00:00
baccb02b14 chore(deps): update dependency rollup-plugin-swc3 to v0.10.2 2023-10-07 07:00:59 +00:00
654a51c2b5 chore(deps): update dependency @swc/core to v1.3.92 2023-10-06 05:00:54 +00:00
c1a33062af chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.8 2023-10-05 02:01:03 +00:00
1364450962 chore(deps): update yarn to v3.6.4 2023-10-03 23:01:00 +00:00
b15d9cf10b chore(deps): update dependency @swc/core to v1.3.91 2023-10-01 16:01:29 +00:00
3f27641ab5 chore(deps): update dependency @commitlint/cli to v17.7.2 2023-09-29 09:00:54 +00:00
dcdc6356f4 chore(deps): update dependency rimraf to v5.0.5 2023-09-28 06:01:31 +00:00
c34af4d356 chore(deps): update dependency @swc/core to v1.3.90 2023-09-27 03:01:29 +00:00
d0f1a492f9 chore(deps): update dependency @swc/core to v1.3.89 2023-09-25 16:01:26 +00:00
ed75b33989 chore(deps): update dependency @swc/core to v1.3.88 2023-09-24 10:00:55 +00:00
89e56e4a21 chore(deps): update dependency eslint to v8.50.0 2023-09-23 07:01:00 +00:00
c9c5b20c9f chore(deps): update dependency @swc/core to v1.3.87 2023-09-22 04:01:24 +00:00
612aa3b020 chore(deps): update dependency @swc/core to v1.3.86 2023-09-18 23:01:34 +00:00
82995162dd chore(deps): update dependency @swc/core to v1.3.85 2023-09-15 08:01:21 +00:00
ad8eac4e98 chore(deps): update dependency @swc/core to v1.3.84 2023-09-11 16:01:18 +00:00
5285ef1088 chore(deps): update dependency conventional-changelog-conventionalcommits to v7.0.2 2023-09-10 13:00:52 +00:00
5773c43793 chore(deps): update dependency eslint to v8.49.0 2023-09-10 12:01:10 +00:00
5eca94039a chore(deps): update dependency conventional-changelog-cli to v4.1.0 2023-09-09 09:00:55 +00:00
655196cb1c chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.7 2023-09-08 06:00:56 +00:00
5f3cfb8247 chore(deps): update dependency @swc/core to v1.3.83 2023-09-07 03:01:31 +00:00
3950db5fcd chore(deps): update dependency @swc/core to v1.3.82 2023-09-01 04:01:25 +00:00
f095e33e67 chore(deps): update dependency @swc/core to v1.3.81 2023-08-30 14:01:15 +00:00
b3d303e380 chore(deps): update dependency conventional-changelog-conventionalcommits to v7 2023-08-29 01:00:48 +00:00
cbc091ddb0 chore(deps): update dependency conventional-changelog-cli to v4 2023-08-29 00:02:07 +00:00
6821abce61 chore(deps): update dependency rollup-plugin-swc3 to v0.10.1 2023-08-29 00:01:58 +00:00
f53fac6645 chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.6 2023-08-27 22:00:59 +00:00
c23d37c911 chore(deps): update dependency eslint to v8.48.0 2023-08-26 19:01:20 +00:00
25c4b15237 chore(deps): update dependency @swc/core to v1.3.80 2023-08-25 16:01:17 +00:00
a198a26345 chore(deps): update yarn to v3.6.3 2023-08-23 23:01:30 +00:00
536b67f193 chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.5 2023-08-19 09:01:33 +00:00
8de98d8ff7 chore(deps): update dependency @swc/core to v1.3.78 2023-08-18 23:02:03 +00:00
a4b7600326 chore(deps): update yarn to v3.6.2 2023-08-17 20:01:34 +00:00
2370fe14ab chore(deps): update dependency @swc/core to v1.3.77 2023-08-16 04:01:32 +00:00
1ca2ad23b6 chore(deps): update dependency eslint to v8.47.0 2023-08-11 18:01:10 +00:00
3ed1c6196d chore(deps): update commitlint monorepo 2023-08-11 17:01:42 +00:00
8500606450 chore(deps): update dependency @swc/core to v1.3.76 2023-08-10 14:01:16 +00:00
c9cd7b2725 chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.4 2023-08-09 11:02:21 +00:00
2813f3ee00 chore(deps): update dependency @swc/core to v1.3.75 2023-08-08 07:01:28 +00:00
4668484905 chore(deps): update dependency eslint-config-prettier to v9 2023-08-05 20:01:19 +00:00
29d9f02556 chore(deps): update dependency eslint-config-prettier to v8.10.0 2023-08-04 03:01:09 +00:00
19dfec62af chore(deps): update dependency @swc/core to v1.3.74 2023-08-03 00:01:28 +00:00
038afc1019 chore(deps): update dependency @swc/core to v1.3.73 2023-08-01 06:01:28 +00:00
116aa8e919 chore(deps): update dependency eslint to v8.46.0 2023-07-30 12:01:18 +00:00
68a3d240b0 chore(deps): update dependency @swc/core to v1.3.72 2023-07-29 09:01:12 +00:00
db97b38d49 chore(deps): update dependency eslint-config-prettier to v8.9.0 2023-07-28 06:01:12 +00:00
a626943052 chore(deps): update dependency @swc/core to v1.3.71 2023-07-28 05:01:10 +00:00
16b04a540a chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.3 2023-07-27 02:03:39 +00:00
ddfa89c9c2 chore(deps): update dependency rollup-plugin-swc3 to v0.9.1 2023-07-20 16:01:59 +00:00
33c00ab630 chore(deps): update commitlint monorepo to v17.6.7 2023-07-19 14:01:14 +00:00
3b30838c16 chore(deps): update dependency @swc/core to v1.3.70 2023-07-18 11:01:40 +00:00
cd88b75774 chore(deps): update dependency @guanghechen/rollup-plugin-copy to v5.0.2 2023-07-15 19:01:15 +00:00
b483098b07 chore(deps): update dependency eslint to v8.45.0 2023-07-14 16:01:09 +00:00
66896fb61e chore(deps): update dependency @swc/core to v1.3.69 2023-07-13 04:04:37 +00:00
23743ca5de chore(deps): update dependency rollup-plugin-swc3 to v0.9.0 2023-07-11 07:02:12 +00:00
3b3794d3ac chore(deps): update dependency eslint to v8.44.0 2023-07-11 06:02:10 +00:00
58aec5fe19 chore(deps): update dependency semver to v7.5.4 2023-07-11 05:01:02 +00:00
912e84999b chore(deps): update dependency @swc/core to v1.3.68 2023-07-11 04:01:04 +00:00
c0c07cf214 chore(deps): update commitlint monorepo to v17.6.6 2023-07-10 01:02:02 +00:00
woodpecker[bot]
65096d11b8 chore(release): 1.4.0 2023-07-10 00:25:20 +00:00
3d00caa31f
chore: use correct styles path for hot reload 2023-07-10 02:21:57 +02:00
5d8e34ce5f
chore: mark v11 compatibility 2023-07-10 02:20:57 +02:00
woodpecker[bot]
dbac03fbad chore(release): 1.3.4 2023-07-10 00:20:23 +00:00
95a595773d
fix: correctly calculate tick value when stopping to wait 2023-07-10 02:17:05 +02:00
753b934534
chore: update yarn and sdks 2023-07-10 01:24:08 +02:00
woodpecker[bot]
261d7a8b5a chore(release): 1.3.3 2023-07-09 23:04:19 +00:00
704798cc27
fix: use correct tick value for combatants joining later 2023-07-10 01:01:38 +02:00
a578cbff0d
docs: fix readme 2023-07-10 00:39:30 +02:00
woodpecker[bot]
512728bf30 chore(release): 1.3.2 2023-07-09 22:33:10 +00:00
woodpecker[bot]
53b0fb3732 chore(release): 1.3.2-0 2023-07-09 22:30:27 +00:00
23 changed files with 3566 additions and 3708 deletions

View file

@ -4,96 +4,96 @@
name: Bug Report name: Bug Report
about: File a bug report about: File a bug report
labels: ["bug", "to be confirmed"] labels: ['bug', 'to be confirmed']
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
Your issue may already have been reported! Please search on the [issue tracker](https://git.f3l.de/dungeonslayers/tickwerk/issues) before submitting a new one. Your issue may already have been reported! Please search on the [issue tracker](https://git.f3l.de/dungeonslayers/tickwerk/issues) before submitting a new one.
Thanks for taking the time to fill out this bug report! In order to make it effective, please provide the following information. Thanks for taking the time to fill out this bug report! In order to make it effective, please provide the following information.
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
## Issue Description ## Issue Description
- type: textarea - type: textarea
id: expected id: expected
attributes: attributes:
label: Expected Behavior label: Expected Behavior
description: What is the behavior that you expected? description: What is the behavior that you expected?
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: current id: current
attributes: attributes:
label: Current Behavior label: Current Behavior
description: What is the current behavior, i.e., what happens actually? description: What is the current behavior, i.e., what happens actually?
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: steps id: steps
attributes: attributes:
label: Steps to Reproduce label: Steps to Reproduce
description: What are the steps to reproduce the problem? description: What are the steps to reproduce the problem?
placeholder: | placeholder: |
1. 1.
2. 2.
3. 3.
4. 4.
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: context id: context
attributes: attributes:
label: Context label: Context
description: Please provide any additional context that might be helpful, e.g. log messages, screenshots, videos, or exports of problematic scenes or worlds. description: Please provide any additional context that might be helpful, e.g. log messages, screenshots, videos, or exports of problematic scenes or worlds.
validations: validations:
required: false required: false
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
## Environment Details ## Environment Details
- type: input - type: input
id: version id: version
attributes: attributes:
label: Version label: Version
description: Which version(s) of Tickwerk are you seeing the problem on? description: Which version(s) of Tickwerk are you seeing the problem on?
validations: validations:
required: true required: true
- type: input - type: input
id: foundry-version id: foundry-version
attributes: attributes:
label: Foundry VTT Version label: Foundry VTT Version
description: Which version(s) and build of Foundry VTT are you seeing the problem on? description: Which version(s) and build of Foundry VTT are you seeing the problem on?
validations: validations:
required: true required: true
- type: input - type: input
id: os id: os
attributes: attributes:
label: Operating System label: Operating System
description: Which operating system are you using? (Windows, OS X, Linux (which distro)) description: Which operating system are you using? (Windows, OS X, Linux (which distro))
placeholder: Windows placeholder: Windows
validations: validations:
required: true required: true
- type: dropdown - type: dropdown
id: browser id: browser
attributes: attributes:
label: Browser / App label: Browser / App
description: Are you using a Browser or the native Electron application? (Select all that apply) description: Are you using a Browser or the native Electron application? (Select all that apply)
multiple: true multiple: true
options: options:
- Native Electron App - Native Electron App
- Chrome - Chrome
- Firefox - Firefox
- Microsoft Edge - Microsoft Edge
- Safari - Safari
- Other - Other
validations: validations:
required: true required: true
- type: input - type: input
id: modules id: modules
attributes: attributes:
label: Relevant Modules label: Relevant Modules
description: Please list any other active modules (including their versions) that you think might be relevant. description: Please list any other active modules (including their versions) that you think might be relevant.
validations: validations:
required: false required: false

View file

@ -4,25 +4,25 @@
name: Feature Request name: Feature Request
description: Submit a feature request description: Submit a feature request
labels: ["feature"] labels: ['feature']
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
Your issue may already have been reported! Please search on the [issue tracker](https://git.f3l.de/dungeonslayers/tickwerk/issues) before submitting a new one. Your issue may already have been reported! Please search on the [issue tracker](https://git.f3l.de/dungeonslayers/tickwerk/issues) before submitting a new one.
In order to submit an effective feature request, please provide the following information. In order to submit an effective feature request, please provide the following information.
- type: textarea - type: textarea
id: description id: description
attributes: attributes:
label: Description label: Description
description: Please describe the proposal in as much detail as you feel is necessary. description: Please describe the proposal in as much detail as you feel is necessary.
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: context id: context
attributes: attributes:
label: Context label: Context
description: Is there anything else you can add about the proposal? You might want to link to related issues here if you haven't already. description: Is there anything else you can add about the proposal? You might want to link to related issues here if you haven't already.
validations: validations:
required: false required: false

View file

@ -4,5 +4,5 @@
"**/.pnp.*": true "**/.pnp.*": true
}, },
"eslint.nodePath": ".yarn/sdks", "eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js", "prettier.prettierPath": ".yarn/sdks/prettier/index.js"
} }

View file

@ -5,41 +5,41 @@
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/master/pipeline/schema/schema.json $schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/master/pipeline/schema/schema.json
variables: variables:
- &node_image node:lts - &node_image node:lts
when: when:
- event: push - event: push
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
- event: pull_request - event: pull_request
- event: tag - event: tag
- event: manual - event: manual
steps: steps:
install: install:
image: *node_image image: *node_image
commands: commands:
- yarn install --immutable - yarn install --immutable
lint: lint:
group: check group: check
image: *node_image image: *node_image
commands: commands:
- yarn lint - yarn lint
reuse: reuse:
group: check group: check
image: fsfe/reuse:latest image: fsfe/reuse:latest
commands: commands:
- reuse lint - reuse lint
commitlint: commitlint:
group: check group: check
image: *node_image image: *node_image
commands: commands:
- git fetch - git fetch
- yarn run commitlint --from origin/${CI_COMMIT_TARGET_BRANCH} - yarn run commitlint --from origin/${CI_COMMIT_TARGET_BRANCH}
when: when:
event: pull_request event: pull_request
build: build:
group: build group: build
image: *node_image image: *node_image
commands: commands:
- export APPDATA=$(pwd) - export APPDATA=$(pwd)
- yarn build - yarn build

View file

@ -77,15 +77,15 @@ steps:
- forge_token - forge_token
publish-to-foundry-admin: publish-to-foundry-admin:
group: publish group: publish
image: johannesloher/foundry-publish image: johannesloher/foundry-publish:v2.4.1
environment: environment:
FVTT_DELETE_OBSOLETE_VERSIONS: 'true' FVTT_DELETE_OBSOLETE_VERSIONS: 'true'
FVTT_USE_NEW_PACKAGE_ADMINISTRATION_INTERFACE: 'true'
commands: commands:
- export FVTT_MANIFEST_PATH=${CI_REPO_NAME}/module.json - export FVTT_MANIFEST_PATH=${CI_REPO_NAME}/module.json
- export FVTT_MANIFEST_URL=${CI_REPO_URL}/releases/download/${CI_COMMIT_TAG}/module.json - export FVTT_MANIFEST_URL=${CI_REPO_URL}/releases/download/${CI_COMMIT_TAG}/module.json
- foundry-publish - foundry-publish
secrets: secrets:
- fvtt_package_id
- fvtt_username - fvtt_username
- fvtt_password - fvtt_password
when: when:

View file

@ -5,37 +5,38 @@
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/master/pipeline/schema/schema.json $schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/master/pipeline/schema/schema.json
variables: variables:
- &node_image node:lts - &node_image node:lts
when: when:
event: manual event: manual
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
depends_on: depends_on:
- checks - checks
steps: steps:
install: install:
image: *node_image image: *node_image
commands: commands:
- yarn install --immutable - yarn install --immutable
release: release:
image: *node_image image: *node_image
commands: commands:
- apt-get update - apt-get update
- apt-get install --yes jq - apt-get install --yes jq
- export REPOSITORY_URL=$(echo "${CI_REPO_CLONE_URL}" | sed -e "s|://|://$${FORGE_TOKEN_NAME}:$${FORGE_TOKEN}@|g") - export REPOSITORY_URL=$(echo "${CI_REPO_CLONE_URL}" | sed -e "s|://|://$${FORGE_TOKEN_NAME}:$${FORGE_TOKEN}@|g")
- git remote set-url origin $${REPOSITORY_URL} - git remote set-url origin $${REPOSITORY_URL}
- git config user.name woodpecker[bot] - git config user.name woodpecker[bot]
- git config user.email woodpecker[bot]@${CI_SYSTEM_HOST} - git config user.email woodpecker[bot]@${CI_SYSTEM_HOST}
- yarn bump-version --release=${RELEASE_TYPE} - yarn bump-version --release=${RELEASE_TYPE}
- export RELEASE_VERSION=$(jq -r '.version' < package.json) - export RELEASE_VERSION=$(jq -r '.version' < package.json)
- git --no-pager diff - yarn prettier --write package.json module.json
- git add package.json module.json - git --no-pager diff
- 'git commit -m "chore(release): $${RELEASE_VERSION}"' - git add package.json module.json
- git tag -f $${RELEASE_VERSION} - 'git commit -m "chore(release): $${RELEASE_VERSION}"'
- git push origin ${CI_COMMIT_BRANCH} - git tag -f $${RELEASE_VERSION}
- git push origin $${RELEASE_VERSION} - git push origin ${CI_COMMIT_BRANCH}
secrets: - git push origin $${RELEASE_VERSION}
- forge_token_name secrets:
- forge_token - forge_token_name
- forge_token

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

934
.yarn/releases/yarn-4.6.0.cjs vendored Executable file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,20 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/use-at-your-own-risk
require(absPnpApiPath).setup();
}
}
// Defer to the real eslint/use-at-your-own-risk your application uses
module.exports = absRequire(`eslint/use-at-your-own-risk`);

View file

@ -1,6 +1,14 @@
{ {
"name": "eslint", "name": "eslint",
"version": "8.28.0-sdk", "version": "8.52.0-sdk",
"main": "./lib/api.js", "main": "./lib/api.js",
"type": "commonjs" "type": "commonjs",
"bin": {
"eslint": "./bin/eslint.js"
},
"exports": {
"./package.json": "./package.json",
".": "./lib/api.js",
"./use-at-your-own-risk": "./lib/unsupported-api.js"
}
} }

20
.yarn/sdks/prettier/bin-prettier.js vendored Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/bin-prettier.js
require(absPnpApiPath).setup();
}
}
// Defer to the real prettier/bin-prettier.js your application uses
module.exports = absRequire(`prettier/bin-prettier.js`);

6
.yarn/sdks/prettier/index.js vendored Executable file → Normal file
View file

@ -11,10 +11,10 @@ const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) { if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) { if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/index.js // Setup the environment to be able to require prettier
require(absPnpApiPath).setup(); require(absPnpApiPath).setup();
} }
} }
// Defer to the real prettier/index.js your application uses // Defer to the real prettier your application uses
module.exports = absRequire(`prettier/index.js`); module.exports = absRequire(`prettier`);

View file

@ -1,6 +1,7 @@
{ {
"name": "prettier", "name": "prettier",
"version": "2.8.0-sdk", "version": "2.8.8-sdk",
"main": "./index.js", "main": "./index.js",
"type": "commonjs" "type": "commonjs",
"bin": "./bin-prettier.js"
} }

View file

@ -1,7 +1,5 @@
nodeLinker: pnp nodeLinker: pnp
plugins: yarnPath: .yarn/releases/yarn-4.6.0.cjs
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
yarnPath: .yarn/releases/yarn-3.6.0.cjs enableGlobalCache: false

View file

@ -10,7 +10,7 @@ SPDX-License-Identifier: MIT
[![status-badge](https://ci.f3l.de/api/badges/10/status.svg)](https://ci.f3l.de/repos/10) [![status-badge](https://ci.f3l.de/api/badges/10/status.svg)](https://ci.f3l.de/repos/10)
[![REUSE status](https://api.reuse.software/badge/git.f3l.de/dungeonslayers/tickwerk)](https://api.reuse.software/info/git.f3l.de/dungeonslayers/tickwerk) [![REUSE status](https://api.reuse.software/badge/git.f3l.de/dungeonslayers/tickwerk)](https://api.reuse.software/info/git.f3l.de/dungeonslayers/tickwerk)
[![Forge installs](https://img.shields.io/badge/dynamic/json?label=Forge%20Installs&query=package.installs&suffix=%25&url=https%3A%2F%2Fforge-vtt.com%2Fapi%2Fbazaar%2Fpackage%2Ftickwerk&colorB=4aa94a)](https://forge-vtt.com/bazaar#package=tickwerk) [![Forge installs](https://img.shields.io/badge/dynamic/json?label=Forge%20Installs&query=package.installs&suffix=%25&url=https%3A%2F%2Fforge-vtt.com%2Fapi%2Fbazaar%2Fpackage%2Ftickwerk&colorB=4aa94a)](https://forge-vtt.com/bazaar#package=tickwerk)
[![Supported foundry versions](https://img.shields.io/endpoint?url=https://foundryshields.com/version?url=https%3A%2F%2Fgit.f3l.de%2Fapi%2Fpackages%2Fdungeonslayers%2Fgeneric%2Ftickwerk%2Flatest%module.json)](https://git.f3l.de/dungeonslayers/tickwerk) [![Supported foundry versions](https://img.shields.io/endpoint?url=https://foundryshields.com/version?url=https://git.f3l.de/api/packages/dungeonslayers/generic/tickwerk/latest/module.json)](https://git.f3l.de/dungeonslayers/tickwerk)
[![Ko-fi](https://img.shields.io/badge/Ko--fi-ghostfvtt-00B9FE?logo=kofi)](https://ko-fi.com/ghostfvtt) [![Ko-fi](https://img.shields.io/badge/Ko--fi-ghostfvtt-00B9FE?logo=kofi)](https://ko-fi.com/ghostfvtt)
A tick based combat system for [Foundry Virtual Tabletop]. A tick based combat system for [Foundry Virtual Tabletop].

View file

@ -1,7 +1,8 @@
{ {
"compilerOptions": { "compilerOptions": {
"module": "es2022", "module": "es2022",
"target": "ES2022" "target": "ES2022",
"strict": true
}, },
"exclude": ["node_modules", "dist"], "exclude": ["node_modules", "dist"],
"include": ["src", "client", "common"] "include": ["src", "client", "common"]

View file

@ -1,44 +1,46 @@
{ {
"id": "tickwerk", "id": "tickwerk",
"title": "Tickwerk", "title": "Tickwerk",
"description": "A tick based combat system for Foundry Virtual Tabletop", "description": "A tick based combat system for Foundry Virtual Tabletop",
"authors": [ "authors": [
{ {
"name": "Johannes Loher", "name": "Johannes Loher",
"email": "johannes.loher@fg4f.de", "email": "johannes.loher@fg4f.de",
"discord": "ghost#2000", "discord": "ghost#2000",
"ko-fi": "ghostfvtt" "ko-fi": "ghostfvtt"
} }
], ],
"url": "https://git.f3l.de/dungeonslayers/Tickwerk", "license": "https://git.f3l.de/dungeonslayers/tickwerk/raw/tag/1.4.4/LICENSE.md",
"license": "https://git.f3l.de/dungeonslayers/Tickwerk/raw/tag/1.3.1/LICENSE.md", "readme": "https://git.f3l.de/dungeonslayers/tickwerk/raw/tag/1.4.4/README.md",
"readme": "https://git.f3l.de/dungeonslayers/Tickwerk/raw/tag/1.3.1/README.md", "bugs": "https://git.f3l.de/dungeonslayers/tickwerk/issues",
"bugs": "https://git.f3l.de/dungeonslayers/Tickwerk/issues", "changelog": "https://git.f3l.de/dungeonslayers/tickwerk/releases/tag/1.4.4",
"changelog": "https://git.f3l.de/dungeonslayers/Tickwerk/releases/tag/1.3.1", "version": "1.4.4",
"version": "1.3.1", "flags": {
"compatibility": { "hotReload": {
"minimum": "10.290", "extensions": ["css", "hbs", "json"],
"verified": "10" "paths": ["templates", "styles", "lang"]
}
},
"compatibility": {
"minimum": "10.290",
"verified": "11"
},
"esmodules": ["tickwerk.js"],
"styles": ["styles/tickwerk.css"],
"languages": [
{
"lang": "en",
"name": "English",
"path": "lang/en.json"
}, },
"esmodules": [ {
"tickwerk.js" "lang": "de",
], "name": "Deutsch",
"styles": [ "path": "lang/de.json"
"styles/tickwerk.css" }
], ],
"languages": [ "manifest": "https://git.f3l.de/api/packages/dungeonslayers/generic/tickwerk/latest/module.json",
{ "download": "https://git.f3l.de/dungeonslayers/tickwerk/releases/download/1.4.4/tickwerk.zip",
"lang": "en", "manifestPlusVersion": "1.2.0",
"name": "English", "url": "https://git.f3l.de/dungeonslayers/tickwerk"
"path": "lang/en.json"
},
{
"lang": "de",
"name": "Deutsch",
"path": "lang/de.json"
}
],
"manifest": "https://git.f3l.de/api/packages/dungeonslayers/generic/Tickwerk/latest/module.json",
"download": "https://git.f3l.de/dungeonslayers/Tickwerk/releases/download/1.3.1/Tickwerk.zip",
"manifestPlusVersion": "1.2.0"
} }

View file

@ -1,58 +1,58 @@
{ {
"private": true, "private": true,
"name": "tickwerk", "name": "tickwerk",
"description": "A tick based combat system for Foundry Virtual Tabletop", "description": "A tick based combat system for Foundry Virtual Tabletop",
"version": "1.3.1", "version": "1.4.4",
"license": "https://git.f3l.de/dungeonslayers/tickwerk#licensing", "license": "https://git.f3l.de/dungeonslayers/tickwerk#licensing",
"homepage": "https://git.f3l.de/dungeonslayers/tickwerk", "homepage": "https://git.f3l.de/dungeonslayers/tickwerk",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.f3l.de/dungeonslayers/tickwerk" "url": "https://git.f3l.de/dungeonslayers/tickwerk"
}, },
"bugs": { "bugs": {
"url": "https://git.f3l.de/dungeonslayers/tickwerk/issues" "url": "https://git.f3l.de/dungeonslayers/tickwerk/issues"
}, },
"contributors": [ "contributors": [
{ {
"name": "Johannes Loher", "name": "Johannes Loher",
"email": "johannes.loher@fg4f.de" "email": "johannes.loher@fg4f.de"
} }
], ],
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "run-s clean:files build:files", "build": "run-s clean:files build:files",
"build:files": "rollup -c", "build:files": "rollup -c",
"watch": "rollup -c -w", "watch": "rollup -c -w",
"link-package": "node ./tools/link-package.js", "link-package": "node ./tools/link-package.js",
"clean": "run-p clean:files clean:link", "clean": "run-p clean:files clean:link",
"clean:files": "rimraf dist", "clean:files": "rimraf dist",
"clean:link": "node ./tools/link-package.js --clean", "clean:link": "node ./tools/link-package.js --clean",
"lint": "eslint --ext .js,.cjs,.mjs .", "lint": "eslint --ext .js,.cjs,.mjs .",
"lint:fix": "eslint --ext .js,.cjs,.mjs --fix .", "lint:fix": "eslint --ext .js,.cjs,.mjs --fix .",
"format": "prettier --write \"./**/*.(js|cjs|mjs|json|scss|yml)\"", "format": "prettier --write \"./**/*.(js|cjs|mjs|json|scss|yml|yaml)\"",
"bump-version": "node ./tools/bump-version.js", "bump-version": "node ./tools/bump-version.js",
"changelog": "conventional-changelog -p conventionalcommits -o CHANGELOG.md -r 2" "changelog": "conventional-changelog -p conventionalcommits -o CHANGELOG.md -r 2"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "17.6.5", "@commitlint/cli": "19.7.1",
"@commitlint/config-conventional": "17.6.5", "@commitlint/config-conventional": "19.7.1",
"@guanghechen/rollup-plugin-copy": "5.0.1", "@guanghechen/rollup-plugin-copy": "6.0.4",
"@swc/core": "1.3.62", "@swc/core": "1.10.18",
"conventional-changelog-cli": "2.2.2", "conventional-changelog-cli": "5.0.0",
"conventional-changelog-conventionalcommits": "5.0.0", "conventional-changelog-conventionalcommits": "8.0.0",
"eslint": "8.42.0", "eslint": "8.57.1",
"eslint-config-prettier": "8.8.0", "eslint-config-prettier": "10.0.1",
"eslint-plugin-prettier": "4.2.1", "eslint-plugin-prettier": "4.2.1",
"fs-extra": "11.1.1", "fs-extra": "11.3.0",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"prettier": "2.8.8", "prettier": "2.8.8",
"rimraf": "5.0.1", "rimraf": "6.0.1",
"rollup": "3.23.0", "rollup": "4.34.8",
"rollup-plugin-styles": "4.0.0", "rollup-plugin-styles": "4.0.0",
"rollup-plugin-swc3": "0.8.2", "rollup-plugin-swc3": "0.12.1",
"sass": "1.62.1", "sass": "1.62.1",
"semver": "7.5.1", "semver": "7.7.1",
"yargs": "17.7.2" "yargs": "17.7.2"
}, },
"packageManager": "yarn@3.6.0" "packageManager": "yarn@4.6.0"
} }

View file

@ -42,7 +42,7 @@ const CombatantMixin = (BaseCombatant) => {
*/ */
toggleWaiting() { toggleWaiting() {
const update = { [`flags.${packageId}.waiting`]: !this.waiting }; const update = { [`flags.${packageId}.waiting`]: !this.waiting };
if (this.parent?.started && this.waiting) update.initiative = this.parent?.round; if (this.parent?.started && this.waiting) update.initiative = this.parent?.tickValue;
return this.update(update); return this.update(update);
} }
@ -66,7 +66,8 @@ const CombatantMixin = (BaseCombatant) => {
} }
await this.update({ initiative: this.initiative + ticks }); await this.update({ initiative: this.initiative + ticks });
const advanceTime = ticks * CONFIG.time.roundTime; const tickTime = CONFIG.tickwerk?.tickTime;
const advanceTime = tickTime !== undefined ? ticks * tickTime : undefined;
if (advanceTime !== 0) { if (advanceTime !== 0) {
await this.combat?.update(undefined, { diff: false, advanceTime }); await this.combat?.update(undefined, { diff: false, advanceTime });
} }
@ -111,14 +112,16 @@ const CombatantMixin = (BaseCombatant) => {
* @param {object} data The data of the creation / update * @param {object} data The data of the creation / update
*/ */
async #updateTiebreakerData(data) { async #updateTiebreakerData(data) {
if ('initiative' in data) { const waiting = data.flags?.[packageId]?.waiting;
if ('initiative' in data || waiting !== undefined) {
const newInitiative = data.initiative ?? this.initiative;
const combatantsWithSameTickValue = const combatantsWithSameTickValue =
this.parent?.combatants.filter((combatant) => { this.parent?.combatants.filter((combatant) => {
const otherInitiative = const otherInitiative =
combatant._newInitiative !== undefined ? combatant._newInitiative : combatant.initiative; combatant._newInitiative !== undefined ? combatant._newInitiative : combatant.initiative;
return otherInitiative === data.initiative; return otherInitiative === newInitiative && combatant !== this;
}) ?? []; }) ?? [];
const tiebreaker = await this.#getTiebreaker(combatantsWithSameTickValue); const tiebreaker = await this.#getTiebreaker(combatantsWithSameTickValue, waiting);
foundry.utils.setProperty(data, `flags.${packageId}.tiebreaker`, tiebreaker); foundry.utils.setProperty(data, `flags.${packageId}.tiebreaker`, tiebreaker);
this._newInitiative = data.initiative; this._newInitiative = data.initiative;
this._newTiebreaker = tiebreaker; this._newTiebreaker = tiebreaker;
@ -128,11 +131,12 @@ const CombatantMixin = (BaseCombatant) => {
/** /**
* Get a tiebreaker between this combatant and the given other combatants. * Get a tiebreaker between this combatant and the given other combatants.
* @param {TickwerkCombatant[]} combatants The other combatants among which to find a tiebreaker * @param {TickwerkCombatant[]} combatants The other combatants among which to find a tiebreaker
* @param {boolean | undefined} waiting The change of the waiting state of the combatanmt
* @returns {Promise<number>} A promise that resolves to the tiebreaker * @returns {Promise<number>} A promise that resolves to the tiebreaker
*/ */
async #getTiebreaker(combatants) { async #getTiebreaker(combatants, waiting) {
const getTiebreaker = CONFIG.tickwerk?.getTiebreaker ?? defaultGetTiebreaker; const getTiebreaker = CONFIG.tickwerk?.getTiebreaker ?? defaultGetTiebreaker;
return getTiebreaker(this, combatants); return getTiebreaker(this, combatants, waiting);
} }
/** @override */ /** @override */
@ -178,14 +182,14 @@ const CombatantMixin = (BaseCombatant) => {
/** /**
* A function to get a tiebreaker for a combatant * A function to get a tiebreaker for a combatant
* @typedef {(combatant: TickwerkCombatant, combatants: TickwerkCombatant[]) => Promise<number>} GetTiebreaker * @typedef {(combatant: TickwerkCombatant, combatants: TickwerkCombatant[], waiting: boolean | undefined) => Promise<number>} GetTiebreaker
*/ */
/** /**
* Default implementation to get a tiebreaker for a combatant. * Default implementation to get a tiebreaker for a combatant.
* @type {GetTiebreaker} * @type {GetTiebreaker}
*/ */
const defaultGetTiebreaker = async (combatant, combatants) => { export const defaultGetTiebreaker = async (combatant, combatants) => {
if (combatants.length === 0) return 0; if (combatants.length === 0) return 0;
const tiebreakers = combatants.map((combatant) => { const tiebreakers = combatants.map((combatant) => {
return ( return (

View file

@ -7,14 +7,14 @@ import { getGame } from '../helpers';
export const registerDS4SpecificFunctionality = () => { export const registerDS4SpecificFunctionality = () => {
if (CONFIG.tickwerk === undefined) CONFIG.tickwerk = {}; if (CONFIG.tickwerk === undefined) CONFIG.tickwerk = {};
foundry.utils.mergeObject(CONFIG.tickwerk, { getTiebreaker, getInitiativeFormula }); foundry.utils.mergeObject(CONFIG.tickwerk, { getTiebreaker, getInitiativeFormula, tickTime: 0.5 });
registerRollItemSetting(); registerRollItemSetting();
Hooks.on('ds4.rollItem', onRollItem); Hooks.on('ds4.rollItem', onRollItem);
}; };
/** @type {import("../data/documents/combatant").GetTiebreaker} */ /** @type {import("../data/documents/combatant").GetTiebreaker} */
const getTiebreaker = async (combatant, combatants) => { const getTiebreaker = async (combatant, combatants, waiting) => {
if (combatants.length === 0) return 0; if (combatants.length === 0) return 0;
/** @type {number[]} */ /** @type {number[]} */
@ -26,7 +26,7 @@ const getTiebreaker = async (combatant, combatants) => {
for (const other of combatants) { for (const other of combatants) {
const tiebreaker = other._newTiebreaker ?? other.getFlag(packageId, 'tiebreaker') ?? 0; const tiebreaker = other._newTiebreaker ?? other.getFlag(packageId, 'tiebreaker') ?? 0;
if (getInitiative(other) > getInitiative(combatant)) { if (getInitiative(other) > getInitiative(combatant) || waiting === false) {
lowerBounds.push(tiebreaker); lowerBounds.push(tiebreaker);
} else if (getInitiative(other) < getInitiative(combatant)) { } else if (getInitiative(other) < getInitiative(combatant)) {
upperBounds.push(tiebreaker); upperBounds.push(tiebreaker);
@ -71,7 +71,7 @@ const getTiebreaker = async (combatant, combatants) => {
const getInitiativeFormula = (combatant) => { const getInitiativeFormula = (combatant) => {
const started = combatant.combat?.started ?? false; const started = combatant.combat?.started ?? false;
if (!started) return '-@combatValues.initiative.total'; if (!started) return '-@combatValues.initiative.total';
const tickValue = combatant.combat?.round ?? 0; const tickValue = combatant.combat?.tickValue ?? 0;
return `max(${tickValue} + 10 - @combatValues.initiative.total, ${tickValue})`; return `max(${tickValue} + 10 - @combatValues.initiative.total, ${tickValue})`;
}; };

View file

@ -10,7 +10,7 @@ import { hideBin } from 'yargs/helpers';
const packageType = 'module'; const packageType = 'module';
const repositoryOwner = process.env.CI_REPO_OWNER; const repositoryOwner = process.env.CI_REPO_OWNER;
const repositoryName = process.env.CI_REPO_NAME; const repositoryName = process.env.CI_REPO_NAME;
const repositoryURL = process.env.CI_REPO_LINK; const repositoryURL = process.env.CI_REPO_URL;
const forgeURL = process.env.CI_FORGE_URL; const forgeURL = process.env.CI_FORGE_URL;
const getManifestUrl = (channel) => const getManifestUrl = (channel) =>
@ -81,7 +81,7 @@ function bumpVersion(release) {
console.log(`Bumping version number to '${targetVersion}'`); console.log(`Bumping version number to '${targetVersion}'`);
packageJson.version = targetVersion; packageJson.version = targetVersion;
fs.writeJSONSync('package.json', packageJson, { spaces: 4 }); fs.writeJSONSync('package.json', packageJson, { spaces: 2 });
manifest.version = targetVersion; manifest.version = targetVersion;
manifest.url = repositoryURL; manifest.url = repositoryURL;
manifest.manifest = getManifestUrl(getChannel(targetVersion)); manifest.manifest = getManifestUrl(getChannel(targetVersion));
@ -90,7 +90,7 @@ function bumpVersion(release) {
manifest.changelog = getChangelogURL(targetVersion); manifest.changelog = getChangelogURL(targetVersion);
manifest.readme = getReadmeURL(targetVersion); manifest.readme = getReadmeURL(targetVersion);
manifest.license = getLicenseURL(targetVersion); manifest.license = getLicenseURL(targetVersion);
fs.writeJSONSync(manifestPath, manifest, { spaces: 4 }); fs.writeJSONSync(manifestPath, manifest, { spaces: 2 });
} }
const argv = yargs(hideBin(process.argv)).usage('Usage: $0').option('release', { const argv = yargs(hideBin(process.argv)).usage('Usage: $0').option('release', {

4730
yarn.lock

File diff suppressed because it is too large Load diff