Compare commits

..

5 Commits
v1.0.1 ... main

Author SHA1 Message Date
93fa0caa29 macros/kalikke.js 2024-06-22 12:04:35 -05:00
0e7066608d asset updates 2024-03-11 21:34:37 -05:00
113b613116 update version 2024-02-27 22:11:50 -06:00
3bebb704d0 asset update 2024-02-27 22:08:50 -06:00
d8aa463a0f maps for greenbelt 2024-02-14 21:26:08 -06:00
33 changed files with 15319 additions and 17 deletions

BIN
assets/art/chapter2.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/art/old_sycamore_totm.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/maps/companions/Ekundayo/rough_hills.webp (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/maps/greenbelt/fangberry_thicket.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/maps/greenbelt/nettles_crossing.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/maps/greenbelt/old_sycamore.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/maps/greenbelt/old_sycamore_overhead_roots.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/maps/greenbelt/sootscale_caverns.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/maps/greenbelt/sootscale_caverns_pit.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/maps/greenbelt/tatzlwyrm_den.webp (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
assets/maps/greenbelt/temple_of_the_elk/temple_stairs_1.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/maps/greenbelt/temple_of_the_elk/temple_stairs_2.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/maps/greenbelt/temple_of_the_elk/temple_stairs_3.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/tokens/npcs/companions/Dog.Avatar.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/tokens/npcs/companions/Dog.Token.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/tokens/npcs/greenbelt/Chief_Sootscale.Avatar.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/tokens/npcs/greenbelt/Chief_Sootscale.Token..webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/tokens/npcs/greenbelt/Tartuk.Avatar.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/tokens/npcs/greenbelt/Tartuk.Token.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/tokens/npcs/greenbelt/cursed_guardian.Avatar.webp (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/tokens/npcs/greenbelt/cursed_guardian.Token.webp (Stored with Git LFS) Normal file

Binary file not shown.

53
macros/kalikke.js Normal file
View File

@ -0,0 +1,53 @@
const forms = [
{
token: 'modules/mb-pfsw-kingmaker/assets/tokens/npcs/companions/kanerah.Token.webp',
avatar: 'modules/mb-pfsw-kingmaker/assets/tokens/npcs/companions/kanerah.Avatar.webp',
name: 'Kanerah',
formName: 'Kanerah Form',
formItem: null,
}, {
token: 'modules/mb-pfsw-kingmaker/assets/tokens/npcs/companions/kalikke.Token.webp',
avatar: 'modules/mb-pfsw-kingmaker/assets/tokens/npcs/companions/kalikke.Avatar.webp',
name: 'Kalikke',
formName: 'Kalikke Form',
formItem: null
}
]
const actorUUID = 'Actor.vfyKGZVNAuWnBPSU'
const EQUIPPED = CONFIG.SWADE.CONST.EQUIP_STATE.EQUIPPED
const STORED = CONFIG.SWADE.CONST.EQUIP_STATE.STORED
async function main() {
if (token.actor.uuid !== actorUUID) {
ui.notifications.error("Incorrect token selected")
return
}
let activeForm = 0
for (let idx = 0; idx < forms.length; idx++) {
const form = forms[idx]
form.formItem = token.actor.items.find(i => i.name === form.formName)
if (form.formItem.system.equipStatus === EQUIPPED) {
activeForm = idx
}
form.formItem.update({'system.equipStatus': STORED})
}
activeForm = (activeForm + 1) % forms.length
const itemMods = {'system.equipStatus': EQUIPPED}
const tokenMods = {
name: forms[activeForm].name,
'texture.src': forms[activeForm].token
}
const actorMods = {
name: forms[activeForm].name,
img: forms[activeForm].avatar,
}
await token.document.update(tokenMods)
await token.actor.update(actorMods)
await forms[activeForm].formItem.update(itemMods)
await token.actor.prototypeToken.update(tokenMods)
}
main()

View File

@ -1,7 +1,7 @@
{ {
"id": "mb-pfsw-kingmaker", "id": "mb-pfsw-kingmaker",
"title": "Pathfinder Kingmaker", "title": "Pathfinder Kingmaker",
"version": "1.0.1", "version": "1.0.3",
"compatibility": { "compatibility": {
"minimum": "11", "minimum": "11",
"verified": "11" "verified": "11"
@ -140,5 +140,5 @@
}, },
"url": "https://git.bloy.org/foundryvtt/mb-pfsw-kingmaker", "url": "https://git.bloy.org/foundryvtt/mb-pfsw-kingmaker",
"manifest": "https://git.bloy.org/foundryvtt/mb-pfsw-kingmaker/raw/branch/main/module.json", "manifest": "https://git.bloy.org/foundryvtt/mb-pfsw-kingmaker/raw/branch/main/module.json",
"download": "https://git.bloy.org/api/packages/foundryvtt/generic/mb-pfsw-kingmaker/1.0.1/mb-pfsw-kingmaker.zip" "download": "https://git.bloy.org/api/packages/foundryvtt/generic/mb-pfsw-kingmaker/1.0.3/mb-pfsw-kingmaker.zip"
} }

Binary file not shown.

View File

@ -1,5 +1,5 @@
2024/01/28-17:35:51.930685 7f9cdd7bd700 Delete type=3 #1 2024/02/27-22:09:17.570364 7f92fa7be700 Delete type=3 #1
2024/01/28-17:35:51.953535 7f9a3ffff700 Level-0 table #5: started 2024/02/27-22:09:17.595026 7f92f8fbb700 Level-0 table #5: started
2024/01/28-17:35:51.980177 7f9a3ffff700 Level-0 table #5: 1267148 bytes OK 2024/02/27-22:09:17.619538 7f92f8fbb700 Level-0 table #5: 1373868 bytes OK
2024/01/28-17:35:51.989254 7f9a3ffff700 Delete type=0 #3 2024/02/27-22:09:17.628575 7f92f8fbb700 Delete type=0 #3
2024/01/28-17:35:51.989700 7f9a3ffff700 Manual compaction at level-0 from '!adventures!AVYZezrKqXtcPw7N' @ 72057594037927935 : 1 .. '!adventures!wGybm3ZyVD37mjtC' @ 0 : 0; will stop at (end) 2024/02/27-22:09:17.629092 7f92f8fbb700 Manual compaction at level-0 from '!adventures!71Nu38ym6C2QGY3a' @ 72057594037927935 : 1 .. '!adventures!wGybm3ZyVD37mjtC' @ 0 : 0; will stop at (end)

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
2024/01/28-17:35:52.635847 7f11c9fbc700 Delete type=3 #1 2024/02/27-22:09:18.227051 7fd3b37fe700 Delete type=3 #1
2024/01/28-17:35:52.638406 7f11c97bb700 Level-0 table #5: started 2024/02/27-22:09:18.229450 7fd3b1d80700 Level-0 table #5: started
2024/01/28-17:35:52.645890 7f11c97bb700 Level-0 table #5: 9065 bytes OK 2024/02/27-22:09:18.239209 7fd3b1d80700 Level-0 table #5: 9065 bytes OK
2024/01/28-17:35:52.654989 7f11c97bb700 Delete type=0 #3 2024/02/27-22:09:18.249157 7fd3b1d80700 Delete type=0 #3
2024/01/28-17:35:52.655094 7f11c97bb700 Manual compaction at level-0 from '!items!7hcnBcliZS3fdugQ' @ 72057594037927935 : 1 .. '!items.effects!SQSAZ101VjE9HXKB.zzfvcSywLEBcfaWY' @ 0 : 0; will stop at (end) 2024/02/27-22:09:18.249251 7fd3b1d80700 Manual compaction at level-0 from '!items!7hcnBcliZS3fdugQ' @ 72057594037927935 : 1 .. '!items.effects!SQSAZ101VjE9HXKB.zzfvcSywLEBcfaWY' @ 0 : 0; will stop at (end)

View File

@ -1,5 +1,5 @@
2024/01/28-17:35:53.252665 7fa3a2fbf700 Delete type=3 #1 2024/02/27-22:09:18.842467 7fb2697bc700 Delete type=3 #1
2024/01/28-17:35:53.255256 7fa3a0d01700 Level-0 table #5: started 2024/02/27-22:09:18.844858 7fb268fbb700 Level-0 table #5: started
2024/01/28-17:35:53.263777 7fa3a0d01700 Level-0 table #5: 5487 bytes OK 2024/02/27-22:09:18.853054 7fb268fbb700 Level-0 table #5: 5487 bytes OK
2024/01/28-17:35:53.272579 7fa3a0d01700 Delete type=0 #3 2024/02/27-22:09:18.863261 7fb268fbb700 Delete type=0 #3
2024/01/28-17:35:53.272691 7fa3a0d01700 Manual compaction at level-0 from '!items!ACp5yonogPTePk6H' @ 72057594037927935 : 1 .. '!items!zhQ2l4Dh9GeFvCyH' @ 0 : 0; will stop at (end) 2024/02/27-22:09:18.863370 7fb268fbb700 Manual compaction at level-0 from '!items!ACp5yonogPTePk6H' @ 72057594037927935 : 1 .. '!items!zhQ2l4Dh9GeFvCyH' @ 0 : 0; will stop at (end)