Skip to content

Stat Checks #7

Description

@spuxx-dev

We probably need a new class StatCheck, which will be given to all GameObjects as an optional statChecks: StatCheck[] member. Stat checks will implement all checks (e.g. dice rolls). They could look somewhat like this:

export class StatCheck {
  declare targetName: GameObjectName;
  declare key: NumericProperty<TModifiedGameObject> | NumericProperty<TModifiedGameObject>[];
  declare operator: 'lt' | 'lte' | 'eq' | 'gt' | 'gte';
  declare nDice: number;
  declare nPips: number;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions