Skip to content

Commit

Permalink
refactor: use strings.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
andretchen0 committed Aug 11, 2023
1 parent 5144776 commit 65b99a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { isTeam, Team } from './utility/team';
import * as arrayUtils from './utility/arrayUtils';
import Game from './game';
import { ScoreEvent } from './player';
import { strings } from './data/strings';

/*
* NOTE
Expand Down Expand Up @@ -678,7 +679,7 @@ export class Ability {
return true;
}

this.message = this.game.msg.abilities.noTarget;
this.message = strings.abilities.noTarget;
return false;
}

Expand Down Expand Up @@ -717,7 +718,7 @@ export class Ability {
},
},
req = $j.extend(def, this.requirements),
abilityMsgs = game.msg.abilities;
abilityMsgs = strings.abilities;

// Plasma
if (req.plasma > 0) {
Expand Down Expand Up @@ -909,7 +910,7 @@ export class Ability {
}
}

this.message = this.game.msg.abilities.noTarget;
this.message = strings.abilities.noTarget;
return false;
}

Expand Down

0 comments on commit 65b99a6

Please sign in to comment.