mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-17 03:50:22 -07:00
Corrected tokkul sell prices (needs testing)
This commit is contained in:
parent
f2636c95db
commit
bcb06fb05e
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue