Modding Doc: Combat
This skill summarizes Modding_Doc/Combat at a high level and links to the full references.
Documentation References
- •Combat System Overview — Concepts, pipeline, JSON schemas, configuration
- •Combat API Reference — CombatService, DamageSpec, HealingService
Doc-Derived How-To (Adding Combat Features)
- •Define damage type extensions in
src/main/resources/Server/<YourMod>/Damage/with resistance and penetration stat IDs plus element tags. - •Define ailments in
src/main/resources/Server/<YourMod>/Combat/Ailments/for threshold-based status effects. - •For abilities or skills, build a
DamageSpecand callCombatService.applyDamage(...)using aCommandBuffer. - •For healing, use
HealingSpecwithHealingService.applyHealing(...)(bypasses combat defenses). - •Validate using
CombatConfigdebug logging and the combat log commands described in the Modding_Doc.
Notes:
- •Keep everything data-driven and namespaced; avoid hard-coded values.
- •Ensure related stats exist in the Stats system (resistance, penetration, crit, block, healing).