1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 10:17:56 +00:00

bow:: rusalka curses now work

This commit is contained in:
Zeno Rogue
2024-02-22 18:11:12 +01:00
parent bcc026173e
commit 60980bcb8b
2 changed files with 14 additions and 5 deletions

View File

@@ -369,6 +369,8 @@ EX bool fire_on_mouse(cell *c) {
return b;
}
EX int rusalka_curses = 0;
EX void shoot() {
flagtype attackflags = AF_BOW;
if(items[itOrbSpeed]&1) attackflags |= AF_FAST;
@@ -382,6 +384,7 @@ EX void shoot() {
vector<pair<cell*, int>> healthy_dragons;
map<cell*, pair<int, int>> kraken_hits;
int dragon_hits = 0;
rusalka_curses++;
// for achievements
for(auto& mov: bowpath) {
@@ -458,6 +461,8 @@ EX void shoot() {
if(m && attackMonster(c, attackflags | AF_MSG, who)) hit_anything = true;
if(m == moRusalka) rusalka_curses++;
if(!c->monst || isAnyIvy(m)) {
spread_plague(cf, c, movei(mov.prev).rev().d, moPlayer);
produceGhost(c, m, moPlayer);