diff --git a/complex2.cpp b/complex2.cpp index 26153b30..7a010abd 100644 --- a/complex2.cpp +++ b/complex2.cpp @@ -911,6 +911,7 @@ EX namespace dice { int faces; int facesides; int order; + int highest_hardness; die_structure(int ord, const vector>& v) { sides = v; spins = sides; @@ -933,6 +934,9 @@ EX namespace dice { for(int i=0; ihardness[dat.dd.val]; + int wb = dw->highest_hardness; + unsigned int red = ((wa * 0x00) + ((wb-wa) * 0xff)) / wb; + color_t col = 0xFF0000FF + (red << 16); + queuestr(fpp ? dat.V * zpush(cgi.FLOOR) : dat.V, .5, its(dat.dd.val+1), col); if(i <= 22) forCellIdEx(c2, id, dat.c) if(can_roll(si, dat.dd.dir, movei(dat.c, id)) && !visited.count(c2)) { auto re = roll_effect(movei(dat.c, id), dat.dd);