2024-03-22 08:10:22 +01:00
|
|
|
import {ScriptAccount} from "../../../../src/app/project/game-model/scriptAccounts/ScriptAccount";
|
|
|
|
import {ScriptAccountCondition} from "../../../../src/app/project/game-model/gamesystems/conditions/ScriptAccountCondition";
|
2024-02-17 18:37:40 +01:00
|
|
|
|
|
|
|
export class ConditionTrainer {
|
|
|
|
static withSimpleCondition(): ScriptAccountCondition {
|
|
|
|
const scriptAccount = new ScriptAccount("Test", "");
|
|
|
|
return ScriptAccountCondition.constructScriptAccountCondition(scriptAccount, 0, 10);
|
|
|
|
}
|
|
|
|
|
2024-02-17 18:49:24 +01:00
|
|
|
static withContradictingCondition(condition: ScriptAccountCondition): ScriptAccountCondition {
|
|
|
|
return ScriptAccountCondition.constructScriptAccountCondition(condition.scriptAccount, condition.minValue-20, condition.minValue-10);
|
2024-02-17 18:37:40 +01:00
|
|
|
}
|
2024-02-17 19:06:38 +01:00
|
|
|
|
|
|
|
static withExpendingCondition(condition: ScriptAccountCondition): ScriptAccount {
|
|
|
|
return ScriptAccountCondition.constructScriptAccountCondition(condition.scriptAccount, condition.minValue-10, condition.maxValue+10);
|
|
|
|
}
|
2024-02-17 18:37:40 +01:00
|
|
|
}
|