Cleaned up the ritual UI some more and solved a few more bugs, then brought in a quick 'dubious combination' image.

This commit is contained in:
Zed A. Shaw 2025-05-02 11:39:39 -04:00
parent bac552c3d7
commit edf10c976a
8 changed files with 36 additions and 32 deletions

View file

@ -232,8 +232,7 @@ void System::combat(GameLevel &level, int attack_id) {
auto player = world.get_the<Player>();
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));
if(!the_belt.has(attack_id)) return;
auto& ritual = the_belt.get(attack_id);
const auto& player_position = world.get<Position>(player.entity);