Skip to content

Commit

Permalink
pass enemy info to COMBAT_WIN
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Aug 11, 2024
1 parent 03d453b commit 826ee76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/combat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ dpp::task<void> continue_combat(const dpp::interaction_create_t& event, player p
.set_style(dpp::cos_primary)
.set_emoji(sprite::sword_box_green.name, sprite::sword_box_green.id)
);
co_await achievement_check("COMBAT_WIN", event, p, {});
co_await achievement_check("COMBAT_WIN", event, p, {{"enemy", {{"name", p.combatant.name}, {"stamina", p.combatant.stamina}, {"skill", p.combatant.skill}, {"armour", p.combatant.armour}, {"weapon", p.combatant.weapon}}}});
output1 << "\n\n```ansi\n";
output1 << fmt::format(fmt::runtime("\033[2;31m{0}\033[0m: \033[2;33m{1:2d}\033[0m"), tr("SKILL", event), p.skill) << "\n";
output1 << fmt::format(fmt::runtime("\033[2;31m{0}\033[0m: \033[2;33m{1:2d}\033[0m"), tr("STAMINA", event), p.stamina) << "\n";
Expand Down

0 comments on commit 826ee76

Please sign in to comment.