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:
parent
daebe28d4f
commit
ddc7cddb91
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user