mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed the message order for teleport/jump orbs
This commit is contained in:
parent
f734df14f6
commit
9220938e79
34
orbs.cpp
34
orbs.cpp
@ -542,6 +542,8 @@ void teleportTo(cell *dest) {
|
||||
return;
|
||||
}
|
||||
|
||||
addMessage(XLAT("You teleport to a new location!"));
|
||||
|
||||
killFriendlyIvy();
|
||||
cell *from = cwt.c;
|
||||
movecost(from, dest, 1);
|
||||
@ -549,7 +551,6 @@ void teleportTo(cell *dest) {
|
||||
cwt.c = dest; cwt.spin = hrand(dest->type); flipplayer = !!(hrand(2));
|
||||
drainOrb(itOrbTeleport);
|
||||
|
||||
addMessage(XLAT("You teleport to a new location!"));
|
||||
mirror::destroyAll();
|
||||
|
||||
afterplayermoved();
|
||||
@ -568,6 +569,22 @@ void teleportTo(cell *dest) {
|
||||
void jumpTo(cell *dest, eItem byWhat, int bonuskill, eMonster dashmon) {
|
||||
if(byWhat != itStrongWind) playSound(dest, "orb-frog");
|
||||
cell *from = cwt.c;
|
||||
|
||||
if(byWhat == itOrbFrog) {
|
||||
useupOrb(itOrbFrog, 5);
|
||||
addMessage(XLAT("You jump!"));
|
||||
}
|
||||
|
||||
if(byWhat == itOrbDash) {
|
||||
useupOrb(itOrbDash, 5);
|
||||
addMessage(XLAT("You vault over %the1!", dashmon));
|
||||
}
|
||||
|
||||
if(byWhat == itOrbPhasing) {
|
||||
useupOrb(itOrbPhasing, 5);
|
||||
addMessage(XLAT("You jump!"));
|
||||
}
|
||||
|
||||
movecost(from, dest, 1);
|
||||
|
||||
killFriendlyIvy();
|
||||
@ -587,21 +604,6 @@ void jumpTo(cell *dest, eItem byWhat, int bonuskill, eMonster dashmon) {
|
||||
if(cwt.c->item != itOrbYendor && cwt.c->item != itHolyGrail)
|
||||
collectItem(cwt.c, true);
|
||||
|
||||
if(byWhat == itOrbFrog) {
|
||||
useupOrb(itOrbFrog, 5);
|
||||
addMessage(XLAT("You jump!"));
|
||||
}
|
||||
|
||||
if(byWhat == itOrbDash) {
|
||||
useupOrb(itOrbDash, 5);
|
||||
addMessage(XLAT("You vault over %the1!", dashmon));
|
||||
}
|
||||
|
||||
if(byWhat == itOrbPhasing) {
|
||||
useupOrb(itOrbPhasing, 5);
|
||||
addMessage(XLAT("You jump!"));
|
||||
}
|
||||
|
||||
mirror::destroyAll();
|
||||
|
||||
for(int i=9; i>=0; i--)
|
||||
|
Loading…
Reference in New Issue
Block a user