RitualEngine now uses the crafting results to create a description of the ritual's combat in a RitualAction struct.

This commit is contained in:
Zed A. Shaw 2025-04-24 01:15:49 -04:00
parent 43435509f6
commit a342c53b02
5 changed files with 72 additions and 8 deletions

View file

@ -25,6 +25,16 @@ namespace combat {
ai::Action pop();
};
enum class RitualElement {
FIRE, LIGHTNING, PHYSICAL
};
struct RitualAction {
float probability = 1.0f;
int damage = 0;
RitualElement element{RitualElement::FIRE};
};
struct RitualEngine {
Config $config;
ai::AIProfile $profile;
@ -40,5 +50,6 @@ namespace combat {
void reset(RitualAI& ritual);
void set_state(RitualAI& ritual, std::string name, bool setting);
void plan(RitualAI& ritual);
RitualAction finalize(RitualAI& ritual);
};
}