Items adjusted prices
fixed some Tile sheeesh selling overflowing Items in Inventory (over 999)
This commit is contained in:
parent
79e86e343c
commit
cdd8ae7441
21 changed files with 106 additions and 84 deletions
|
|
@ -31,10 +31,8 @@ public class InventorySlot : ItemStorageSlot, IPointerClickHandler {
|
|||
* Sells the Item for the Item Sell Price and puts it in the Shop if the selling was a mistake
|
||||
*/
|
||||
private void SellItem() {
|
||||
if(Item){
|
||||
_playerController.ChangeMoney(Item.SellPrice);
|
||||
_shop.AddItem(Item, 1);
|
||||
_inventory.RemoveItem(Item, 1); // TODO: somehow sell more than 1 Item
|
||||
if(Item) {
|
||||
_inventory.SellItem(Item, 1); //TODO: wie machen mehr als 1 verkaufen?!
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue