mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-18 22:55:12 +00:00
fixed the first mouse in the Palace
This commit is contained in:
11
bigstuff.cpp
11
bigstuff.cpp
@@ -943,6 +943,15 @@ int wallchance(cell *c, bool deepOcean) {
|
|||||||
50;
|
50;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool mouse_reachability_test(cell *c) {
|
||||||
|
if(c->pathdist != PINFD)
|
||||||
|
return true;
|
||||||
|
forCellEx(c2, c)
|
||||||
|
if(passable(c, c2, 0) && c2->mpdist < c->mpdist)
|
||||||
|
return mouse_reachability_test(c2);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void buildBigStuff(cell *c, cell *from) {
|
void buildBigStuff(cell *c, cell *from) {
|
||||||
if(sphere || quotient) return;
|
if(sphere || quotient) return;
|
||||||
bool deepOcean = false;
|
bool deepOcean = false;
|
||||||
@@ -1084,7 +1093,7 @@ void buildBigStuff(cell *c, cell *from) {
|
|||||||
createAlternateMap(c, 2, hsA);
|
createAlternateMap(c, 2, hsA);
|
||||||
|
|
||||||
if(c->land == laPalace && ctof(c) && !princess::generating && !shmup::on && multi::players == 1 &&
|
if(c->land == laPalace && ctof(c) && !princess::generating && !shmup::on && multi::players == 1 &&
|
||||||
(princess::forceMouse ? (from && from->pathdist != PINFD) :
|
(princess::forceMouse ? mouse_reachability_test(from) :
|
||||||
(hrand(2000) < (peace::on ? 100 : 20))) &&
|
(hrand(2000) < (peace::on ? 100 : 20))) &&
|
||||||
!c->master->alt &&
|
!c->master->alt &&
|
||||||
(princess::challenge || kills[moVizier] || peace::on) && !tactic::on && !yendor::on) {
|
(princess::challenge || kills[moVizier] || peace::on) && !tactic::on && !yendor::on) {
|
||||||
|
|||||||
Reference in New Issue
Block a user