diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-19 13:18:54 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-19 13:18:54 +0200 |
commit | 218da95a4b387ee5ac25f168d1529419039f2e54 (patch) | |
tree | 21375d6aae287da413cbfc1002c2c8eeb7bba1ed /resources/js/classes/State.js | |
parent | 91d048ef0f994446aaee91e3afcbd99788e439d7 (diff) |
refactor: enemy -> opponent, State.monsters~ -> State.Trainer.monsters
Diffstat (limited to 'resources/js/classes/State.js')
-rw-r--r-- | resources/js/classes/State.js | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/resources/js/classes/State.js b/resources/js/classes/State.js index c0065d1..99a642c 100644 --- a/resources/js/classes/State.js +++ b/resources/js/classes/State.js @@ -2,37 +2,30 @@ class State { /** * @type {number} */ - money = 0; + turn = 0; /** - * @type {Monster[]} + * @type {number} */ - monsters = []; + money = 0; /** - * @type {InventoryItem[]} + * @type {Monster[]} */ - inventory = []; + monsters = []; /** - * @type {Monster[]} + * @type {Trainer} */ - partyMonsters = []; + player = null; /** - * @type {Monster} + * @type {Trainer} */ - activeMonster = null; + opponent = null; /** * @type {Technique} */ activeTechnique = null; - - enemy = { - /** - * @type {Monster} - */ - monster: null, - }; }; |