mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-08 17:34:08 +00:00
item movement animations for Orb of Space and Curse of Repulsion
This commit is contained in:
parent
77a4bb4160
commit
37b498203c
@ -2510,7 +2510,7 @@ void celldrawer::draw_item_full() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(it) {
|
if(it) {
|
||||||
if((c->land == laWhirlwind || c->item == itBabyTortoise || c->land == laWestWall) && c->wall != waBoat) {
|
if(c->wall != waBoat) {
|
||||||
double footphase = 0;
|
double footphase = 0;
|
||||||
applyAnimation(c, Vboat, footphase, LAYER_BOAT);
|
applyAnimation(c, Vboat, footphase, LAYER_BOAT);
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,7 @@ EX bool doPickupItemsWithMagnetism(cell *c) {
|
|||||||
changes.ccell(c3);
|
changes.ccell(c3);
|
||||||
changes.ccell(c4);
|
changes.ccell(c4);
|
||||||
moveItem(c3, c4, false);
|
moveItem(c3, c4, false);
|
||||||
|
animateMovement(match(c3, c4), LAYER_BOAT);
|
||||||
moveEffect(movei(c4, c4, NODIR), moDeadBird);
|
moveEffect(movei(c4, c4, NODIR), moDeadBird);
|
||||||
markOrb(itCurseRepulsion);
|
markOrb(itCurseRepulsion);
|
||||||
}
|
}
|
||||||
|
6
orbs.cpp
6
orbs.cpp
@ -822,7 +822,13 @@ void telekinesis(cell *dest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
moveItem(dest, cwt.at, true);
|
moveItem(dest, cwt.at, true);
|
||||||
|
eItem it = cwt.at->item;
|
||||||
collectItem(cwt.at, cwt.at, true);
|
collectItem(cwt.at, cwt.at, true);
|
||||||
|
if(cwt.at->item == it)
|
||||||
|
animateMovement(match(dest, cwt.at), LAYER_BOAT);
|
||||||
|
else
|
||||||
|
animate_item_throw(dest, cwt.at, it);
|
||||||
|
|
||||||
useupOrb(itOrbSpace, cost.first);
|
useupOrb(itOrbSpace, cost.first);
|
||||||
if(cost.second)
|
if(cost.second)
|
||||||
markOrb(itOrbMagnetism);
|
markOrb(itOrbMagnetism);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user