mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
picking up an Orb of Purity with no Cursed Land in sight will grant 5 charges of every curseable orb
This commit is contained in:
parent
e53a7dbd68
commit
cd8856ea80
13
items.cpp
13
items.cpp
@ -149,6 +149,19 @@ EX bool collectItem(cell *c2, bool telekinesis IS(false)) {
|
|||||||
if(markOrb(itOrbIntensity)) oc = intensify(oc);
|
if(markOrb(itOrbIntensity)) oc = intensify(oc);
|
||||||
if(!items[it]) items[it]++;
|
if(!items[it]) items[it]++;
|
||||||
items[it] += oc;
|
items[it] += oc;
|
||||||
|
|
||||||
|
if(it == itOrbPurity) {
|
||||||
|
bool no_curses = true;
|
||||||
|
for(cell *c: dcal) if(c->land == laCursed) no_curses = false;
|
||||||
|
if(no_curses) {
|
||||||
|
items[itOrbSpeed] += 5;
|
||||||
|
items[itOrbWinter] += 5;
|
||||||
|
items[itOrbSlaying] += 5;
|
||||||
|
items[itOrbTime] += 5;
|
||||||
|
items[itOrbMagnetism] += 5;
|
||||||
|
items[itOrbChoice] += 5;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if(c2->item == itOrbLife) {
|
else if(c2->item == itOrbLife) {
|
||||||
playSound(c2, "pickup-orb"); // TODO summon
|
playSound(c2, "pickup-orb"); // TODO summon
|
||||||
|
Loading…
Reference in New Issue
Block a user