Rework clanmanmode attack option hiding (#746)

* A whole bunch of refactoring

* Api/mixins/injector additions for hiding attack options

* Rework clanmanmode attack hiding

* Update Client.java
This commit is contained in:
Lucwousin
2019-06-26 01:01:21 +02:00
committed by Kyleeld
parent ae6274a16f
commit 39a4cb2266
118 changed files with 2038 additions and 1955 deletions

View File

@@ -116,7 +116,7 @@ public class FriendSystem {
)
@Export("isFriended")
final boolean isFriended(Username var1, boolean var2) {
return var1 != null && (var1.__equals_466(Canvas.localPlayer.username) || this.friendsList.isFriended(var1, var2));
return var1 != null && (var1.equals(Canvas.localPlayer.username) || this.friendsList.isFriended(var1, var2));
}
@ObfuscatedName("g")
@@ -145,7 +145,7 @@ public class FriendSystem {
var10000 = null;
var4 = "Your friend list is full. Max of 200 for free users, and 400 for members";
WorldMapIcon1.method219(30, "", var4);
} else if(Canvas.localPlayer.username.__equals_466(var2)) {
} else if(Canvas.localPlayer.username.equals(var2)) {
var10000 = null;
var4 = "You can\'t add yourself to your own friend list";
WorldMapIcon1.method219(30, "", var4);
@@ -200,7 +200,7 @@ public class FriendSystem {
var10000 = null;
var4 = "Your ignore list is full. Max of 100 for free users, and 400 for members";
WorldMapIcon1.method219(30, "", var4);
} else if(Canvas.localPlayer.username.__equals_466(var2)) {
} else if(Canvas.localPlayer.username.equals(var2)) {
var10000 = null;
var4 = "You can\'t add yourself to your own ignore list";
WorldMapIcon1.method219(30, "", var4);
@@ -284,8 +284,8 @@ public class FriendSystem {
signature = "(Lkp;S)Z",
garbageValue = "-543"
)
@Export("__t_161")
final boolean __t_161(Username var1) {
@Export("isFriendAndHasWorld")
final boolean isFriendAndHasWorld(Username var1) {
Friend var2 = (Friend)this.friendsList.getByUsername(var1);
return var2 != null && var2.hasWorld();
}
@@ -299,7 +299,7 @@ public class FriendSystem {
Widget var3;
if(var0 >= 2000) {
var0 -= 1000;
var3 = Huffman.getWidget(Interpreter.Interpreter_intStack[--class179.Interpreter_intStackSize]);
var3 = Huffman.getWidget(Interpreter.Interpreter_intStack[--RouteStrategy.Interpreter_intStackSize]);
} else {
var3 = var2?WorldMapIcon1.__t_i:class12.__n_n;
}