Give a healing potion too for testing.

master
Zed A. Shaw 1 day ago
parent b6d1ae2700
commit 6576164fad
  1. 4
      worldbuilder.cpp

@ -180,6 +180,10 @@ void WorldBuilder::configure_starting_items(DinkyECS::World &world) {
auto &inventory = world.get_the<inventory::Model>(); auto &inventory = world.get_the<inventory::Model>();
inventory.add("hand_r", torch_id); inventory.add("hand_r", torch_id);
world.make_constant(torch_id); world.make_constant(torch_id);
auto healing = System::spawn_item(world, "POTION_HEALING_SMALL");
inventory.add("hand_l", healing);
world.make_constant(healing);
} }
void WorldBuilder::place_entities(DinkyECS::World &world) { void WorldBuilder::place_entities(DinkyECS::World &world) {

Loading…
Cancel
Save