Skip to content

Commit

Permalink
fix: correct /setXP functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Sep 8, 2020
1 parent 4a43dd1 commit 2810ca9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Commands/Player/XP.gml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
_quantity = real(_args[0]);

// Set XP
objPlayer.xp = _quantity
if (_quantity > objPlayer.xp){
objPlayer.xpToGain = _quantity
}

else {
objPlayer.xp = _quantity
objPlayer.xpToGain = _quantity
}

// Message
Trace("Set XP to " + string(_quantity));
Expand Down

0 comments on commit 2810ca9

Please sign in to comment.