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

@ -84,9 +84,13 @@ namespace combat {
auto& effect = effects[action.name];
result.damage += int(effect["damage"]);
result.probability += float(effect["probability"]);
result.kind = RitualKind(int(effect["kind"]));
result.element = RitualElement(int(effect["element"]));
fmt::println("ritual has action {} with damage {}, prob: {}",
action.name, result.damage, result.probability);
fmt::println("ritual has action {} with damage {}, prob: {}, kind: {}, element: {}",
action.name, result.damage,
result.probability, int(result.kind),
int(result.element));
}
}