1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 22:12:59 +00:00

first approach to Cursed Land

This commit is contained in:
Zeno Rogue
2021-05-17 14:20:02 +02:00
parent 6277ba6143
commit 809d1510c2
3 changed files with 40 additions and 2 deletions

View File

@@ -1449,7 +1449,7 @@ EX void moveshadow() {
cshpos = (cshpos+1) % SHSIZE;
for(int p: player_indices()) {
cell* where = shpos[p][cshpos];
if(where && where->monst == moNone && where->cpdist && where->land == laGraveyard &&
if(where && where->monst == moNone && where->cpdist && among(where->land, laGraveyard, laCursed) &&
!sword::at(where)) {
if(shfrom) animateMovement(match(shfrom, where), LAYER_SMALL);
where->monst = moShadow;