PlayerCommandModule.ProgressionCommandModule
A static class in TavernLib, TavernLib.ModulePorts.
The player progression submodule: list paths, give and check experience, clear progress, and show and buy skills. Its commands are private.
- Listed in TavernLib.ModulePorts
- Nested in
PlayerCommandModule - Nested types
PathXp,SkillRow - Attributes
Module
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private static Dictionary<int, ProgressionSlot> available | The skills the last showskills listed, by row index, for buyskill. |
private static Player lastPlayer | The player the last showskills was run for. |
private static Logger logger | NLog logger for the module. |
Methods
11 private and internal methods
| Member | What it is |
|---|---|
private static async Task<string> AddOfflineLevels(UserInfoAccess userInfo, ProgressionPath path, int levels) | player progression offlinelevels: gives levels on a path to a player even when they are offline. |
private static string BuySkill(int slotIndex, bool isConsumingExperience = true) | player progression buyskill: buys a skill from the last showskills list for that player. |
private static Lines<PlayerCommandModule.ProgressionCommandModule.PathXp> CheckAllXP(PlayerList players) | player progression checkallxp: server only, lists each path's level, experience and next level threshold for the players. |
private static void ClearAll(PlayerList players) | player progression clearall: clears players' progress on every path. |
private static void ClearPath(Player player, ProgressionPath path) | player progression clearpath: clears a player's progress on one path. |
private static void GainPathLevel(PlayerList players, ProgressionPath path) | player progression pathlevelup: server only, gives players the experience for one more level on a path. |
private static void GainPathXp(PlayerList players, ProgressionPath path, int xp) | player progression pathxp: server only, gives players experience on one path. |
private static void GainXp(PlayerList players, int xp) | player progression allxp: server only, gives players experience on every path. |
private static Lines<string> List() | player progression list: server only, lists the profession path names. |
private static void PrintOfflineLevels() | player progression printofflinelevels: logs the offline level changes waiting to be applied. |
private static Lines<PlayerCommandModule.ProgressionCommandModule.SkillRow> ShowAvailableSkills(Player player) | player progression showskills: lists the skills a player can buy and remembers them for buyskill. |