diff options
Diffstat (limited to 'src/lib/models')
-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; + } } |