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

Add minetexts up to 14

The truncated heptagonal and truncated triheptagonal tilings both appear in
the list of Archimedean tilings, and both contain tetradecagons. It seems that
this is the most sides of any polygon in any of the game's non-custom tilings,
so it seems like a good choice for how high minetexts should support.
This commit is contained in:
Joseph C. Sible
2025-09-27 15:13:45 -04:00
parent 300b8ed78f
commit eeb67620ff
2 changed files with 11 additions and 4 deletions

View File

@@ -1987,7 +1987,7 @@ EX void drawscreen() {
its(hive::bugcount[k]), minf[moBug0+k].color, 8);
bool minefieldNearby = false;
int mines[MAXPLAYER], tmines=0;
unsigned mines[MAXPLAYER], tmines=0;
for(int p=0; p<numplayers(); p++) {
mines[p] = 0;
cell *c = playerpos(p);
@@ -2013,7 +2013,7 @@ EX void drawscreen() {
displayfr(vid.xres * (p+.5) / numplayers(),
current_display->ycenter - current_display->radius * 3/4, 2,
vid.fsize,
mines[p] > 7 ? its(mines[p]) : XLAT(minetexts[mines[p]]), minecolors[mines[p]], 8);
mines[p] > sizeof(minetexts) / sizeof(minetexts[0]) ? its(mines[p]) : XLAT(minetexts[mines[p]]), minecolors[mines[p]], 8);
if(minefieldNearby && !shmup::on && cwt.at->land != laMinefield && cwt.peek()->land != laMinefield && !dont_display_minecount) {
displayfr(vid.xres/2, current_display->ycenter - current_display->radius * 3/4 - vid.fsize*3/2, 2,