1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-13 04:13:03 +00:00

shmup:: made Orb of Change work

This commit is contained in:
Zeno Rogue
2025-10-10 13:01:57 +02:00
parent da9dfcba64
commit 7f79169abf

View File

@@ -1634,6 +1634,22 @@ EX eItem targetRangedOrb(orbAction a) {
return itOrbStunning;
}
if(items[itOrbMorph] && shmup::mousetarget && sqdist(mouseh, shmup::mousetarget->pat*C0) < SCALE2 * .1) {
if(a == roCheck) return itOrbMorph;
auto orig = mousetarget->type;
auto target = pick_poly_monster(orig);
addMessage(XLAT("You polymorph %the1 into %the2!", orig, target));
mousetarget->type = target;
mousetarget->parent = nullptr; /* if we morph a missile */
useupOrb(itOrbMorph, 3);
if(orig == moPlayer) {
achievement_final(true);
showMissionScreen();
}
return itOrbMorph;
}
if(on && items[itOrbDragon]) {
if(a == roCheck) return itOrbDragon;
shoot(itOrbDragon, wpc);