Skip to content

Commit

Permalink
Fixed bug with resetting player's location.
Browse files Browse the repository at this point in the history
  • Loading branch information
john committed Apr 11, 2015
1 parent 11f465d commit 01a8d5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MerchantRPGCSE2102/src/controller/RPGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,10 @@ public static void main(String[] args) throws InterruptedException
ArrayList<String> playerInventory = _rpg.getMerchantInventoryList(1);
playerInventory.addAll(_rpg.getMerchantInventoryList(2));
playerInventory.addAll(_rpg.getMerchantInventoryList(3));
_rpg.buildPlayer("test", 500, playerInventory);
_rpg.getPlayer().getItem("armor").increaseQuantity(15);
_rpg.buildPlayer("test", 500, playerInventory);


// SETTING UP PLAYER AND MERCHANT
// SETTING UP PLAYER AND MERCHANT
Player player = new Player("Player", 0, null);
Merchant merch1 = new Merchant("Bill", 0, null);
Merchant merch2 = new Merchant("Joe", 0, null);
Expand Down
3 changes: 3 additions & 0 deletions MerchantRPGCSE2102/src/sprites/PlayerSprite.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ public void move() {
public void resetLocation() {
x = initialX;
y = initialY;
changeInX = 15;
changeInY = 15;

}

/**
Expand Down

0 comments on commit 01a8d5a

Please sign in to comment.