Rituals are now being added a belt on the player in a temp function in LevelManager.
This commit is contained in:
parent
a70f11646a
commit
00c28f47eb
8 changed files with 103 additions and 44 deletions
11
rituals.cpp
11
rituals.cpp
|
@ -46,6 +46,10 @@ namespace combat {
|
|||
}
|
||||
|
||||
void RitualEngine::set_state(RitualAI& ritual, std::string name, bool setting) {
|
||||
dbc::check($profile.contains(name),
|
||||
fmt::format("ritual action named {} is not in profile, look in {} config",
|
||||
name, $config.$src_path));
|
||||
|
||||
ritual.start.set($profile.at(name), setting);
|
||||
}
|
||||
|
||||
|
@ -69,10 +73,17 @@ namespace combat {
|
|||
return result;
|
||||
}
|
||||
|
||||
// BUG: maybe this should be called RitualBlanket instead?
|
||||
void RitualAI::dump() {
|
||||
ai::dump_script(script, start, plan.script);
|
||||
}
|
||||
|
||||
bool RitualAI::is_combined() {
|
||||
dbc::check(!plan.script.empty(), "you are attempting to check an empty plan");
|
||||
auto& last = plan.script.back();
|
||||
return plan.script.size() > 1 && last.name == "combined";
|
||||
}
|
||||
|
||||
RitualAction RitualEngine::finalize(RitualAI& ritual) {
|
||||
(void)ritual;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue