v0.6.0: selling items to the shop no longer spends time

This commit is contained in:
Evan Debenham 2017-05-29 17:58:16 -04:00
parent c254e03596
commit 26173b875b

View File

@ -229,9 +229,10 @@ public class WndTradeItem extends Window {
}
item.detachAll( hero.belongings.backpack );
int price = item.price();
new Gold( item.price() ).doPickUp( hero );
new Gold( price ).doPickUp( hero );
//selling items in the sell interface doesn't spend time
hero.spend(-hero.cooldown());
}
private void sellOne( Item item ) {
@ -243,9 +244,11 @@ public class WndTradeItem extends Window {
Hero hero = Dungeon.hero;
item = item.detach( hero.belongings.backpack );
int price = item.price();
new Gold( price ).doPickUp( hero );
new Gold( item.price() ).doPickUp( hero );
//selling items in the sell interface doesn't spend time
hero.spend(-hero.cooldown());
}
}