1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-31 01:37:57 +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() );