1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-17 10:39:43 +00:00

orbinfos is a vector now

This commit is contained in:
Zeno Rogue
2018-12-23 03:13:08 +01:00
parent 97c546db64
commit c56287ae38
3 changed files with 14 additions and 23 deletions

View File

@@ -375,15 +375,13 @@ string generateHelpForItem(eItem it) {
#endif
if(itemclass(it) == IC_ORB || it == itGreenStone || it == itOrbYendor) {
for(int i=0; i<ORBLINES; i++) {
const orbinfo& oi(orbinfos[i]);
for(auto& oi: orbinfos) {
if(oi.orb == it && oi.is_native()) describeOrb(help, oi);
}
}
if(itemclass(it) == IC_TREASURE) {
for(int i=0; i<ORBLINES; i++) {
const orbinfo& oi(orbinfos[i]);
for(auto& oi: orbinfos) {
if(treasureType(oi.l) == it) {
if(oi.gchance > 0) {
help += XLAT("\n\nOrb unlocked: %1", oi.orb);