add racial abilites as item type
This commit is contained in:
parent
cad0d74522
commit
149096e985
9 changed files with 118 additions and 45 deletions
|
@ -49,6 +49,7 @@ export const DS4 = {
|
|||
trinket: "DS4.ItemTypeTrinket",
|
||||
equipment: "DS4.ItemTypeEquipment",
|
||||
talent: "DS4.ItemTypeTalent",
|
||||
racialAbility: "DS4.ItemTypeRacialAbility",
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
import { ModifiableData } from "../actor/actor-data";
|
||||
|
||||
export type DS4ItemDataType = DS4Weapon | DS4Armor | DS4Shield | DS4Trinket | DS4Equipment | DS4Talent;
|
||||
export type DS4ItemDataType =
|
||||
| DS4Weapon
|
||||
| DS4Armor
|
||||
| DS4Shield
|
||||
| DS4Trinket
|
||||
| DS4Equipment
|
||||
| DS4Talent
|
||||
| DS4RacialAbility;
|
||||
|
||||
// types
|
||||
|
||||
|
@ -26,6 +33,7 @@ interface DS4TalentRank extends ModifiableData<number> {
|
|||
interface DS4Shield extends DS4ItemBase, DS4ItemPhysical, DS4ItemEquipable, DS4ItemProtective {}
|
||||
interface DS4Trinket extends DS4ItemBase, DS4ItemPhysical, DS4ItemEquipable {}
|
||||
interface DS4Equipment extends DS4ItemBase, DS4ItemPhysical {}
|
||||
type DS4RacialAbility = DS4ItemBase;
|
||||
|
||||
// templates
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue