rely on stringification instead of state reports

This commit is contained in:
2025-01-17 23:04:38 +09:00
parent 80ccb92815
commit 9345c7af04
9 changed files with 123 additions and 73 deletions
+5 -5
View File
@@ -5,7 +5,7 @@ import Team from './team.js'
export default class Template {
static minion(team, options = {}) {
return {
abilities: [options.ranged ? Ability.rangedAttack : Ability.meleeAttack, null, null, null],
abilities: [options.ranged ? Ability.rangedAttack.id : Ability.meleeAttack.id, null, null, null],
height: options.ranged ? 40 : 38,
logic: this.#minionLogic(options.route),
maxHealth: options.ranged ? 300 : 450,
@@ -20,10 +20,10 @@ export default class Template {
static player(overrides) {
return {
abilities: [
Ability.rangedAttack,
Ability.straightShot,
Ability.shieldThrow,
Ability.blink,
Ability.rangedAttack.id,
Ability.straightShot.id,
Ability.shieldThrow.id,
Ability.blink.id,
],
height: 80,
logic: this.#playerLogic,