1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-22 22:10:20 +00:00

fixed hotkeys in the inventory mode

This commit is contained in:
Zeno Rogue 2017-09-01 22:12:38 +02:00
parent 1f7702dc34
commit 4b2c471d51

View File

@ -167,6 +167,7 @@ namespace inv {
} }
void compute() { void compute() {
for(int i=0; i<ittypes; i++) remaining[i] = -usedup[i]; for(int i=0; i<ittypes; i++) remaining[i] = -usedup[i];
for(int i=0; i<ittypes; i++) if(usedup[i] >= TESTMIRRORED) { for(int i=0; i<ittypes; i++) if(usedup[i] >= TESTMIRRORED) {
remaining[i] += MIRRORED; remaining[i] += MIRRORED;
@ -253,7 +254,8 @@ namespace inv {
} }
map<char, eItem> orbmap; map<char, eItem> orbmap;
string orbkeys = "zfwplSetsTaMIYgCcPOWAFydLGRUuouE.,bVNhDwWZnrvhBm0123456789"; string orbkeys = "zfwplSetsTaMIYgCcPOWAFydLGRUkouE.,bVNxDjJZnrvhBm0123456789";
typedef pair<int, int> pxy; typedef pair<int, int> pxy;
vector<pxy> orbcoord; vector<pxy> orbcoord;
@ -338,7 +340,7 @@ namespace inv {
which = itNone; which = itNone;
if(plain) dialog::init(XLAT(mirroring ? "mirror what?" : "inventory"), forecolor, 150, 100); if(plain) dialog::init(XLAT(mirroring ? "mirror what?" : "inventory"), forecolor, 150, 100);
int j = 0, oc = 6; int j = 0, oc = 6;
for(int i=0; i<ittypes; i++) { for(int i=0; i<ittypes; i++) {
eItem o = eItem(i); eItem o = eItem(i);