Skip to content

Commit

Permalink
runescape-client: export changedSkills and changedSkillsCount
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Apr 29, 2018
1 parent 6294d3c commit c489fdc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 7 additions & 5 deletions runescape-client/src/main/java/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,14 @@ public final class Client extends GameEngine implements class302 {
@ObfuscatedName("ng")
static long[] field1069;
@ObfuscatedName("ma")
static int[] field1040;
@Export("changedSkills")
static int[] changedSkills;
@ObfuscatedName("mw")
@ObfuscatedGetter(
intValue = 1955143427
)
static int field908;
@Export("changedSkillsCount")
static int changedSkillsCount;
@ObfuscatedName("mt")
@ObfuscatedGetter(
intValue = 185562589
Expand Down Expand Up @@ -1384,8 +1386,8 @@ public final class Client extends GameEngine implements class302 {
pendingVarbitCount = 0;
interfaceItemTriggers = new int[32];
field1032 = 0;
field1040 = new int[32];
field908 = 0;
changedSkills = new int[32];
changedSkillsCount = 0;
chatCycle = 0;
field1045 = 0;
field891 = 0;
Expand Down Expand Up @@ -3999,7 +4001,7 @@ final boolean method1309(NetWriter var1) {
}
}

field1040[++field908 - 1 & 31] = var5;
changedSkills[++changedSkillsCount - 1 & 31] = var5;
var1.serverPacket = null;
return true;
}
Expand Down
10 changes: 5 additions & 5 deletions runescape-client/src/main/java/WorldMapRectangle.java
Original file line number Diff line number Diff line change
Expand Up @@ -602,11 +602,11 @@ static final void method248(Widget[] var0, int var1, int var2, int var3, int var
var9.field2835 = Client.field1032;
}

if(var9.onStatTransmitListener != null && Client.field908 > var9.field2951) {
if(var9.statTransmitTriggers != null && Client.field908 - var9.field2951 <= 32) {
if(var9.onStatTransmitListener != null && Client.changedSkillsCount > var9.field2951) {
if(var9.statTransmitTriggers != null && Client.changedSkillsCount - var9.field2951 <= 32) {
label1136:
for(var46 = var9.field2951; var46 < Client.field908; ++var46) {
var22 = Client.field1040[var46 & 31];
for(var46 = var9.field2951; var46 < Client.changedSkillsCount; ++var46) {
var22 = Client.changedSkills[var46 & 31];

for(var23 = 0; var23 < var9.statTransmitTriggers.length; ++var23) {
if(var22 == var9.statTransmitTriggers[var23]) {
Expand All @@ -625,7 +625,7 @@ static final void method248(Widget[] var0, int var1, int var2, int var3, int var
Client.field1049.addFront(var40);
}

var9.field2951 = Client.field908;
var9.field2951 = Client.changedSkillsCount;
}

if(Client.chatCycle > var9.field2948 && var9.onChatTransmitListener != null) {
Expand Down

0 comments on commit c489fdc

Please sign in to comment.