Test rituals are now configurable in assets/config.json
This commit is contained in:
parent
ebb69dd589
commit
30997cbff5
4 changed files with 33 additions and 19 deletions
10
systems.cpp
10
systems.cpp
|
@ -243,9 +243,13 @@ void System::combat(GameLevel &level, int attack_id) {
|
|||
};
|
||||
|
||||
if(result.player_did > 0) {
|
||||
auto effect = shaders::get(
|
||||
ritual.kind == combat::RitualKind::PHYSICAL ? "flame" : "lightning");
|
||||
world.set<SpriteEffect>(enemy.entity, {100, effect});
|
||||
using enum combat::RitualElement;
|
||||
|
||||
if(ritual.element == FIRE || ritual.element == LIGHTNING) {
|
||||
auto effect = shaders::get(
|
||||
ritual.element == FIRE ? "flame" : "lightning");
|
||||
world.set<SpriteEffect>(enemy.entity, {100, effect});
|
||||
}
|
||||
}
|
||||
|
||||
if(enemy_action == combat::BattleAction::ATTACK) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue