Overhaul random logic and implement battle seed

This commit is contained in:
Flashfyre committed 2024-01-02 21:31:59 -05:00
1 parent 6558de01c4
commit e05bf78481
9 files changed
+121 -96

No files matched your search

+2 -6
View File
@@ -16,14 +16,10 @@ export class Status {
public turnCount: integer;
public cureTurn: integer;
constructor(effect: StatusEffect, turnCount?: integer, cureTurn?: integer) {
constructor(effect: StatusEffect, turnCount: integer = 0, cureTurn?: integer) {
this.effect = effect;
this.turnCount = turnCount === undefined ? 0 : turnCount;
if (cureTurn === undefined) {
if (effect === StatusEffect.SLEEP)
this.cureTurn = Utils.randInt(3, 2);
} else
this.cureTurn = cureTurn;
this.cureTurn = cureTurn;
}
incrementTurn(): void {