Skip to content

Commit

Permalink
Change string format (#27)
Browse files Browse the repository at this point in the history
Modified string format to fix error.
  • Loading branch information
PaoloBenigni authored Oct 3, 2024
1 parent 7e0a09d commit 67a1fbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/random_enchants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ void rollPossibleEnchant(Player* player, Item* item)


if (slotRand[2] != -1)
chathandle.PSendSysMessage("Newly Acquired |cffFF0000 %s |rhas received|cffFF0000 3 |rrandom enchantments!", name);
chathandle.PSendSysMessage("Newly Acquired |cffFF0000 {} |rhas received|cffFF0000 3 |rrandom enchantments!", name);
else if (slotRand[1] != -1)
chathandle.PSendSysMessage("Newly Acquired |cffFF0000 %s |rhas received|cffFF0000 2 |rrandom enchantments!", name);
chathandle.PSendSysMessage("Newly Acquired |cffFF0000 {} |rhas received|cffFF0000 2 |rrandom enchantments!", name);
else if (slotRand[0] != -1)
chathandle.PSendSysMessage("Newly Acquired |cffFF0000 %s |rhas received|cffFF0000 1 |rrandom enchantment!", name);
chathandle.PSendSysMessage("Newly Acquired |cffFF0000 {} |rhas received|cffFF0000 1 |rrandom enchantment!", name);
}

uint32 getRandEnchantment(Item* item)
Expand Down

0 comments on commit 67a1fbb

Please sign in to comment.