From f10f4d7536e5f5eda5dfa999cb071ca2bd9ee200 Mon Sep 17 00:00:00 2001 From: Ignose Date: Tue, 20 Aug 2024 08:58:02 -0400 Subject: [PATCH] Appreciate Stacy for testing! --- src/engine/engine.ts | 19 +++++++++++++++++++ src/tasks/leveling.ts | 2 +- src/tasks/noncombat.ts | 3 ++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/engine/engine.ts b/src/engine/engine.ts index cf5afa4..499f7f2 100644 --- a/src/engine/engine.ts +++ b/src/engine/engine.ts @@ -13,6 +13,7 @@ import { uneffect, } from "libram"; import { + equippedAmount, Item, itemAmount, myFullness, @@ -230,6 +231,24 @@ export class Engine extends BaseEngine { if (task.combat !== undefined && myHp() < myMaxhp() * 0.9) useSkill($skill`Cannelloni Cocoon`); } + setChoices(task: Task, manager: PropertiesManager): void { + super.setChoices(task, manager); + if (equippedAmount($item`June cleaver`) > 0) { + this.propertyManager.setChoices({ + // June cleaver noncombats + 1467: 3, // +adv + 1468: get("_juneCleaverSkips", 0) < 5 ? 4 : 1, + 1469: !have($effect`yapping pal`) ? 1 : get("_juneCleaverSkips", 0) < 5 ? 4 : 1, + 1470: 2, // teacher's pen + 1471: get("_juneCleaverSkips", 0) < 5 ? 4 : 1, + 1472: !have($item`trampled ticket stub`) ? 1 : get("_juneCleaverSkips", 0) < 5 ? 4 : 2, + 1473: get("_juneCleaverSkips", 0) < 5 ? 4 : 2, + 1474: get("_juneCleaverSkips", 0) < 5 ? 4 : 2, + 1475: get("_juneCleaverSkips", 0) < 5 ? 4 : 1, + }); + } + } + initPropertiesManager(manager: PropertiesManager): void { super.initPropertiesManager(manager); const bannedAutoRestorers = [ diff --git a/src/tasks/leveling.ts b/src/tasks/leveling.ts index 7f46a03..eee12b0 100644 --- a/src/tasks/leveling.ts +++ b/src/tasks/leveling.ts @@ -1637,7 +1637,7 @@ export const LevelingQuest: Quest = { ...baseOutfit(), familiar: $familiar`Melodramedary`, }), - limit: { tries: 1 }, + limit: { tries: 2 }, post: (): void => { sendAutumnaton(); sellMiscellaneousItems(); diff --git a/src/tasks/noncombat.ts b/src/tasks/noncombat.ts index 8e81e59..7e6fd6e 100644 --- a/src/tasks/noncombat.ts +++ b/src/tasks/noncombat.ts @@ -79,7 +79,8 @@ export const NoncombatQuest: Quest = { }, { name: "Cincho: Party Soundtrack", - completed: () => have($effect`Party Soundtrack`) || !have($skill`Cincho: Party Soundtrack`), + completed: () => + have($effect`Party Soundtrack`) || !have($item`Cincho de Mayo`) || get("_cinchUsed") >= 40, do: (): void => { equip($slot`acc3`, $item`Cincho de Mayo`); useSkill($skill`Cincho: Party Soundtrack`);