Right before coverage destroys everything.

This commit is contained in:
Zed A. Shaw 2025-03-16 23:17:43 -04:00
parent 1d2968f826
commit c4611c0138
9 changed files with 54 additions and 46 deletions

View file

@ -49,7 +49,7 @@ namespace components {
bool tough = true;
};
struct EnemyAI {
struct EnemyConfig {
std::string ai_script;
std::string ai_start_name;
std::string ai_goal_name;
@ -146,7 +146,7 @@ namespace components {
ENROLL_COMPONENT(Weapon, damage);
ENROLL_COMPONENT(Loot, amount);
ENROLL_COMPONENT(Position, location.x, location.y);
ENROLL_COMPONENT(EnemyAI, ai_script, ai_start_name, ai_goal_name);
ENROLL_COMPONENT(EnemyConfig, ai_script, ai_start_name, ai_goal_name);
ENROLL_COMPONENT(Personality, hearing_distance, tough);
ENROLL_COMPONENT(Motion, dx, dy, random);
ENROLL_COMPONENT(Combat, hp, max_hp, damage, dead);