Skip to content

Commit

Permalink
Update 161
Browse files Browse the repository at this point in the history
  • Loading branch information
Runelite auto updater committed Jan 18, 2018
1 parent a8a9421 commit a6b7efb
Show file tree
Hide file tree
Showing 306 changed files with 41,392 additions and 41,269 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<checkstyle.skip>true</checkstyle.skip>
<archetype.test.skip>true</archetype.test.skip>

<rs.version>160</rs.version>
<rs.version>161</rs.version>
</properties>

<licenses>
Expand Down
169 changes: 147 additions & 22 deletions runescape-client/src/main/java/AbstractByteBuffer.java
Original file line number Diff line number Diff line change
@@ -1,53 +1,178 @@
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.Reflection;

@ObfuscatedName("gd")
@ObfuscatedName("gj")
@Implements("AbstractByteBuffer")
public abstract class AbstractByteBuffer {
@ObfuscatedName("w")
@ObfuscatedName("v")
@Export("directBufferUnavailable")
static boolean directBufferUnavailable;
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = 924680797
)
static int field2534;

static {
directBufferUnavailable = false;
}

@ObfuscatedName("a")
@ObfuscatedName("n")
@ObfuscatedSignature(
signature = "(I)[B",
garbageValue = "1971888309"
garbageValue = "-894891569"
)
@Export("get")
abstract byte[] get();

@ObfuscatedName("w")
@ObfuscatedName("v")
@ObfuscatedSignature(
signature = "([BI)V",
garbageValue = "-1446419567"
signature = "([BB)V",
garbageValue = "36"
)
@Export("put")
abstract void put(byte[] var1);

@ObfuscatedName("v")
@ObfuscatedName("n")
@ObfuscatedSignature(
signature = "(Ljava/lang/CharSequence;I)Z",
garbageValue = "1294510516"
)
public static boolean method3585(CharSequence var0) {
boolean var2 = false;
boolean var3 = false;
int var4 = 0;
int var5 = var0.length();
int var6 = 0;

boolean var1;
while(true) {
if(var6 >= var5) {
var1 = var3;
break;
}

label82: {
char var7 = var0.charAt(var6);
if(var6 == 0) {
if(var7 == '-') {
var2 = true;
break label82;
}

if(var7 == '+') {
break label82;
}
}

int var9;
if(var7 >= '0' && var7 <= '9') {
var9 = var7 - '0';
} else if(var7 >= 'A' && var7 <= 'Z') {
var9 = var7 - '7';
} else {
if(var7 < 'a' || var7 > 'z') {
var1 = false;
break;
}

var9 = var7 - 'W';
}

if(var9 >= 10) {
var1 = false;
break;
}

if(var2) {
var9 = -var9;
}

int var8 = var4 * 10 + var9;
if(var4 != var8 / 10) {
var1 = false;
break;
}

var4 = var8;
var3 = true;
}

++var6;
}

return var1;
}

@ObfuscatedName("r")
@ObfuscatedSignature(
signature = "(IZII)V",
garbageValue = "-1628995904"
signature = "(Ljava/lang/String;I)Ljava/lang/Class;",
garbageValue = "2072775809"
)
public static final void method3518(int var0, boolean var1, int var2) {
if(var0 >= 8000 && var0 <= 48000) {
ScriptState.sampleRate = var0;
ContextMenuRow.highMemory = var1;
class218.priority = var2;
@Export("loadClassFromDescriptor")
public static Class loadClassFromDescriptor(String var0) throws ClassNotFoundException {
return var0.equals("B")?Byte.TYPE:(var0.equals("I")?Integer.TYPE:(var0.equals("S")?Short.TYPE:(var0.equals("J")?Long.TYPE:(var0.equals("Z")?Boolean.TYPE:(var0.equals("F")?Float.TYPE:(var0.equals("D")?Double.TYPE:(var0.equals("C")?Character.TYPE:(var0.equals("void")?Void.TYPE:Reflection.findClass(var0)))))))));
}

@ObfuscatedName("a")
@ObfuscatedSignature(
signature = "(III)I",
garbageValue = "1182548485"
)
@Export("adjustHSLListness0")
static final int adjustHSLListness0(int var0, int var1) {
if(var0 == -2) {
return 12345678;
} else if(var0 == -1) {
if(var1 < 2) {
var1 = 2;
} else if(var1 > 126) {
var1 = 126;
}

return var1;
} else {
throw new IllegalArgumentException();
var1 = (var0 & 127) * var1 / 128;
if(var1 < 2) {
var1 = 2;
} else if(var1 > 126) {
var1 = 126;
}

return (var0 & 65408) + var1;
}
}

@ObfuscatedName("ht")
@ObfuscatedSignature(
signature = "(I)V",
garbageValue = "-737731321"
)
static final void method3583() {
for(PendingSpawn var0 = (PendingSpawn)Client.pendingSpawns.getFront(); var0 != null; var0 = (PendingSpawn)Client.pendingSpawns.getNext()) {
if(var0.hitpoints > 0) {
--var0.hitpoints;
}

if(var0.hitpoints == 0) {
if(var0.field1140 < 0 || class254.method4507(var0.field1140, var0.field1142)) {
class40.method540(var0.level, var0.type, var0.x, var0.y, var0.field1140, var0.field1141, var0.field1142);
var0.unlink();
}
} else {
if(var0.delay > 0) {
--var0.delay;
}

if(var0.delay == 0 && var0.x >= 1 && var0.y >= 1 && var0.x <= 102 && var0.y <= 102 && (var0.id < 0 || class254.method4507(var0.id, var0.field1145))) {
class40.method540(var0.level, var0.type, var0.x, var0.y, var0.id, var0.orientation, var0.field1145);
var0.delay = -1;
if(var0.id == var0.field1140 && var0.field1140 == -1) {
var0.unlink();
} else if(var0.id == var0.field1140 && var0.field1141 == var0.orientation && var0.field1142 == var0.field1145) {
var0.unlink();
}
}
}
}

}
}
4 changes: 2 additions & 2 deletions runescape-client/src/main/java/AbstractIntegerNode0.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;

@ObfuscatedName("do")
@ObfuscatedName("dy")
@Implements("AbstractIntegerNode0")
public abstract class AbstractIntegerNode0 extends Node {
@ObfuscatedName("z")
@ObfuscatedName("d")
@Export("int1")
int int1;
}
Loading

0 comments on commit a6b7efb

Please sign in to comment.