1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

fixed the description of treasures which unlock secondary orbs -- other treasure name given correctly

This commit is contained in:
Zeno Rogue 2018-08-21 18:24:39 +02:00
parent 1b50cd6be5
commit c65b4f254d

View File

@ -196,6 +196,11 @@ void describeOrb(string& help, const orbinfo& oi) {
eOrbLandRelation olr = getOLR(oi.orb, getPrizeLand()); eOrbLandRelation olr = getOLR(oi.orb, getPrizeLand());
eItem tr = treasureType(oi.l); eItem tr = treasureType(oi.l);
eItem tt = treasureTypeUnlock(cwt.at->land, oi.orb); eItem tt = treasureTypeUnlock(cwt.at->land, oi.orb);
if(olr == olrGuest) {
for(auto& oi1: orbinfos)
if((oi1.flags & orbgenflags::NATIVE) && oi1.orb == oi.orb)
tr = treasureType(oi1.l);
}
help += "\n\n" + XLAT(olrDescriptions[olr], cwt.at->land, tr, tt); help += "\n\n" + XLAT(olrDescriptions[olr], cwt.at->land, tr, tt);
int t = items[tr] * landMultiplier(oi.l); int t = items[tr] * landMultiplier(oi.l);
if(t >= 25) if(t >= 25)