Removes codacy issue
This commit is contained in:
parent
f7ec1195f4
commit
f9a91c0922
|
@ -302,9 +302,8 @@ monster_drop_loot(Monster *monster, Map *map, Player *player)
|
||||||
Item *item;
|
Item *item;
|
||||||
Item *items[2];
|
Item *items[2];
|
||||||
unsigned int item_count = 0;
|
unsigned int item_count = 0;
|
||||||
bool player_full_health = false;
|
bool player_full_health = player->stats.hp >= player->stats.maxhp;
|
||||||
|
|
||||||
player_full_health = player->stats.hp >= player->stats.maxhp;
|
|
||||||
if (player->stats.hp < player->stats.maxhp / 2)
|
if (player->stats.hp < player->stats.maxhp / 2)
|
||||||
item_drop_chance = 0;
|
item_drop_chance = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue