The attack is now fully configurable in attacks.json and the name for each attack is generated from the ritual crafting.

This commit is contained in:
Zed A. Shaw 2026-08-13 13:51:38 -04:00
parent adcfbb883e
commit 09b61f17a7
11 changed files with 77 additions and 45 deletions

View file

@ -1,6 +1,7 @@
#include "game/rituals.hpp"
#include "ai/ai_debug.hpp"
#include "ai/ai.hpp"
#include <magic_enum/magic_enum.hpp>
namespace ritual {
Engine::Engine(std::string config_path) :
@ -129,6 +130,12 @@ namespace ritual {
fmt::println("\n");
}
std::string Action::name() {
return fmt::format("{}_{}",
magic_enum::enum_name(kind),
magic_enum::enum_name(element));
}
Action& Belt::get(int index) {
return equipped.at(index);
}