Fixed player showing up as an enemy and did better map centering.

This commit is contained in:
Zed A. Shaw 2025-02-11 11:10:18 -05:00
parent e2bd61a1e4
commit 421cca308b
5 changed files with 13 additions and 19 deletions

View file

@ -235,10 +235,6 @@ void WorldBuilder::randomize_entities(DinkyECS::World &world, GameConfig &config
int rand_entity = Random::uniform<int>(0, keys.size() - 1);
std::string key = keys[rand_entity];
// BUG: this may crash if PLAYER_TILE isn't first
if(key == "PLAYER_TITLE") {
key = keys[rand_entity + 1];
fmt::println("SKIPPING PLAYER and using {} instead", key);
}
auto entity_data = entity_db[key];
// pass that to the config as it'll be a generic json