1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-08 08:11:21 +00:00

after 3 illegal moves, provide some suggestions regarding possible skip-moves and Orb uses

This commit is contained in:
Zeno Rogue
2026-04-18 14:06:35 +02:00
parent b518948af2
commit a7a3d13b70
14 changed files with 108 additions and 37 deletions

View File

@@ -517,7 +517,10 @@ EX void shoot() {
gen_bowpath_map();
}
EX bool have_bow_target() {
EX cell *have_bow_target() {
if(!bow::crossbow_mode()) return nullptr;
if(items[itCrossbow]) return nullptr;
dynamicval<decltype(bowpath)> bp(bowpath);
dynamicval<decltype(bowpath_map)> bpm(bowpath_map);
@@ -536,9 +539,9 @@ EX bool have_bow_target() {
bool b = pcm.try_shooting(false);
changes.rollback();
if(b) return true;
if(b) return c;
}
return false;
return nullptr;
}
EX void showMenu() {