ConceptCreator/e2e/game-model/gamesystems/conditions/ConditionTrainer.ts
Sebastian Böckelmann d667a66b79
All checks were successful
E2E Testing / test (push) Successful in 1m32s
Expand Conditions
2024-02-17 18:49:24 +01:00

14 lines
690 B
TypeScript

import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount";
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition";
export class ConditionTrainer {
static withSimpleCondition(): ScriptAccountCondition {
const scriptAccount = new ScriptAccount("Test", "");
return ScriptAccountCondition.constructScriptAccountCondition(scriptAccount, 0, 10);
}
static withContradictingCondition(condition: ScriptAccountCondition): ScriptAccountCondition {
return ScriptAccountCondition.constructScriptAccountCondition(condition.scriptAccount, condition.minValue-20, condition.minValue-10);
}
}