diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 13:18:50 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 13:18:50 +0100 |
commit | 5a675c5e6833e98b92b55396594bc0d607b98903 (patch) | |
tree | b252fafe921e7734a13d796b950e5ab817a22a1f /frontend/load_dungeon.cpp | |
parent | 671a25463419691bc6c8d11bd57d932bdea9632b (diff) |
clean up code + implement teleport consumable
Diffstat (limited to 'frontend/load_dungeon.cpp')
-rw-r--r-- | frontend/load_dungeon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/load_dungeon.cpp b/frontend/load_dungeon.cpp index 75edf16..e5a1e82 100644 --- a/frontend/load_dungeon.cpp +++ b/frontend/load_dungeon.cpp @@ -63,13 +63,13 @@ unique_ptr<Dungeon> load_dungeon(const string & filename) { Object * object = gamedata.create_object(name); location->add_visible_object(object); } - + vector<string> enemies = str_split(tag.attribute("vijand").as_string(), ";"); for (string & name : enemies) { Enemy * enemy = gamedata.create_enemy(name); location->add_enemy(enemy); } - + temp_map[tag.attribute("id").as_uint()] = { .location = location, .edges = { |