diff --git a/data/note-317.dat b/data/note-317.dat deleted file mode 100644 index 8438dbb2..00000000 Binary files a/data/note-317.dat and /dev/null differ diff --git a/data/note-377.dat b/data/note-377.dat deleted file mode 100644 index 488fec5b..00000000 Binary files a/data/note-377.dat and /dev/null differ diff --git a/src/org/apollo/tools/NoteUpdater.java b/src/org/apollo/tools/NoteUpdater.java deleted file mode 100644 index 1c918b24..00000000 --- a/src/org/apollo/tools/NoteUpdater.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.apollo.tools; - -import java.io.BufferedOutputStream; -import java.io.DataOutputStream; -import java.io.FileOutputStream; -import java.nio.file.Paths; -import java.util.HashMap; -import java.util.Map; - -import org.apollo.fs.IndexedFileSystem; -import org.apollo.fs.decoder.ItemDefinitionDecoder; -import org.apollo.game.model.def.ItemDefinition; - -import com.google.common.base.Preconditions; - -/** - * A tool for updating the note data. - * - * @author Graham - */ -public final class NoteUpdater { - - /** - * The entry point of the application. - * - * @param args The command line arguments. - * @throws Exception If an error occurs. - */ - public static void main(String[] args) throws Exception { - Preconditions.checkArgument(args.length == 1, "Usage:\njava -cp ... org.apollo.tools.NoteUpdater [release]."); - String release = args[0]; - - try (DataOutputStream os = new DataOutputStream(new BufferedOutputStream(new FileOutputStream("data/note-" + release - + ".dat"))); - IndexedFileSystem fs = new IndexedFileSystem(Paths.get("data/fs/", release), true)) { - ItemDefinitionDecoder decoder = new ItemDefinitionDecoder(fs); - ItemDefinition[] defs = decoder.decode(); - ItemDefinition.init(defs); - - os.writeShort(defs.length); - Map itemToNote = new HashMap<>(); - - for (int id = 0; id < defs.length; id++) { - ItemDefinition def = ItemDefinition.lookup(id); - if (def.isNote()) { - itemToNote.put(def.getNoteInfoId(), def.getId()); - } - } - - for (int id = 0; id < defs.length; id++) { - if (itemToNote.containsKey(id)) { - os.writeBoolean(true); // notable - os.writeShort(itemToNote.get(id)); - } else { - os.writeBoolean(false); // not notable - } - } - } - } - -} \ No newline at end of file