Skip to content

Commit

Permalink
> -> >=
Browse files Browse the repository at this point in the history
  • Loading branch information
vfat0 committed Sep 8, 2021
1 parent 4695559 commit 0c524ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/AdventureParty.sol
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ contract AdventureParty is Ownable, IERC721Receiver {
function levelUpAll() external {
for (uint i = 0; i < adventurers.length(); i++) {
uint adventurer = adventurers.at(i);
if (rarity.xp(adventurer) > rarity.xp_required(rarity.level(adventurer))) {
if (rarity.xp(adventurer) >= rarity.xp_required(rarity.level(adventurer))) {
rarity.level_up(adventurer);
rarityGold.claim(adventurer);
}
Expand Down

0 comments on commit 0c524ba

Please sign in to comment.