From 667ef9363742e1a1bc6352aed4d1af818ce2e220 Mon Sep 17 00:00:00 2001 From: anima Date: Thu, 12 Nov 2026 22:14:32 +0100 Subject: [PATCH] int upgrade --- js/12.int-base.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/js/12.int-base.js b/js/12.int-base.js index e69de29..8eca245 100644 --- a/js/12.int-base.js +++ b/js/12.int-base.js @@ -0,0 +1,9 @@ +async function apply_int() { + await smart_move(find_npc("newupgrade")); + var slot = character.items.findIndex(function (item) { + return item && item.name === "coat" && (item.level || 0) === 0 && !item.stat_type && !item.l; + }); + var scroll = locate_item("intscroll"); + if (slot === -1 || scroll === -1) return; + await upgrade(slot, scroll); +} \ No newline at end of file