add special creature ability as item type

This commit is contained in:
Johannes Loher 2021-01-11 00:55:49 +01:00
parent 85defa7e44
commit c422635d66
12 changed files with 121 additions and 24 deletions

View file

@ -1,21 +1,10 @@
import { ModifiableData, ResourceData, UsableResource } from "../common/common-data";
import { DS4 } from "../config";
export type ActorType = keyof typeof DS4.actorTypes;
export type DS4ActorDataType = DS4ActorDataCharacter | DS4ActorDataCreature;
export interface ModifiableData<T> {
base: T;
mod: T;
total?: T;
}
interface ResourceData<T> extends ModifiableData<T> {
value: T;
max?: T;
}
interface UsableResource<T> {
total: T;
used: T;
}
interface DS4ActorDataBase {
attributes: DS4ActorDataAttributes;
traits: DS4ActorDataTraits;