Maxed out item rolls now show up in a different color. Release Build 8012.

This commit is contained in:
2024-03-07 19:06:39 -06:00
parent 3f352eeeeb
commit da1774bfdd
6 changed files with 25 additions and 7 deletions
+8
View File
@@ -72,6 +72,14 @@ float util::lerp(float n1,float n2,double t){
return float(n1*(1-t)+n2*t);
}
std::string util::PixelToHTMLColorCode(const Pixel&col){
std::string hexCode=std::format("#{:2x}{:2x}{:2x}",col.r,col.g,col.b);
for(char&c:hexCode){
c=toupper(c);
}
return hexCode;
}
std::string util::timerStr(float time){
int seconds=int(time);
int hours=seconds/3600;