Add the derived data for the aura ranges
This commit is contained in:
parent
89b51a01e6
commit
4f35db01b6
5 changed files with 54 additions and 3 deletions
6
module/utils/rank.mjs
Normal file
6
module/utils/rank.mjs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { gameTerms } from "../gameTerms.mjs";
|
||||
|
||||
export function rankToInteger(rankName) {
|
||||
return Object.values(gameTerms.Rank)
|
||||
.findIndex(r => r === rankName) + 1;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue