1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

side attacks for bows

This commit is contained in:
Zeno Rogue 2023-10-27 23:27:29 +02:00
parent daebe28d4f
commit ddc7cddb91

View File

@ -256,6 +256,9 @@ bool pcmove::try_shooting(bool auto_target) {
items[itCrossbow] = bow::loading_time();
bow::shoot();
int v = -1; for(auto p: bow::bowpath) if(p.next.at == cwt.at && p.first) v = p.next.spin;
if(v >= 0) sideAttack(cwt.at, v, moPlayer, 0);
if(items[itOrbGravity]) {
gravity_state = get_static_gravity(cwt.at);
if(gravity_state) markOrb(itOrbGravity);