reduceOrbPowers: only call mine::auto_teleport_charges once

This commit is contained in:
Jesse Ruderman 2021-07-10 04:59:50 -07:00
parent 2eeca0410e
commit 72d496cd88
1 changed files with 4 additions and 3 deletions

View File

@ -99,9 +99,6 @@ EX bool reduceOrbPower(eItem it, int cap) {
return true;
}
if(items[it] > cap && timerghost) items[it] = cap;
#if CAP_COMPLEX2
mine::auto_teleport_charges();
#endif
return false;
}
@ -210,6 +207,10 @@ EX void reduceOrbPowers() {
reduceOrbPower(itCurseRepulsion, 199);
reduceOrbPower(itCurseGluttony, 199);
#if CAP_COMPLEX2
mine::auto_teleport_charges();
#endif
whirlwind::calcdirs(cwt.at);
items[itStrongWind] = !items[itOrbAether] && whirlwind::qdirs == 1;
items[itWarning] = 0;