Enemies now actually adopt their color and all items too.

This commit is contained in:
Zed A. Shaw 2025-01-28 14:04:01 -05:00
parent 59a6882b70
commit 7c56f350ab
4 changed files with 29 additions and 15 deletions

View file

@ -13,7 +13,14 @@ namespace components {
} else if(comp_type == "Loot") {
world.set<Loot>(entity, {config["amount"]});
} else if(comp_type == "Tile") {
world.set<Tile>(entity, {config["chr"]});
world.set<Tile>(entity, {
config["chr"],
entity_data["foreground"][0],
entity_data["foreground"][1],
entity_data["foreground"][2],
entity_data["background"][0],
entity_data["background"][1],
entity_data["background"][2]});
} else if(comp_type == "EnemyConfig") {
world.set<EnemyConfig>(entity, {config["hearing_distance"]});
} else if(comp_type == "Combat") {