From f8c9562a7412a59793046eae06d2d456e0937261 Mon Sep 17 00:00:00 2001 From: Jacob Mandelson Date: Mon, 29 Aug 2022 18:50:50 -0700 Subject: [PATCH] Do Orb of Trickery. --- geometry.cpp | 2 +- graph.cpp | 5 +++++ polygons.cpp | 9 +++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index 25d50934..df438bac 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -341,7 +341,7 @@ hpcshape shDodeca, shSmallerDodeca, - shLightningBolt; + shLightningBolt, shHumanoid; hpcshape shFrogRearFoot, shFrogFrontFoot, shFrogRearLeg, shFrogFrontLeg, shFrogRearLeg2, shFrogBody, shFrogEye, shFrogStripe, shFrogJumpFoot, shFrogJumpLeg, shSmallFrogRearFoot, shSmallFrogFrontFoot, shSmallFrogRearLeg, shSmallFrogFrontLeg, shSmallFrogRearLeg2, shSmallFrogBody; diff --git a/graph.cpp b/graph.cpp index 6e68ad9b..4a30bd6d 100644 --- a/graph.cpp +++ b/graph.cpp @@ -1106,6 +1106,10 @@ EX bool drawItemType(eItem it, cell *c, const shiftmatrix& V, color_t icol, int queuepolyat(Vit, cgi.shSnowflake, dark, prio); else if (it == itOrbLuck) queuepolyat(Vit, cgi.shSmallerDodeca, dark, prio); + /*else if (it == itOrbIllusion) { + queuepolyat(Vit, cgi.shHumanoid, dark, prio); + //queuepolyat(Vit*Mirror, cgi.shHalfHumanoid, dark, prio); + }*/ else if (it == itOrbFlash) queuepolyat(Vit, cgi.shFlash, dark, prio); else if (it == itOrbMatter || it == itOrbStone) @@ -1124,6 +1128,7 @@ EX bool drawItemType(eItem it, cell *c, const shiftmatrix& V, color_t icol, int (it == itOrbPsi || it == itOrbSide3) ? &cgi.shDiskS : (it == itOrbPurity) ? &cgi.shSmallEgg : (it == itOrbLightning) ? &cgi.shLightningBolt : + (it == itOrbIllusion) ? &cgi.shHumanoid : NULL; queuepolyat(Vit, cgi.shDisk, dark, prio); if (shape) diff --git a/polygons.cpp b/polygons.cpp index 797c5a5c..d51087b0 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -1255,6 +1255,7 @@ void geometry_information::prepare_shapes() { bshape(shTreat, PPR::ITEM, scalefactor, 253); bshape(shSmallTreat, PPR::ITEM, scalefactor/1.5, 253); bshape(shLightningBolt, PPR::ITEM, scalefactor/1.5, 413); + bshape(shHumanoid, PPR::ITEM, scalefactor/5.5, 414); wormscale = WDIM == 3 ? 3 : 1; @@ -2416,6 +2417,14 @@ NEWSHAPE, 413, 1,1, .2824+x,.0656+y, .4176+x,.0656+y, .3184+x,.1720+y, .3792+x,. #undef x #undef y +// shHumanoid +#define x (-.636) +#define y (-.8) +NEWSHAPE, 414, 1, 2, .966+y,.636+x, 1.419+y,.822+x, 1.419+y,.984+x, .930+y,.807+x, .639+y,.765+x, .840+y,.890+x, .762+y,.975+x, .480+y,.822+x, .432+y,.714+x, .333+y,.774+x, .231+y,.777+x, .141+y,.717+x, .126+y,.723+x, .100+y,.636+x, + +#undef x +#undef y + NEWSHAPE, NEWSHAPE };