Skip to content

Commit

Permalink
update Journal
Browse files Browse the repository at this point in the history
  • Loading branch information
Forien committed Oct 15, 2024
1 parent 78f994f commit d66df7c
Show file tree
Hide file tree
Showing 6 changed files with 442 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"id": "wfrp4e",
"type": "system",
"compatibility": {
"minimum": "8.0.0"
"minimum": "8.1.0"
}
}
],
Expand Down

Large diffs are not rendered by default.

374 changes: 374 additions & 0 deletions src/packs/old_forien-armoury/Explorer_s_Backpack_y0CcormLkmRQiJ3L.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,374 @@
{
"name": "Explorer's Backpack",
"type": "container",
"_id": "y0CcormLkmRQiJ3L",
"img": "icons/containers/bags/pack-leather-tan.webp",
"system": {
"description": {
"type": "String",
"label": "Description",
"value": "<p>Bigger, more sturdy backpack with dedicated space to hold sleeping back and hook to attach a lantern.</p><ul><li><p>A single bedroll and a single lantern placed in this backpack will have their Encumbrance reduced to 0</p></li><li><p>While not fully waterproof, it does a lot better job protecting contents from environmental hazard such as fire, water, dust etc.</p><ul><li><p>This protection does not extend to the attached bedroll and lantern.</p></li></ul></li></ul>"
},
"gmdescription": {
"type": "String",
"label": "Description",
"value": ""
},
"quantity": {
"type": "Number",
"label": "Quantity",
"value": 1
},
"encumbrance": {
"type": "Number",
"label": "Encumbrance",
"value": 3
},
"price": {
"type": "String",
"label": "Price",
"gc": 4,
"ss": 0,
"bp": 0
},
"availability": {
"type": "String",
"label": "Availability",
"value": "rare"
},
"location": {
"type": "Number",
"label": "Location",
"value": ""
},
"worn": {
"type": "Boolean",
"label": "Worn",
"value": false
},
"wearable": {
"type": "Boolean",
"label": "Wearable",
"value": true
},
"carries": {
"type": "Number",
"label": "Carries",
"value": 5
},
"countEnc": {
"type": "Boolean",
"label": "Count Enc",
"value": true
},
"damageToItem": {
"value": null,
"shield": null
},
"equipped": {
"value": false
}
},
"effects": [
{
"name": "Explorer's Backpack",
"img": "icons/containers/bags/pack-leather-tan.webp",
"_id": "hNrE3TE8xf940r64",
"type": "base",
"system": {
"transferData": {
"type": "document",
"originalType": "document",
"documentType": "Actor",
"avoidTest": {
"value": "none",
"opposed": false,
"prevention": true,
"reversed": false
},
"testIndependent": false,
"equipTransfer": true,
"selfOnly": false,
"prompt": false,
"area": {
"templateData": {},
"keep": false,
"aura": {
"transferred": false,
"render": true
},
"duration": "sustained"
}
},
"itemTargetData": {
"ids": [],
"allItems": false
},
"scriptData": [
{
"script": "let items = args.actor.itemTags[\"physical\"].filter(i => i.system.location.value === this.item.id);\nlet lantern = items.find(i => i.name.toLowerCase().includes(\"lantern\"));\nlet bedroll = items.find(i => i.name.toLowerCase().includes(\"bedroll\"));\n\nfor (const item of [lantern, bedroll]) {\n item.system.encumbrance.value = 0;\n item.system.encumbrance.total = 0;\n}",
"label": "Reduce Weight of Bedrolls and Lanterns",
"trigger": "prePrepareItems",
"options": {
"targeter": false,
"hideScript": "",
"activateScript": "",
"submissionScript": "",
"deleteEffect": false
},
"async": false
}
],
"zone": {
"type": "zone",
"traits": {},
"skipImmediateOnPlacement": false
},
"sourceData": {
"test": {}
},
"condition": {
"value": null,
"numbered": false
}
},
"changes": [],
"disabled": false,
"duration": {
"startTime": null,
"seconds": null,
"combat": null,
"rounds": null,
"turns": null,
"startRound": null,
"startTurn": null
},
"description": "",
"origin": null,
"tint": "#ffffff",
"transfer": true,
"statuses": [],
"sort": 0,
"flags": {
"wfrp4e": {
"manualEffectKeys": false,
"applicationData": {},
"scriptData": [],
"_legacyData": {}
}
},
"_stats": {
"compendiumSource": "Actor.HcwO72N6tGTIIbHQ.Item.J2R6wTNQciuKNjPH.ActiveEffect.L640blUGDOWF6dj2",
"duplicateSource": null,
"coreVersion": "12.331",
"systemId": "wfrp4e",
"systemVersion": "8.1.3",
"createdTime": null,
"modifiedTime": null,
"lastModifiedBy": null
},
"_key": "!items.effects!y0CcormLkmRQiJ3L.hNrE3TE8xf940r64"
}
],
"folder": "bCYA5k9kT55E8eEO",
"ownership": {
"default": 0,
"EhobGNCUoyo9jPH1": 3
},
"flags": {
"exportSource": {
"world": "wfrp4e",
"system": "wfrp4e",
"coreVersion": "12.331",
"systemVersion": "8.1.3"
},
"forien-audit": {
"auditLog": {
"entries": [
{
"user": {
"name": "Gamemaster",
"id": "EhobGNCUoyo9jPH1"
},
"change": {
"name": "Explorer's Backpack",
"img": "icons/containers/bags/pack-leather-tan.webp",
"system": {
"description": {
"value": "<p>Bigger, more sturdy backpack with dedicated space to hold sleeping back and hook to attach a lantern.</p><ul><li><p>A single bedroll and a single lantern placed in this backpack will have their Encumbrance reduced to 0</p></li><li><p>While not fully waterproof, it does a lot better job protecting contents from environmental hazard such as fire, water, dust etc.</p><ul><li><p>This protection does not extend to the attached bedroll and lantern.</p></li></ul></li></ul>"
},
"gmdescription": {
"value": ""
},
"quantity": {
"value": 1
},
"encumbrance": {
"value": 3
},
"price": {
"gc": 4,
"ss": 0,
"bp": 0
},
"availability": {
"value": "rare"
},
"location": {
"value": ""
},
"wearable": {
"value": true
},
"carries": {
"value": 5
},
"countEnc": {
"value": true
},
"damageToItem": {
"value": null,
"shield": null
},
"equipped": {
"value": false
}
},
"effects": [
{
"name": "Explorer's Backpack",
"img": "icons/containers/bags/pack-leather-tan.webp",
"_id": "hNrE3TE8xf940r64",
"type": "base",
"system": {
"transferData": {
"type": "document",
"originalType": "document",
"documentType": "Actor",
"avoidTest": {
"value": "none",
"opposed": false,
"prevention": true,
"reversed": false
},
"testIndependent": false,
"equipTransfer": true,
"selfOnly": false,
"prompt": false,
"area": {
"templateData": {},
"keep": false,
"aura": {
"transferred": false,
"render": true
},
"duration": "sustained"
}
},
"itemTargetData": {
"ids": [],
"allItems": false
},
"scriptData": [
{
"script": "let items = args.actor.itemTags[\"physical\"].filter(i => i.system.location.value === this.item.id);\nlet lantern = items.find(i => i.name.toLowerCase().includes(\"lantern\"));\nlet bedroll = items.find(i => i.name.toLowerCase().includes(\"bedroll\"));\n\nfor (const item of [lantern, bedroll]) {\n item.system.encumbrance.value = 0;\n item.system.encumbrance.total = 0;\n}",
"label": "Reduce Weight of Bedrolls and Lanterns",
"trigger": "prePrepareItems",
"options": {
"targeter": false,
"hideScript": "",
"activateScript": "",
"submissionScript": "",
"deleteEffect": false
},
"async": false
}
],
"zone": {
"type": "zone",
"traits": {},
"skipImmediateOnPlacement": false
},
"sourceData": {
"test": {}
},
"condition": {
"value": null,
"numbered": false
}
},
"changes": [],
"disabled": false,
"duration": {
"startTime": null,
"seconds": null,
"combat": null,
"rounds": null,
"turns": null,
"startRound": null,
"startTurn": null
},
"description": "",
"origin": null,
"tint": "#ffffff",
"transfer": true,
"statuses": [],
"sort": 0,
"flags": {
"wfrp4e": {
"manualEffectKeys": false,
"applicationData": {},
"scriptData": [],
"_legacyData": {}
}
},
"_stats": {
"compendiumSource": "Actor.HcwO72N6tGTIIbHQ.Item.J2R6wTNQciuKNjPH.ActiveEffect.L640blUGDOWF6dj2",
"duplicateSource": null,
"coreVersion": "12.331",
"systemId": "wfrp4e",
"systemVersion": "8.1.3",
"createdTime": null,
"modifiedTime": null,
"lastModifiedBy": null
}
}
],
"flags": {
"exportSource": {
"world": "wfrp4e",
"system": "wfrp4e",
"coreVersion": "12.331",
"systemVersion": "8.1.3"
}
},
"ownership": {
"default": 0,
"EhobGNCUoyo9jPH1": 3
}
},
"timestamp": {
"realTime": 1729022005156,
"gameTime": 86814720127
},
"illegal": {
"value": false
}
}
]
}
}
},
"_stats": {
"compendiumSource": null,
"duplicateSource": null,
"coreVersion": "12.331",
"systemId": "wfrp4e",
"systemVersion": "8.1.3",
"createdTime": 1729022030909,
"modifiedTime": 1729022030909,
"lastModifiedBy": "EhobGNCUoyo9jPH1"
},
"sort": 0,
"_key": "!items!y0CcormLkmRQiJ3L"
}
Loading

0 comments on commit d66df7c

Please sign in to comment.