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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user