Skip to content

Commit

Permalink
Sausage Goblin/Save a Free Banish
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignose committed Dec 12, 2023
1 parent 52b567c commit c43ec8b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
27 changes: 19 additions & 8 deletions src/combat.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mpCost, myPrimestat, toInt } from "kolmafia";
import { $item, $skill, $stat, get, have, StrictMacro } from "libram";
import { $item, $monster, $skill, $stat, get, have, StrictMacro } from "libram";

//export const mainStat = myClass().primestat;
export const mainStat = myPrimestat(); //Update to select mainstat based on class derived from Libram
Expand Down Expand Up @@ -48,13 +48,24 @@ export default class Macro extends StrictMacro {
}

itemDrop(): Macro {
return Macro.trySkill($skill`Bowl Straight Up`)
.trySkill($skill`Become a Bat`)
.trySkill($skill`Feel Hatred`)
.trySkill($skill`Reflex Hammer`)
.trySkill($skill`Throw Latte on Opponent`)
.trySkill($skill`KGB tranquilizer dart`)
.trySkill($skill`Snokebomb`);
return (
Macro.if_(
$monster`sausage goblin`,
Macro.trySkill($skill`Bowl Straight Up`)
.trySkill($skill`Become a Bat`)
.default(false)
),
Macro.if_(
$monster`fluffy bunny`,
Macro.trySkill($skill`Bowl Straight Up`)
.trySkill($skill`Become a Bat`)
.trySkill($skill`Feel Hatred`)
.trySkill($skill`Reflex Hammer`)
.trySkill($skill`Throw Latte on Opponent`)
.trySkill($skill`KGB tranquilizer dart`)
.trySkill($skill`Snokebomb`)
)
);
}

static itemDrop(): Macro {
Expand Down
6 changes: 5 additions & 1 deletion src/tasks/boozedrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {
$slot,
CommunityService,
get,
getKramcoWandererChance,
have,
uneffect,
withChoice,
Expand Down Expand Up @@ -131,7 +132,10 @@ export const BoozeDropQuest: Quest = {
combat: new CombatStrategy().macro(Macro.itemDrop().abort()),
outfit: {
back: $item`vampyric cloake`,
offhand: $item`latte lovers member's mug`,
offhand:
getKramcoWandererChance() >= 1.0
? $item`Kramco Sausage-o-Matic™`
: $item`latte lovers member's mug`,
acc1: $item`Kremlin's Greatest Briefcase`,
acc2: $item`Lil' Doctor™ bag`,
familiar: chooseFamiliar(false),
Expand Down

0 comments on commit c43ec8b

Please sign in to comment.