The safest way to extend Core RPG is to add new definitions, handlers, and skill actions rather than editing core systems directly.
Extension patterns
| Goal | Recommended path |
|---|---|
| New item | Create a new item ScriptableObject or subclass an existing item definition. |
| New enemy | Duplicate an NPC prefab, create a new NpcCombatDefinition, assign loot and behavior. |
| New resource | Create a world object, add a context provider, and implement or reuse an action handler. |
| New skill | Add/activate a SkillType, implement IPlayerSkillAction, and expose it through item use or interaction. |
| New UI panel | Listen to inventory, equipment, health, combat, or skill events instead of polling everything manually. |
Best practice
- Keep content in ScriptableObjects.
- Keep behavior in handlers/actions.
- Let the interaction system expose choices.
- Let the skill action controller own long running player actions.
- Use events from inventory, equipment, health, combat, and skills to refresh UI.