Add session save data

This commit is contained in:
Flashfyre committed 2023-04-28 15:03:42 -04:00
1 parent fcd711673d
commit a2ecb4089d
12 files changed
+541 -105

No files matched your search

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