Skip to content

Commit

Permalink
Candysword condition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignose committed Dec 1, 2023
1 parent d0afd92 commit bfbbb8c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/engine/outfit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,20 @@ export function avoidDaylightShavingsHelm(): boolean {
);
}

// eslint-disable-next-line libram/verify-constants
const candySword = $item`candy cane sword cane`;

function useCandyCaneSword(): boolean {
if (!have(candySword)) return false;
examine(candySword);
if (numericModifier(candySword, "weapon damage") < 115) return true;
return false;
}

export function baseOutfit(allowAttackingFamiliars = true): OutfitSpec {
// Only try equipping/nag LOV Epaulettes if we are done with the LOV tunnel
const lovTunnelCompleted = get("_loveTunnelUsed") || !get("loveTunnelAvailable");

// eslint-disable-next-line libram/verify-constants
const candySword = $item`candy cane sword cane`;

function useCandyCaneSword(): boolean {
if (!have(candySword)) return false;
examine(candySword);
if (numericModifier(candySword, "weapon damage") < 115) return true;
return false;
}

return {
weapon: useCandyCaneSword()
? candySword
Expand Down

0 comments on commit bfbbb8c

Please sign in to comment.