Grave stones are not lootable and give 10 gold. No idea what gold even does. I mean, why _are_ there traders in a dungeon?
This commit is contained in:
parent
3b9525cca4
commit
baa4d8ee2b
3 changed files with 18 additions and 16 deletions
|
@ -132,8 +132,11 @@ void System::death(GameLevel &level, components::ComponentMap& components) {
|
|||
world.remove<Combat>(ent);
|
||||
world.remove<EnemyConfig>(ent);
|
||||
|
||||
auto entity_data = config.devices["GRAVE_STONE"];
|
||||
auto entity_data = config.items["GRAVE_STONE"];
|
||||
components::configure_entity(components, world, ent, entity_data["components"]);
|
||||
if(entity_data["inventory_count"] > 0) {
|
||||
world.set<InventoryItem>(ent, {entity_data["inventory_count"], entity_data});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue