Skip to content

Commit

Permalink
move ammunition to data model
Browse files Browse the repository at this point in the history
  • Loading branch information
Stexinator committed Aug 4, 2024
1 parent 7965f18 commit 4a0cb38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
4 changes: 3 additions & 1 deletion script/setup/registerDataModels.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import AmmunitionData from "../data/item/ammunitionData.js";
import WeaponData from "../data/item/weaponData.js";

export const registerDataModels = () => {
Expand All @@ -7,6 +8,7 @@ export const registerDataModels = () => {

foundry.utils.mergeObject(CONFIG.Item.dataModels, {
// The keys are the types defined in our template.json
weapon: WeaponData
weapon: WeaponData,
ammunition: AmmunitionData
});
};
19 changes: 1 addition & 18 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1218,24 +1218,7 @@
"source": ""
}
},
"ammunition": {
"templates": [
"equipment"
],
"quantity": 0,
"effect": {
"damage": {
"modifier": 0,
"type": "impact"
},
"special": "",
"penetration": "",
"attack": {
"modifier": 0
}
},
"weapon": ""
},
"ammunition": {},
"armour": {
"templates": [
"equipment"
Expand Down

0 comments on commit 4a0cb38

Please sign in to comment.