civ7-modding-tools
Version:
Mod generation tool for Civilization 7.
22 lines (17 loc) • 638 B
text/typescript
import { TObjectValues } from "../types";
import { PLUNDER } from "../constants";
import { BaseNode } from "./BaseNode";
export type TConstructiblePlunderNode = Pick<ConstructiblePlunderNode,
"constructibleType" |
"plunderType" |
"amount"
>;
export class ConstructiblePlunderNode extends BaseNode<TConstructiblePlunderNode> {
constructibleType: string | null = 'BUILDING_';
plunderType: TObjectValues<typeof PLUNDER> | null = PLUNDER.HEAL;
amount: number | null = 30;
constructor(payload: Partial<TConstructiblePlunderNode> = {}) {
super();
this.fill(payload);
}
}