From ae284d68e878c973c5809826fa6229a53cb0974b Mon Sep 17 00:00:00 2001 From: Jacob Mandelson Date: Sun, 28 Aug 2022 21:09:24 -0700 Subject: [PATCH] Orb of Stunning. --- geometry.cpp | 2 +- graph.cpp | 6 ++++++ polygons.cpp | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index 24e0ee28..eaeffa68 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -295,7 +295,7 @@ hpcshape shFemaleBody, shFemaleHair, shFemaleDress, shWitchDress, shWitchHair, shBeautyHair, shFlowerHair, shFlowerHand, shSuspenders, shTrophy, shBugBody, shBugArmor, shBugLeg, shBugAntenna, - shPickAxe, shSmallPickAxe, shPike, shFlailBall, shFlailTrunk, shSmallFlailTrunk, shFlailChain, shHammerHead, shSmallHammerHead, + shPickAxe, shSmallPickAxe, shPike, shFlailBall, shSmallFlailBall, shFlailTrunk, shSmallFlailTrunk, shFlailChain, shHammerHead, shSmallHammerHead, shBook, shBookCover, shGrail, shBoatOuter, shBoatInner, shCompass1, shCompass2, shCompass3, shKnife, shTongue, shFlailMissile, shTrapArrow, diff --git a/graph.cpp b/graph.cpp index 3533e745..7e804e19 100644 --- a/graph.cpp +++ b/graph.cpp @@ -1109,6 +1109,12 @@ EX bool drawItemType(eItem it, cell *c, const shiftmatrix& V, color_t icol, int }*/ else if (it == itOrbSpeed) drawSpeed(Vit, 0.4); + else if (it == itOrbStunning) { + for (int i=0; i<5; i++) { + shiftmatrix V2 = Vit * spin(2*M_PI * i / 5 + ptick(300)); + queuepolyat(V2, cgi.shSmallFlailBall, dark, prio); + } + } else if (it == itOrbDragon) { queuepolyat(Vit, cgi.shSmallDragonHead, dark, prio); queuepolyat(Vit, cgi.shSmallDragonNostril, 0xFF, prio); diff --git a/polygons.cpp b/polygons.cpp index eb11972d..7764863e 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -1505,6 +1505,7 @@ void geometry_information::prepare_shapes() { bshape(shSmallPickAxe, PPR::MONSTER_WPN, scalefactor/1.5, 408); bshape(shPike, PPR::MONSTER_WPN, scalefactor, 150); bshape(shFlailBall, PPR::MONSTER_WPN, scalefactor, 151); + bshape(shSmallFlailBall, PPR::MONSTER_WPN, scalefactor/2, 151); bshape(shFlailTrunk, PPR::MONSTER_WPN, scalefactor, 152); bshape(shSmallFlailTrunk, PPR::MONSTER_WPN, scalefactor/2, 409); bshape(shFlailChain, PPR::MONSTER_SUBWPN, scalefactor, 153);