sidequest_common.leveling#
MEE6-compatible leveling curve.
Going from level n to n + 1 costs 5n^2 + 50n + 100 XP; XP is stored as a running total.
Classes#
Where a running XP total sits on the curve. |
Functions#
|
Level reached with |
|
Level reached with |
|
Total XP needed to reach |
|
XP needed to go from |
Module Contents#
- class sidequest_common.leveling.LevelProgress#
Bases:
NamedTupleWhere a running XP total sits on the curve.
- level: int#
- xp_for_next_level: int#
- xp_into_level: int#
- sidequest_common.leveling.level_for_xp(xp: int) int#
Level reached with
xptotal.
- sidequest_common.leveling.level_progress(xp: int) LevelProgress#
Level reached with
xptotal, plus progress toward the next one.
- sidequest_common.leveling.total_xp_for_level(level: int) int#
Total XP needed to reach
levelfrom zero.
- sidequest_common.leveling.xp_to_next_level(level: int) int#
XP needed to go from
leveltolevel + 1.