From cd8856ea801226056118ccf370b194b2f29ae057 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 23 May 2021 16:42:26 +0200 Subject: [PATCH] picking up an Orb of Purity with no Cursed Land in sight will grant 5 charges of every curseable orb --- items.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/items.cpp b/items.cpp index f981f1b0..cadbdeab 100644 --- a/items.cpp +++ b/items.cpp @@ -149,6 +149,19 @@ EX bool collectItem(cell *c2, bool telekinesis IS(false)) { if(markOrb(itOrbIntensity)) oc = intensify(oc); if(!items[it]) items[it]++; 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) { playSound(c2, "pickup-orb"); // TODO summon