Quick start to making it possible to use healing items, or any item really. Going with a style that it has to be on your toolbar to use it, and the toolbelt looks in your inventory to see ifyou have healing items.
This commit is contained in:
parent
b9656013b0
commit
0d889cd0ff
4 changed files with 22 additions and 3 deletions
|
@ -184,7 +184,7 @@ void WorldBuilder::configure_starting_items(DinkyECS::World &world) {
|
|||
world.make_constant(torch_id);
|
||||
|
||||
auto healing = System::spawn_item(world, "POTION_HEALING_SMALL");
|
||||
inventory.add("hand_l", healing);
|
||||
inventory.add("pocket_l", healing);
|
||||
world.make_constant(healing);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue