Skip to content

Commit

Permalink
* fix for insectoid mana possibly - todo
Browse files Browse the repository at this point in the history
  • Loading branch information
WALL OF JUSTICE committed Oct 31, 2024
1 parent 2c540c8 commit 46b1791
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/item_usage_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4616,6 +4616,17 @@ void item_Food(Item*& item, int player)
hungerIncrease = 10;
break;
}

/*if ( stats[player]->playerRace == RACE_INSECTOID && stats[player]->stat_appearance == 0 )
{
if ( stats[player]->MAXMP >= 50 )
{
real_t nominalIncrease = 50 * (hungerIncrease / 1000.0);
real_t currentIncrease = stats[player]->MAXMP * (hungerIncrease / 1000.0);
hungerIncrease = hungerIncrease * (nominalIncrease / currentIncrease);
}
}*/

stats[player]->HUNGER += hungerIncrease * foodMult;
}
else
Expand Down

0 comments on commit 46b1791

Please sign in to comment.