From 0ace8d9805ad0dd8c2a116bec5a7e07a46f40cfb Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 5 Oct 2019 17:06:48 +0200 Subject: [PATCH] fixed wrong display of prize Orb spawn rates --- help.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/help.cpp b/help.cpp index a4f2bae9..60c275af 100644 --- a/help.cpp +++ b/help.cpp @@ -253,9 +253,12 @@ void describeOrb(string& help, const orbinfo& oi) { int t = items[tr] * landMultiplier(oi.l); if(t >= 25) if(olr == olrPrize25 || olr == olrPrize3 || olr == olrGuest || olr == olrMonster || olr == olrAlways) { - help += XLAT("\nSpawn rate (as prize Orb): %1%/%2\n", - its(int(.5 + 100 * orbprizefun(t))), - its(oi.gchance)); + for(auto& oi1: orbinfos) + if((oi1.flags & orbgenflags::NATIVE) && oi1.orb == oi.orb) { + help += XLAT("\nSpawn rate (as prize Orb): %1%/%2\n", + its(int(.5 + 100 * orbprizefun(t))), + its(oi1.gchance)); + } } if(t >= 10) if(olr == olrHub) {