Skip to content

Commit

Permalink
add two new food options
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Nov 21, 2024
1 parent 99e2654 commit 006ecc4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
4 changes: 3 additions & 1 deletion proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ enum WeaponImbue {
MagnificentTrollshine = 29;
}

// NextIndex: 13
// NextIndex: 14
enum Food {
FoodUnknown = 0;
FoodGrilledSquid = 1;
Expand All @@ -593,6 +593,8 @@ enum Food {
FoodTenderWolfSteak = 9;
FoodSmokedSagefish = 10;
FoodSagefishDelight = 11;
FoodDarkclawBisque = 12;
FoodSmokedRedgill = 13;
}

enum SaygesFortune {
Expand Down
8 changes: 8 additions & 0 deletions sim/core/consumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,14 @@ func applyFoodConsumes(character *Character, consumes *proto.Consumes) {
character.AddStats(stats.Stats{
stats.Strength: 10,
})
case proto.Food_FoodDarkclawBisque:
character.AddStats(stats.Stats{
stats.SpellDamage: 12,
})
case proto.Food_FoodSmokedRedgill:
character.AddStats(stats.Stats{
stats.HealingPower: 22,
})
}
}

Expand Down
16 changes: 12 additions & 4 deletions ui/core/components/inputs/consumables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,14 @@ export const makeFlasksInput = makeConsumeInputFactory({ consumesFieldName: 'fla
// FOOD
///////////////////////////////////////////////////////////////////////////

export const DarkclawBisque: ConsumableInputConfig<Food> = {
actionId: (player: Player<Spec>) => player.getMatchingItemActionId([{ id: 232436, minLevel: 45 }]),
value: Food.FoodDarkclawBisque,
};
export const SmokedRedgill: ConsumableInputConfig<Food> = {
actionId: (player: Player<Spec>) => player.getMatchingItemActionId([{ id: 232438, minLevel: 45 }]),
value: Food.FoodSmokedRedgill,
};
export const DirgesKickChimaerokChops: ConsumableInputConfig<Food> = {
actionId: (player: Player<Spec>) => player.getMatchingItemActionId([{ id: 21023, minLevel: 55 }]),
value: Food.FoodDirgesKickChimaerokChops,
Expand All @@ -347,14 +355,12 @@ export const GrilledSquid: ConsumableInputConfig<Food> = {
actionId: (player: Player<Spec>) => player.getMatchingItemActionId([{ id: 13928, minLevel: 50 }]),
value: Food.FoodGrilledSquid,
};
// Original lvl 50 not obtainable in Phase 3
export const SmokedDesertDumpling: ConsumableInputConfig<Food> = {
actionId: (player: Player<Spec>) => player.getMatchingItemActionId([{ id: 20452, minLevel: 51 }]),
actionId: (player: Player<Spec>) => player.getMatchingItemActionId([{ id: 20452, minLevel: 50 }]),
value: Food.FoodSmokedDesertDumpling,
};
// Original lvl 45 not obtainable in Phase 3
export const RunnTumTuberSurprise: ConsumableInputConfig<Food> = {
actionId: (player: Player<Spec>) => player.getMatchingItemActionId([{ id: 18254, minLevel: 51 }]),
actionId: (player: Player<Spec>) => player.getMatchingItemActionId([{ id: 18254, minLevel: 45 }]),
value: Food.FoodRunnTumTuberSurprise,
};
export const BlessSunfruit: ConsumableInputConfig<Food> = {
Expand Down Expand Up @@ -388,6 +394,8 @@ export const SmokedSagefish: ConsumableInputConfig<Food> = {

// Ordered by level
export const FOOD_CONFIG: ConsumableStatOption<Food>[] = [
{ config: DarkclawBisque, stats: [Stat.StatSpellDamage] },
{ config: SmokedRedgill, stats: [Stat.StatHealingPower] },
{ config: DirgesKickChimaerokChops, stats: [Stat.StatStamina] },
{ config: GrilledSquid, stats: [Stat.StatAgility] },
{ config: SmokedDesertDumpling, stats: [Stat.StatStrength] },
Expand Down

0 comments on commit 006ecc4

Please sign in to comment.