From 2d76de5e1cb34596cbe23731352fab1a3d09dfa8 Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Sat, 15 May 2021 23:35:50 -0400 Subject: add xp given on message (25-75 is prop incorrect but idc) --- src/lib/models/Level.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/models/Level.ts') 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 { } return xp; } + static genRandomizedXp(): number { + return Math.floor(Math.random() * (75 - 25 + 1)) + 35; + } } -- cgit