mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-21 00:47:40 +00:00
bow:: fixed the geometric crossbow not hitting monsters inside walls
This commit is contained in:
@@ -193,9 +193,9 @@ EX vector<int> create_dirseq_geometric() {
|
|||||||
if(best_i < 0) break;
|
if(best_i < 0) break;
|
||||||
at = at + best_i;
|
at = at + best_i;
|
||||||
int bonus = bolt_score(at + wstep);
|
int bonus = bolt_score(at + wstep);
|
||||||
if(bonus < 0) break;
|
|
||||||
best_score_res += bonus;
|
best_score_res += bonus;
|
||||||
dirseq.push_back(best_i);
|
dirseq.push_back(best_i);
|
||||||
|
if(bonus < 0) break;
|
||||||
T = T * currentmap->adj(at.at, at.spin);
|
T = T * currentmap->adj(at.at, at.spin);
|
||||||
at = at + wstep;
|
at = at + wstep;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user