mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-16 19:18:05 +00:00
added dragon dismounting easier
This commit is contained in:
17
flags.cpp
17
flags.cpp
@@ -137,13 +137,20 @@ bool isFriendlyOrPlayer(eMonster m) {
|
||||
return isFriendly(m) || m == moPlayer;
|
||||
}
|
||||
|
||||
bool isFriendly(cell *c) {
|
||||
if(items[itOrbDomination] && c->monst && c->monst != moTentacleGhost) {
|
||||
for(int i=0; i<numplayers(); i++)
|
||||
if(sameMonster(c, playerpos(i)))
|
||||
bool isMounted(cell *c) {
|
||||
if(c && c->monst && c->monst != moTentacleGhost) {
|
||||
for(int i=0; i<numplayers(); i++) {
|
||||
if(playerpos(i)->monst && sameMonster(c, playerpos(i)))
|
||||
return true;
|
||||
if(lastmountpos[i] && lastmountpos[i]->monst && sameMonster(c, lastmountpos[i]))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return isFriendly(c->monst);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool isFriendly(cell *c) {
|
||||
return isMounted(c) || isFriendly(c->monst);
|
||||
}
|
||||
|
||||
bool isBug(eMonster m) {
|
||||
|
||||
Reference in New Issue
Block a user