Skip to content

Commit

Permalink
Fix life points calculation in PetHelper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rpothin committed Apr 4, 2024
1 parent 81683fc commit b906175
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static bool ArePetLifePointsCorrectlyUpdatedAfterFeedingActivity(ServiceC
var lifePoints = pet.GetAttributeValue<int>("rpo_lifepoints");

// Check if the life points are correctly updated
if (lifePointsBeforeFeeding + foodQuantity == _initialLifePoints) {
if (lifePointsBeforeFeeding + foodQuantity >= _initialLifePoints) {
return lifePoints == _initialLifePoints;
} else {
// Consider the option that the life points already decreased by 10
Expand Down

0 comments on commit b906175

Please sign in to comment.