1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 09:30:35 +00:00

hat:: better pseudohept

This commit is contained in:
Zeno Rogue 2023-03-24 23:19:32 +01:00
parent 15623fd84d
commit 9fa2ba72fe
2 changed files with 10 additions and 1 deletions

View File

@ -596,6 +596,15 @@ EX hrmap *new_map() { return new hrmap_hat; }
hrmap_hat* hat_map() { return dynamic_cast<hrmap_hat*>(currentmap); }
EX bool pseudohept(cell *c) {
int id = hat_map()->hat_id(c);
return id == 0 || id == 6;
}
EX int get_hat_id(cell *c) {
return hat_map()->hat_id(c);
}
EX void reshape() {
hrmap_hat *hatmap;
hatmap = FPIU( hat_map() );

View File

@ -1477,7 +1477,7 @@ EX bool pseudohept(cell *c) {
if(sol) return (c->master->emeraldval % 3 == 2) && (c->master->zebraval % 3 == 2) && (c->master->distance % 2);
if(nih) return c->master->zebraval % 3 == 2 && c->master->emeraldval % 2 == 1 && (c->master->distance % 2);
if(kite::in()) return kite::getshape(c->master) == kite::pDart;
if(hat::in()) return c == c->master->c7;
if(hat::in()) return hat::pseudohept(c);
if(bt::in()) return bt::pseudohept(c);
#endif
if(S3 >= OINF) return c->master->distance % 3 == 1;