Rituals can now be configured to have a kind and an element based on the results.
This commit is contained in:
parent
a342c53b02
commit
5d924c764f
3 changed files with 27 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue