From cc31e1cd64dcb97fa9f97b63d616b0ff1dd612f5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 30 May 2021 13:21:42 +0200 Subject: [PATCH] inv:: the new Orbs displayed and hotkeyed correctly --- inventory.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/inventory.cpp b/inventory.cpp index 0e050361..e92d4783 100644 --- a/inventory.cpp +++ b/inventory.cpp @@ -409,7 +409,7 @@ EX namespace inv { } map orbmap; - string orbkeys = "zfwplSetsTaMIYgCcPOWAFydLGRUkouE.,bVNxDjJZnrvhBm!23456789@#$%"; + string orbkeys = "zfwplSetsTaMIYgCcPOWAFydLGRUkouE.,bVNxDjJZnrvhBm!23456789@#$%()"; typedef pair pxy; vector orbcoord; @@ -496,7 +496,7 @@ EX namespace inv { cmode = sm::CENTER; orbcoord.clear(); - for(int y=-3; y<=3; y++) for(int x=-5; x<=5; x++) if(x+y<=5 && x+y >= -5 && (x||y)) + for(int y=-3; y<=3; y++) for(int x=-5; x<=5; x++) if(x+y<=6 && x+y >= -6 && (x||y)) orbcoord.emplace_back(x,y); sort(orbcoord.begin(), orbcoord.end(), [](pxy p1, pxy p2) { return sq(p1) < sq(p2); }); @@ -517,7 +517,7 @@ EX namespace inv { for(int i=0; i= isize(orbcoord)) { + println(hlog, "error: oc=", oc, " with only ", isize(orbcoord), " positions"); + continue; + } auto pos = orbcoord[oc++]; ld px = current_display->xcenter + 2*rad*pos.first + rad*pos.second; ld py = current_display->ycenter + pos.second * rad3;