RC-117 | Ammo | Setup
This commit is contained in:
parent
de0457a111
commit
683ba9e69d
4 changed files with 27 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
"hero": "Hero"
|
"hero": "Hero"
|
||||||
},
|
},
|
||||||
"Item": {
|
"Item": {
|
||||||
|
"ammo": "Ammo",
|
||||||
"armour": "Armour",
|
"armour": "Armour",
|
||||||
"shield": "Shield",
|
"shield": "Shield",
|
||||||
"weapon": "Weapon"
|
"weapon": "Weapon"
|
||||||
|
|
|
||||||
23
module/data/Item/Ammo.mjs
Normal file
23
module/data/Item/Ammo.mjs
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { CommonItemData } from "./Common.mjs";
|
||||||
|
|
||||||
|
export class AmmoData extends CommonItemData {
|
||||||
|
// MARK: Base Data
|
||||||
|
prepareBaseData() {
|
||||||
|
super.prepareBaseData();
|
||||||
|
};
|
||||||
|
|
||||||
|
// MARK: Derived Data
|
||||||
|
prepareDerivedData() {
|
||||||
|
super.prepareDerivedData();
|
||||||
|
};
|
||||||
|
|
||||||
|
// #region Getters
|
||||||
|
// #endregion
|
||||||
|
|
||||||
|
// #region Sheet Data
|
||||||
|
getFormFields(_ctx) {
|
||||||
|
const fields = [];
|
||||||
|
return fields;
|
||||||
|
};
|
||||||
|
// #endregion
|
||||||
|
};
|
||||||
|
|
@ -5,6 +5,7 @@ import { HeroSkillsCardV1 } from "../Apps/ActorSheets/HeroSkillsCardV1.mjs";
|
||||||
import { HeroSummaryCardV1 } from "../Apps/ActorSheets/HeroSummaryCardV1.mjs";
|
import { HeroSummaryCardV1 } from "../Apps/ActorSheets/HeroSummaryCardV1.mjs";
|
||||||
|
|
||||||
// Data Models
|
// Data Models
|
||||||
|
import { AmmoData } from "../data/Item/Ammo.mjs";
|
||||||
import { HeroData } from "../data/Actor/Hero.mjs";
|
import { HeroData } from "../data/Actor/Hero.mjs";
|
||||||
import { ProtectorData } from "../data/Item/Protector.mjs";
|
import { ProtectorData } from "../data/Item/Protector.mjs";
|
||||||
import { WeaponData } from "../data/Item/Weapon.mjs";
|
import { WeaponData } from "../data/Item/Weapon.mjs";
|
||||||
|
|
@ -34,6 +35,7 @@ Hooks.once(`init`, () => {
|
||||||
|
|
||||||
// #region Datamodels
|
// #region Datamodels
|
||||||
CONFIG.Actor.dataModels.hero = HeroData;
|
CONFIG.Actor.dataModels.hero = HeroData;
|
||||||
|
CONFIG.Item.dataModels.ammo = AmmoData,
|
||||||
CONFIG.Item.dataModels.armour = ProtectorData;
|
CONFIG.Item.dataModels.armour = ProtectorData;
|
||||||
CONFIG.Item.dataModels.shield = ProtectorData;
|
CONFIG.Item.dataModels.shield = ProtectorData;
|
||||||
CONFIG.Item.dataModels.weapon = WeaponData;
|
CONFIG.Item.dataModels.weapon = WeaponData;
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@
|
||||||
"hero": {}
|
"hero": {}
|
||||||
},
|
},
|
||||||
"Item": {
|
"Item": {
|
||||||
|
"ammo": {},
|
||||||
"armour": {},
|
"armour": {},
|
||||||
"shield": {},
|
"shield": {},
|
||||||
"weapon": {}
|
"weapon": {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue