Remove prices.txt, which isn't used anymore it seems (#326)

* Remove prices.txt, which isn't used anymore it seems

* Actually git rm the file too...
This commit is contained in:
Daniel Ginovker
2019-12-25 21:31:32 -05:00
committed by GitHub
parent b79103ed79
commit e8685c97d0
53 changed files with 1 additions and 2332 deletions
File diff suppressed because it is too large Load Diff
@@ -33,7 +33,6 @@ public class ItemHandler {
ItemList[i] = null;
}
loadItemList("item.cfg");
loadItemPrices("prices.txt");
}
/**
@@ -328,22 +327,6 @@ public int itemAmount(String name, int itemId, int itemX, int itemY) {
ItemList[slot] = newItemList;
}
public void loadItemPrices(String filename) {
try {
@SuppressWarnings("resource")
Scanner s = new Scanner(new File("./data/cfg/" + filename));
while (s.hasNextLine()) {
String[] line = s.nextLine().split(" ");
ItemList temp = getItemList(Integer.parseInt(line[0]));
if (temp != null) {
temp.ShopValue = Integer.parseInt(line[1]);
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
public ItemList getItemList(int i) {
for (com.rebotted.game.items.ItemList element : ItemList) {
if (element != null) {
@@ -376,7 +359,7 @@ public int itemAmount(String name, int itemId, int itemX, int itemY) {
Misc.println(FileName + ": error loading file.");
// return false;
}
while (EndOfFile == false && line != null) {
while (!EndOfFile && line != null) {
line = line.trim();
int spot = line.indexOf("=");
if (spot > -1) {