mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-10 16:10:15 +00:00
Merge pull request #163 from jruderman/ranged_beauty
The Orb of Beauty now lifts rose-scent restrictions on targeting of ranged orbs
This commit is contained in:
commit
0a8f284b20
2
orbs.cpp
2
orbs.cpp
@ -1246,7 +1246,7 @@ EX eItem targetRangedOrb(cell *c, orbAction a) {
|
|||||||
if(rosedist(cwt.at) == 1) {
|
if(rosedist(cwt.at) == 1) {
|
||||||
int r = rosemap[cwt.at];
|
int r = rosemap[cwt.at];
|
||||||
int r2 = rosemap[c];
|
int r2 = rosemap[c];
|
||||||
if(r2 <= r) {
|
if(r2 <= r && !markOrb(itOrbBeauty)) {
|
||||||
if(a == roKeyboard || a == roMouseForce )
|
if(a == roKeyboard || a == roMouseForce )
|
||||||
addMessage(XLAT("Those roses smell too nicely. You can only target cells closer to them!"));
|
addMessage(XLAT("Those roses smell too nicely. You can only target cells closer to them!"));
|
||||||
return itNone;
|
return itNone;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user