Skip to content

Commit

Permalink
Peace Turkey Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignose committed Dec 14, 2024
1 parent f204c3c commit ec9b3f1
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion packages/garbo/src/familiar/constantValueFamiliars.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import { Familiar, holiday, myAdventures } from "kolmafia";
import {
Familiar,
familiarWeight,
holiday,
myAdventures,
squareRoot,
} from "kolmafia";
import {
$effect,
$familiar,
$item,
$items,
clamp,
findLeprechaunMultiplier,
get,
getActiveEffects,
getModifier,
have,
Expand Down Expand Up @@ -117,8 +124,23 @@ const standardFamiliars: ConstantValueFamiliar[] = [
familiar: $familiar`quantum entangler`,
value: () => garboValue($item`quantized familiar experience`) / 11,
},
{
familiar: $familiar`Peace Turkey`,
value: () =>
get("peaceTurkeyIndex") === 0 || get("peaceTurkeyIndex") === 3
? garboValue($item`whirled peas`) * peaceTurkeyDropChance()
: get("peaceTurkeyIndex") === 4
? garboValue($item`piece of cake`) * peaceTurkeyDropChance()
: get("peaceTurkeyIndex") === 6
? garboValue($item`peace shooter`) * peaceTurkeyDropChance()
: 0,
},
];

function peaceTurkeyDropChance(): number {
return 0.24 + squareRoot(familiarWeight($familiar`Peace Turkey`));
}

export default function getConstantValueFamiliars(
mode: "barf" | "free" | "target",
): GeneralFamiliar[] {
Expand Down

0 comments on commit ec9b3f1

Please sign in to comment.