diff options
author | TymanWasTaken <tyman@tyman.tech> | 2021-05-15 23:35:50 -0400 |
---|---|---|
committer | TymanWasTaken <tyman@tyman.tech> | 2021-05-15 23:35:50 -0400 |
commit | 2d76de5e1cb34596cbe23731352fab1a3d09dfa8 (patch) | |
tree | c1cccac6c1bcfefb4abd414854736417076c2aa6 /src/lib | |
parent | 8d6ebd83b16a465b11edfeb43f6a5e58da0076e8 (diff) | |
download | tanzanite-2d76de5e1cb34596cbe23731352fab1a3d09dfa8.tar.gz tanzanite-2d76de5e1cb34596cbe23731352fab1a3d09dfa8.tar.bz2 tanzanite-2d76de5e1cb34596cbe23731352fab1a3d09dfa8.zip |
add xp given on message (25-75 is prop incorrect but idc)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/models/Level.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/models/Level.ts b/src/lib/models/Level.ts index 34c53e5..0d951a1 100644 --- a/src/lib/models/Level.ts +++ b/src/lib/models/Level.ts @@ -39,4 +39,7 @@ export class Level extends BaseModel<LevelModel, LevelModelCreationAttributes> { } return xp; } + static genRandomizedXp(): number { + return Math.floor(Math.random() * (75 - 25 + 1)) + 35; + } } |