BREAKING: First idea for the combat system but there's a bug in goap where I'm not removing closed parts or something like that.

This commit is contained in:
Zed A. Shaw 2025-03-15 22:30:10 -04:00
parent 75db188dc6
commit 63f032ff12
8 changed files with 130 additions and 4 deletions

2
ai.cpp
View file

@ -18,7 +18,7 @@ namespace ai {
Action config_action(AIProfile& profile, nlohmann::json& config) {
check(config.contains("name"), "config_action: action config missing name");
check(config.contains("cost"), "config_action: action config missing cost");
check(config["cost"] < STATE_MAX, "config_action: action cost is greater than STATE_MAX");
// check(config["cost"] < STATE_MAX, "config_action: action cost is greater than STATE_MAX");
Action result(config["name"], config["cost"]);