Rituals can now be configured to have a kind and an element based on the results.

This commit is contained in:
Zed A. Shaw 2025-04-24 02:03:18 -04:00
parent a342c53b02
commit 5d924c764f
3 changed files with 27 additions and 4 deletions

View file

@ -26,13 +26,18 @@ namespace combat {
};
enum class RitualElement {
FIRE, LIGHTNING, PHYSICAL
NONE=0, FIRE=1, LIGHTNING=2
};
enum class RitualKind {
NONE=0, PHYSICAL=1, MAGICK=2
};
struct RitualAction {
float probability = 1.0f;
int damage = 0;
RitualElement element{RitualElement::FIRE};
RitualKind kind{RitualKind::NONE};
RitualElement element{RitualElement::NONE};
};
struct RitualEngine {