aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/Level.ts
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-05-15 23:35:50 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-05-15 23:35:50 -0400
commit2d76de5e1cb34596cbe23731352fab1a3d09dfa8 (patch)
treec1cccac6c1bcfefb4abd414854736417076c2aa6 /src/lib/models/Level.ts
parent8d6ebd83b16a465b11edfeb43f6a5e58da0076e8 (diff)
downloadtanzanite-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/models/Level.ts')
-rw-r--r--src/lib/models/Level.ts3
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;
+ }
}