The player now has some starting items to craft a first weapon, and it is craftable in the UI.

This commit is contained in:
Zed A. Shaw 2025-04-26 13:18:43 -04:00
parent c8a8d2b1af
commit bc557652ba
11 changed files with 199 additions and 155 deletions

View file

@ -208,7 +208,7 @@ void System::combat(GameLevel &level, int attack_id) {
auto &collider = *level.collision;
auto &world = *level.world;
auto player = world.get_the<Player>();
auto& the_belt = world.get<combat::RitualBelt>(player.entity);
auto& the_belt = world.get_the<ritual::Belt>();
dbc::check(the_belt.has(attack_id),
fmt::format("the_belt does not have an attack with id={}", attack_id));
@ -243,7 +243,7 @@ void System::combat(GameLevel &level, int attack_id) {
};
if(result.player_did > 0) {
using enum combat::RitualElement;
using enum ritual::Element;
if(ritual.element == FIRE || ritual.element == LIGHTNING) {
auto effect = shaders::get(