Skip to content

Commit

Permalink
Merge pull request #860 from WALLOFJUSTICE/dev-23-q3-2
Browse files Browse the repository at this point in the history
* hotfixes
  • Loading branch information
WALLOFJUSTICE authored Oct 30, 2024
2 parents e59a1a9 + 4d97cf2 commit f511a6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12847,6 +12847,14 @@ void Entity::awardXP(Entity* src, bool share, bool root)
{
baseXp = 1 + local_rng.rand() % 2;
}
else if ( srcStats->type == SLIME )
{
baseXp = 5;
}
else if ( srcStats->type == GNOME )
{
baseXp = 5;
}
int xpGain = baseXp + local_rng.rand() % std::max(1, baseXp) + std::max(0, srcStats->LVL - destStats->LVL) * baseXp;
if ( srcStats->MISC_FLAGS[STAT_FLAG_XP_PERCENT_AWARD] > 0 )
{
Expand Down

0 comments on commit f511a6c

Please sign in to comment.