addFriend() and removeFriend() functionality

This commit is contained in:
Visne
2019-07-07 23:47:12 +02:00
parent f8003f1d03
commit f5a56e0b17
5 changed files with 34 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ public class FontName {
return 1;
} else if (var0 == 3605) {
var4 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
WorldMapArea.friendSystem.method103(var4);
WorldMapArea.friendSystem.addFriend(var4);
return 1;
} else if (var0 == 3606) {
var4 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];

View File

@@ -129,7 +129,8 @@ public class FriendSystem {
signature = "(Ljava/lang/String;I)V",
garbageValue = "-1721017960"
)
final void method103(String var1) {
@Export("addFriend")
final void addFriend(String var1) {
if (var1 != null) {
Username var2 = new Username(var1, this.loginType);
if (var2.hasCleanName()) {