Implement heartlink invite

This commit is contained in:
Melledy
2025-11-25 22:33:25 -08:00
parent e529e8e965
commit fd8e8925ca
17 changed files with 484 additions and 12 deletions
@@ -25,6 +25,7 @@ import emu.nebula.game.quest.QuestCondType;
import emu.nebula.net.NetMsgId;
import emu.nebula.proto.Notify.Skin;
import emu.nebula.proto.Notify.SkinChange;
import emu.nebula.proto.Public.AffinityInfo;
import emu.nebula.proto.Public.Char;
import emu.nebula.proto.Public.CharGemPreset;
import emu.nebula.proto.Public.CharGemSlot;
@@ -861,6 +862,15 @@ public class GameCharacter implements GameDatabaseObject {
return proto;
}
public AffinityInfo getAffinityProto() {
var proto = AffinityInfo.newInstance()
.setCharId(this.getCharId())
.setAffinityLevel(this.getAffinityLevel())
.setAffinityExp(this.getAffinityExp());
return proto;
}
// Database fix
@PreLoad