Core RPG includes an OSRS style skill list, XP table, XP multipliers, level requirements, and action based skill execution.
Included skill enum
SkillType includes Attack, Strength, Defence, Hitpoints, Ranged, Magic, Prayer, Slayer, Fishing, Cooking, Woodcutting, Mining, Firemaking, Smithing, Crafting, Herblore, Agility, Thieving, Fletching, Runecrafting, Hunter, Construction, and Farming.
Runtime skill owner
UnitSkills stores and updates the unit's XP and level data. UI elements such as SkillsPanelUI and SkillSlotUI listen for skill changes and redraw the skills panel.
Action controller
PlayerSkillActionController runs one active IPlayerSkillAction at a time, ticks it from TickManager, cancels the previous action when a new one starts, and starts or stops interaction animations.
Adding a new skill action
- Create a class that implements
IPlayerSkillAction. - Implement
CanStart,Start,Tick,Cancel, and completion state. - Grant XP through
UnitSkillswhen the action succeeds. - Expose the action through a world object handler, item use combination, or context action.
- Use
InteractionAnimationClassif the action should play a one shot or looping animation.