1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

product:: item placement

This commit is contained in:
Zeno Rogue 2019-08-18 21:30:39 +02:00
parent ecfef817a9
commit aaadf953ea
2 changed files with 10 additions and 1 deletions

View File

@ -780,6 +780,12 @@ EX int shvid(cell *c) {
product::in_underlying_map([&] { d = shvid(c1); }); product::in_underlying_map([&] { d = shvid(c1); });
return d; return d;
} }
else if(GOLDBERG)
return gp::get_plainshape_id(c);
else if(IRREGULAR)
return irr::cellindex[c];
else if(archimedean)
return arcm::id_of(c->master);
else if(geosupport_football() == 2) else if(geosupport_football() == 2)
return pseudohept(c); return pseudohept(c);
else if(geometry == gBinaryTiling) else if(geometry == gBinaryTiling)

View File

@ -865,7 +865,10 @@ EX bool drawItemType(eItem it, cell *c, const transmatrix& V, color_t icol, int
transmatrix Vit = V; transmatrix Vit = V;
if(GDIM == 3 && WDIM == 2 && c && it != itBabyTortoise) Vit = mscale(V, cgi.STUFF); if(GDIM == 3 && WDIM == 2 && c && it != itBabyTortoise) Vit = mscale(V, cgi.STUFF);
if(GDIM == 3 && c && it != itBabyTortoise) Vit = face_the_player(Vit); if(c && prod)
Vit = mscale(Vit, sin(ptick(750)) * cgi.plevel / 4);
else
if(GDIM == 3 && c && it != itBabyTortoise) Vit = face_the_player(Vit);
// V * cspin(0, 2, ptick(618, 0)); // V * cspin(0, 2, ptick(618, 0));
if(c && history::includeHistory && history::infindhistory.count(c)) poly_outline = OUTLINE_DEAD; if(c && history::includeHistory && history::infindhistory.count(c)) poly_outline = OUTLINE_DEAD;