Skip to content

Commit

Permalink
Only get hot-headed if worth
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignose committed Oct 19, 2023
1 parent 27bed72 commit 7cda954
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
Item,
itemAmount,
lastChoice,
mallPrice,
monkeyPaw,
mpCost,
myBasestat,
Expand Down Expand Up @@ -56,6 +57,7 @@ import {
import { printModtrace } from "libram/dist/modifier";
import { forbiddenEffects } from "./resources";
import { mainStat } from "./combat";
import { ShuffleTruffle } from "libram/dist/resources/2013/Florist";

export const startingClan = getClanName();

Expand Down Expand Up @@ -630,3 +632,15 @@ export function checkLocketAvailable(): number {

return locketAvailable;
}

/*
export function checkValue(resource: Item): boolean {
if(mallPrice(resource) > get("valueOfAdventure") * expectedTurnSave(resource))
return true;
return false;
}
export function expectedTurnSave(resource: Item): number {
const myValue = 5 * resource;
return myValue;
}*/
4 changes: 3 additions & 1 deletion src/tasks/hotres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const HotResQuest: Quest = {
$effect`Egged On`,
$effect`Elemental Saucesphere`,
$effect`Feeling Peaceful`,
$effect`Hot-Headed`,
// $effect`Hot-Headed`,
$effect`Rainbowolin`,

// Famwt Buffs
Expand All @@ -157,6 +157,8 @@ export const HotResQuest: Quest = {
useFamiliar($familiar`Exotic Parrot`);
use($item`box of Familiar Jacks`, 1);
}

if (CommunityService.HotRes.actualCost() >= 7) tryAcquiringEffect($effect`Hot-Headed`);
},
completed: () => CommunityService.HotRes.isDone(),
do: (): void => {
Expand Down

0 comments on commit 7cda954

Please sign in to comment.