Corrected tokkul sell prices (needs testing)
This commit is contained in:
@@ -605,13 +605,13 @@ public class Shop {
|
|||||||
item = new Item(item.getNoteChange(), item.getAmount());
|
item = new Item(item.getNoteChange(), item.getAmount());
|
||||||
}
|
}
|
||||||
int amount = getContainer(1).getAmount(item);
|
int amount = getContainer(1).getAmount(item);
|
||||||
if (getCurrency() == TOKKUL) {
|
/*if (getCurrency() == TOKKUL) {
|
||||||
for (Item i : items) {
|
for (Item i : items) {
|
||||||
if (i.getId() == item.getId()) {
|
if (i.getId() == item.getId()) {
|
||||||
amount = i.getAmount();
|
amount = i.getAmount();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
if (amount < 1) {
|
if (amount < 1) {
|
||||||
amount = getContainer(0).getAmount(item);
|
amount = getContainer(0).getAmount(item);
|
||||||
}
|
}
|
||||||
@@ -621,6 +621,7 @@ public class Shop {
|
|||||||
if (tokkul > 0) {
|
if (tokkul > 0) {
|
||||||
value = tokkul /= 10;
|
value = tokkul /= 10;
|
||||||
}
|
}
|
||||||
|
value = value * item.getAmount();
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user