mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-24 21:37:18 +00:00
Merge pull request #209 from jruderman/reverse_winter
Reversing the Curse of Water now gives bonus Orb of Winter
This commit is contained in:
commit
b02aae0af8
2
orbs.cpp
2
orbs.cpp
@ -115,7 +115,7 @@ EX void reduceOrbPowerAlways(eItem it) {
|
|||||||
EX void reverse_curse(eItem curse, eItem orb, bool cancel) {
|
EX void reverse_curse(eItem curse, eItem orb, bool cancel) {
|
||||||
if(items[curse] && markOrb(itOrbPurity)) {
|
if(items[curse] && markOrb(itOrbPurity)) {
|
||||||
items[orb] += items[curse];
|
items[orb] += items[curse];
|
||||||
if(curse == itCurseWeakness) items[itOrbWinter] += items[curse];
|
if(curse == itCurseWater) items[itOrbWinter] += items[curse];
|
||||||
items[curse] = 0;
|
items[curse] = 0;
|
||||||
}
|
}
|
||||||
if(cancel && items[curse] && items[orb]) {
|
if(cancel && items[curse] && items[orb]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user