1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-17 11:38:05 +00:00

choice of the magic sword graphics now depends on the scale; in shmup, the tip is now set automatically based on the graphics

This commit is contained in:
Zeno Rogue
2019-03-09 17:36:04 +01:00
parent d9b90d8a8e
commit 14ea73be06
4 changed files with 12 additions and 6 deletions

View File

@@ -2924,11 +2924,14 @@ void buildpolys() {
for(int v=0; v<13; v++) for(int z=0; z<2; z++)
copyshape(shTortoise[v][4+z], shTortoise[v][2+z], PPR(shTortoise[v][2+z].prio + (PPR::CARRIED-PPR::ITEM)));
if(!BITRUNCATED) bshape(shMagicSword, PPR::MAGICSWORD, scalefactor, 243);
else bshape(shMagicSword, PPR::MAGICSWORD, 1, 244);
if(scalefactor > 1.5) bshape(shMagicSword, PPR::MAGICSWORD, scalefactor / 1.7570466583108084, 243);
else bshape(shMagicSword, PPR::MAGICSWORD, scalefactor, 244);
sword_size = 0;
for(int i=shMagicSword.s; i<shMagicSword.e; i++)
sword_size = max(sword_size, hdist0(hpc[i]));
if(!BITRUNCATED) bshape(shMagicShovel, PPR::MAGICSWORD, scalefactor, 333);
else bshape(shMagicShovel, PPR::MAGICSWORD, 1, 333);
bshape(shMagicShovel, PPR::MAGICSWORD, scalefactor, 333);
bshape(shBead0, PPR(20), 1, 250);
bshape(shBead1, PPR(20), 1, 251);