Deliver claimed item rewards through planetary profiles

This commit is contained in:
unimatrixgit 2026-12-05 19:35:22 +01:00
commit 54aa55b2a1

View file

@ -53,10 +53,11 @@ class GoldenPathMerge implements Opcodes {
hook.add(new VarInsnNode(ALOAD, 0));
loadField(old, hook, "api", JARVIS + "SharedGameApi");
loadField(old, hook, "exchangeInventory", JARVIS + "ExchangeInventory");
loadField(old, hook, "serverKey", "java/lang/String");
hook.add(call(JARVIS + "LetoQuestRewards", "register",
"(" + PLUGIN + "L" + JARVIS + "SharedGameApi;L" + JARVIS + "ExchangeInventory;)V"));
"(" + PLUGIN + "L" + JARVIS + "SharedGameApi;L" + JARVIS + "ExchangeInventory;Ljava/lang/String;)V"));
enable.instructions.insert(fieldWrite(enable, old.name, "questObservations", PUTFIELD), hook);
enable.maxStack = Math.max(enable.maxStack, 3);
enable.maxStack = Math.max(enable.maxStack, 4);
}
default -> throw new IllegalArgumentException("Unexpected quest graft target " + old.name);
}