|
|
|
@ -2926,7 +2926,7 @@ public: |
|
|
|
|
DrawStringDecal({4+1,(float)(HEIGHT-10-GetTextSize("HP:").y+1)},"HP: "+std::to_string(PLAYER_HP),BLACK); |
|
|
|
|
DrawStringDecal({4,(float)(HEIGHT-10-GetTextSize("HP:").y)},"HP: "+std::to_string(PLAYER_HP)); |
|
|
|
|
DrawHealthbar({2,HEIGHT-10},WIDTH/2,(float)PLAYER_HP/PLAYER_MAXHP,BLACK); |
|
|
|
|
DrawBuffs({64+GetTextSize(std::to_string(PLAYER_HP)).x,HEIGHT-26}); |
|
|
|
|
DrawBuffs({48+GetTextSize(std::to_string(PLAYER_HP)).x,HEIGHT-26}); |
|
|
|
|
for (auto&numb:BATTLE_DISPLAY_NUMBERS) { |
|
|
|
|
std::string display=((numb->number>0)?"-"+std::to_string(numb->number):"+"+std::to_string(numb->number*-1)); |
|
|
|
|
for (int x=-1;x<=1;x++) { |
|
|
|
@ -3847,15 +3847,15 @@ public: |
|
|
|
|
if (FOOD_REGEN_TURNS>0) { |
|
|
|
|
DrawDecal(pos+buffPos,HP_REGEN_DECAL); |
|
|
|
|
std::string txt=std::to_string(FOOD_REGEN_TURNS); |
|
|
|
|
DrawStringDecal({pos.x+buffPos.x-GetTextSize(txt).x+1,pos.y+16-GetTextSize(txt).y+1},txt,VERY_DARK_GREEN); |
|
|
|
|
DrawStringDecal({pos.x+buffPos.x-GetTextSize(txt).x,pos.y+16-GetTextSize(txt).y},txt); |
|
|
|
|
DrawStringDecal({pos.x+buffPos.x+16-GetTextSize(txt).x+1,pos.y+16-GetTextSize(txt).y+1},txt,VERY_DARK_GREEN); |
|
|
|
|
DrawStringDecal({pos.x+buffPos.x+16-GetTextSize(txt).x,pos.y+16-GetTextSize(txt).y},txt); |
|
|
|
|
buffPos.x+=16; |
|
|
|
|
} |
|
|
|
|
if (PETRIFY_TURNS>0) { |
|
|
|
|
DrawDecal(pos+buffPos,PETRIFY_DECAL); |
|
|
|
|
std::string txt=std::to_string(PETRIFY_TURNS); |
|
|
|
|
DrawStringDecal({pos.x+buffPos.x-GetTextSize(txt).x+1,pos.y+16-GetTextSize(txt).y+1},txt,VERY_DARK_RED); |
|
|
|
|
DrawStringDecal({pos.x+buffPos.x-GetTextSize(txt).x,pos.y+16-GetTextSize(txt).y},txt); |
|
|
|
|
DrawStringDecal({pos.x+buffPos.x+16-GetTextSize(txt).x+1,pos.y+16-GetTextSize(txt).y+1},txt,VERY_DARK_RED); |
|
|
|
|
DrawStringDecal({pos.x+buffPos.x+16-GetTextSize(txt).x,pos.y+16-GetTextSize(txt).y},txt); |
|
|
|
|
buffPos.x+=16; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|