diff --git a/help.cpp b/help.cpp index 44829dae..63139025 100644 --- a/help.cpp +++ b/help.cpp @@ -375,15 +375,13 @@ string generateHelpForItem(eItem it) { #endif if(itemclass(it) == IC_ORB || it == itGreenStone || it == itOrbYendor) { - for(int i=0; i 0) { help += XLAT("\n\nOrb unlocked: %1", oi.orb); diff --git a/inventory.cpp b/inventory.cpp index 1ad1cd9b..ad44dc54 100644 --- a/inventory.cpp +++ b/inventory.cpp @@ -214,8 +214,7 @@ namespace hr { namespace inv { } void gainGuestOrbs() { - for(int k=0; k= 10) { diff --git a/orbgen.cpp b/orbgen.cpp index c59ddd59..89d300ee 100644 --- a/orbgen.cpp +++ b/orbgen.cpp @@ -1,8 +1,6 @@ // Hyperbolic Rogue -- orb generation routines // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details -#define ORBLINES 70 - namespace hr { // orbgen flags @@ -49,7 +47,7 @@ struct orbinfo { bool is_native() const { using namespace orbgenflags; return flags & NATIVE; } }; -const orbinfo orbinfos[ORBLINES] = { +const vector orbinfos = { {orbgenflags::S_NATIVE, laGraveyard, 200, 200,itGreenStone}, // must be first so that it does not reduce {orbgenflags::S_NATIVE, laJungle, 1200, 1500,itOrbLightning}, {orbgenflags::S_NATIVE, laIce, 2000, 1500,itOrbFlash}, @@ -127,16 +125,16 @@ eItem nativeOrbType(eLand l) { if(inv::on && (l == laMirror || l == laMirrorOld || isCrossroads(l))) return itOrbMirror; if(l == laMirror || l == laMirrorOld) return itShard; - for(int i=0; i= 25) return; if(l == laElementalWall && hrand(100) >= 25) return; - for(int i=0; i