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:
parent
75db188dc6
commit
63f032ff12
8 changed files with 130 additions and 4 deletions
2
ai.cpp
2
ai.cpp
|
@ -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"]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue