Skip to content

Commit

Permalink
del old pics
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-str committed Mar 1, 2021
1 parent f8876dd commit f7d17aa
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Player.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private: static Player *player_getter;
void InventoryDraw(Image &canvas) { invent.Draw(canvas); }

void AddSpeed(int add) { move_speed += add; }
void HpRestore(int add) { std::cout<<"hp hil " << add << std::endl; }
void HpRestore(int add) { hp += add; if (add > max_hp)hp = max_hp; }

void PressI() { invent.open = !invent.open; invent.inv_pos = -1; }
void PressLA() { invent.inv_pos = (invent.inv_pos == -1) ? invent.inv_size - 1 : (invent.inv_pos - 1 + invent.inv_size) % invent.inv_size; }
Expand Down Expand Up @@ -204,6 +204,7 @@ private: static Player *player_getter;
E_DieType die_type;

double hp = 40;
double max_hp = 40;

};

Expand Down
Binary file removed resources/inv_D.png
Binary file not shown.
Binary file removed resources/inv_L.png
Binary file not shown.
Binary file removed resources/inv_LD.png
Binary file not shown.
Binary file removed resources/inv_S.png
Binary file not shown.
Binary file removed resources/tex.png
Binary file not shown.

0 comments on commit f7d17aa

Please sign in to comment.