Skip to content

Commit

Permalink
Appreciate Stacy for testing!
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignose committed Aug 20, 2024
1 parent 2a673de commit f10f4d7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
19 changes: 19 additions & 0 deletions src/engine/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
uneffect,
} from "libram";
import {
equippedAmount,
Item,
itemAmount,
myFullness,
Expand Down Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/leveling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ export const LevelingQuest: Quest = {
...baseOutfit(),
familiar: $familiar`Melodramedary`,
}),
limit: { tries: 1 },
limit: { tries: 2 },
post: (): void => {
sendAutumnaton();
sellMiscellaneousItems();
Expand Down
3 changes: 2 additions & 1 deletion src/tasks/noncombat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit f10f4d7

Please sign in to comment.