Actions are the individual activities players can perform within a skill.
The interface below is a conceptual model for reference purposes. Exact field names and data shapes may evolve with implementation.
Action Structure
#
interface Action {
id: string;
name: string;
description: string;
skillId: string;
// Requirements
requiredLevel: number;
requiredItems?: ItemRequirement[];
requiredEquipment?: EquipmentRequirement[];
// Timing
baseDuration: number; // milliseconds
// Rewards
experience: number;
rewards: ItemReward[];
// Mastery
masteryXp: number;
masteryRewards: MasteryRewards[];
// Modifiers
modifiers: ActionModifier[];
}
Action Properties
#
| Property |
Type |
Description |
id |
string |
Unique identifier for the action |
name |
string |
Display name shown to players |
description |
string |
Explains what the action does |
skillId |
string |
Reference to the parent skill |
requiredLevel |
number |
Minimum skill level to perform this action |
requiredItems |
array |
Items consumed when performing action |
requiredEquipment |
array |
Equipment that must be equipped |
baseDuration |
number |
Base time to complete action (ms) |
experience |
number |
Base XP granted on completion |
rewards |
array |
Items granted on completion |
masteryXp |
number |
XP toward action-specific mastery |
masteryRewards |
array |
Mastery bonuses |
modifiers |
array |
Active buffs affecting this action |
Example Actions
#
Mining Skill (Gathering)
#
| Action |
Level |
Duration |
XP |
Rewards |
| Mine Copper |
1 |
2.5s |
10 |
Copper Ore (1) |
| Mine Iron |
15 |
3.0s |
25 |
Iron Ore (1) |
| Mine Gold |
40 |
4.0s |
60 |
Gold Ore (1) |
| Mine Mithril |
60 |
5.0s |
100 |
Mithril Ore (1) |
Smelting Skill (Refining)
#
| Action |
Level |
Duration |
XP |
Input |
Output |
| Smelt Copper |
1 |
2.0s |
8 |
Copper Ore (1) |
Copper Bar (1) |
| Smelt Iron |
15 |
2.5s |
20 |
Iron Ore (1) |
Iron Bar (1) |
| Smelt Gold |
40 |
3.5s |
50 |
Gold Ore (1) |
Gold Bar (1) |