Prep for the actually making ritual crafting work.

This commit is contained in:
Zed A. Shaw 2025-04-26 02:21:59 -04:00
parent ad1d08ca96
commit 292711f91f
10 changed files with 56 additions and 74 deletions

View file

@ -22,32 +22,6 @@ LevelScaling LevelManager::scale_level() {
};
}
void LevelManager::temp_create_player_rituals() {
auto& level = current();
auto player = level.player;
auto& the_belt = level.world->get<combat::RitualBelt>(player);
Config config("assets/config.json");
combat::RitualEngine re("assets/rituals.json");
int slot = 0;
for(auto& settings : config["test_rituals"]) {
if(settings["active"]) {
auto blanket = re.start();
settings.erase("active");
for(auto& el : settings.items()) {
re.set_state(blanket, el.key(), el.value());
}
re.plan(blanket);
auto ritual = re.finalize(blanket);
the_belt.equip(slot, ritual);
slot++;
}
}
}
inline shared_ptr<DinkyECS::World> clone_load_world(shared_ptr<DinkyECS::World> prev_world)
{