Refined the loot system

Added more py scripts for krayt pearls and junk
Made system more flexible
This commit is contained in:
CharonInferar
2014-04-09 04:57:26 +02:00
parent 5dcd780195
commit 4d264f8c8a
32 changed files with 372 additions and 82 deletions
+10
View File
@@ -110,6 +110,16 @@ public class ScriptService {
return func;
}
public String fetchString(String path, String method) {
PyObject result = core.scriptService.callScript(path, "", method);
return ((PyObject)result).asString();
}
public int fetchInteger(String path, String method) {
PyObject result = core.scriptService.callScript(path, "", method);
return ((PyObject)result).asInt();
}
public Vector<String> fetchStringVector(String path, String method) {
Vector<String> vector = new Vector<String>();
PyObject result = core.scriptService.callScript(path, "", method);