mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-21 08:00:25 +00:00
fixed some bugs where euclid was used instead of eubinary
This commit is contained in:
parent
e16c4aada7
commit
9b6136fb41
6
game.cpp
6
game.cpp
@ -5219,7 +5219,7 @@ int movevalue(eMonster m, cell *c, cell *c2, flagtype flags) {
|
|||||||
if(d == 2 && c->cpdist > 2) d = 4;
|
if(d == 2 && c->cpdist > 2) d = 4;
|
||||||
val -= d;
|
val -= d;
|
||||||
}
|
}
|
||||||
if(!euclid && c->monst == moKnight && c2->master->alt) {
|
if(c->monst == moKnight && (eubinary || c2->master->alt)) {
|
||||||
val -= celldistAlt(c2);
|
val -= celldistAlt(c2);
|
||||||
// don't go to external towers
|
// don't go to external towers
|
||||||
if(c2->wall == waTower && c2->wparam == 1 && !c2->monst)
|
if(c2->wall == waTower && c2->wparam == 1 && !c2->monst)
|
||||||
@ -6332,7 +6332,7 @@ void movecost(cell* from, cell *to, int phase) {
|
|||||||
|
|
||||||
bool cantGetGrimoire(cell *c2, bool verbose = true) {
|
bool cantGetGrimoire(cell *c2, bool verbose = true) {
|
||||||
if(chaosmode) return false;
|
if(chaosmode) return false;
|
||||||
if(!euclid && !c2->master->alt) return false;
|
if(!eubinary && !c2->master->alt) return false;
|
||||||
if(c2->item == itGrimoire && items[itGrimoire] > celldistAlt(c2)/-TEMPLE_EACH) {
|
if(c2->item == itGrimoire && items[itGrimoire] > celldistAlt(c2)/-TEMPLE_EACH) {
|
||||||
if(verbose)
|
if(verbose)
|
||||||
addMessage(XLAT("You already have this Grimoire! Seek new tomes in the inner circles."));
|
addMessage(XLAT("You already have this Grimoire! Seek new tomes in the inner circles."));
|
||||||
@ -6938,7 +6938,7 @@ void roundTableMessage(cell *c2) {
|
|||||||
|
|
||||||
void knightFlavorMessage(cell *c2) {
|
void knightFlavorMessage(cell *c2) {
|
||||||
|
|
||||||
if(!euclid && !c2->master->alt) {
|
if(!eubinary && !c2->master->alt) {
|
||||||
addMessage(XLAT("\"I am lost...\""));
|
addMessage(XLAT("\"I am lost...\""));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user