Skip to content

Commit

Permalink
Make equipment common to NPCs and PCs
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphie132 committed Jan 19, 2024
1 parent 5fdb078 commit dc0c21f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/typescript/data/actor/character/properties.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CONSTANTS, SpecialNames, TYPES } from "../../../constants.js";
import { CompositeNumber } from "../../common.js";
import BackgroundProperties from "./background/properties.js";
import EquipmentProperties from "./equipment/properties.js";
import EquipmentProperties from "../common/equipment/properties.js";
import LevelingProperties from "./leveling/properties.js";
import MagicProperties from "../common/magic/properties.js";
import SkillsProperties from "./skills/properties.js";
Expand Down
4 changes: 3 additions & 1 deletion src/main/typescript/data/actor/character/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import type { TYPES } from "../../../constants.js";
import BackgroundSource, {
BACKGROUND_JSON_SCHEMA
} from "./background/source.js";
import EquipmentSource, { EQUIPMENT_JSON_SCHEMA } from "./equipment/source.js";
import EquipmentSource, {
EQUIPMENT_JSON_SCHEMA
} from "../common/equipment/source.js";
import LevelingSource, { LEVELING_JSON_SCHEMA } from "./leveling/source.js";
import MagicSource, { MAGIC_JSON_SCHEMA } from "../common/magic/source.js";
import VitalsSource, { VITALS_JSON_SCHEMA } from "../common/vitals/source.js";
Expand Down
4 changes: 4 additions & 0 deletions src/main/typescript/data/actor/npc/source.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { TYPES } from "../../../constants.js";
import EquipmentSource from "../common/equipment/source.js";
import MagicSource from "../common/magic/source.js";
import SpecialsSource from "../common/specials/source.js";
import VitalsSource from "../common/vitals/source.js";
Expand All @@ -9,6 +10,9 @@ export default interface NpcDataSource {
}

export class NpcDataSourceData {
/** The equipment of the character */
equipment = new EquipmentSource();

/** The vitals of the NPC */
vitals = new VitalsSource();

Expand Down

0 comments on commit dc0c21f

Please sign in to comment.