Skip to content

Commit

Permalink
Add recipies and items
Browse files Browse the repository at this point in the history
  • Loading branch information
terrainwax committed Dec 16, 2023
1 parent 92b5633 commit e640266
Show file tree
Hide file tree
Showing 7 changed files with 153 additions and 0 deletions.
99 changes: 99 additions & 0 deletions resources/[qb]/qb-core/shared/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14876,4 +14876,103 @@ QBShared.Items = {
['description'] = 'Multipass',
['illustrator'] = '.'
},

-- Chateau Marius
['clafoutis_grappe'] = {
['name'] = 'clafoutis_grappe',
['label'] = 'Clafoutis aux raisins',
['weight'] = 300,
['type'] = 'food',
['durability'] = 14,
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Un clafoutis aux raisins, un délice !',
['nutrition'] = {
['hunger'] = 40,
['thirst'] = 0,
['stamina'] = 0,
['fiber'] = 1,
['lipid'] = 3,
['sugar'] = 5,
['protein'] = 2,
['alcohol'] = 0,
},
['illustrator'] = '.Terrainwax',
},
['gingerbread'] = {
['name'] = 'gingerbread',
['label'] = 'Pain d\'épice aux fruits confits',
['weight'] = 300,
['type'] = 'food',
['durability'] = 14,
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Délice épicé, danse fruitée dans chaque bouchée enchantée !',
['nutrition'] = {
['hunger'] = 40,
['thirst'] = 0,
['stamina'] = 0,
['fiber'] = 1,
['lipid'] = 3,
['sugar'] = 5,
['protein'] = 2,
['alcohol'] = 0,
},
['illustrator'] = '.Terrainwax',
},
['hot_wine'] = {
['name'] = 'hot_wine',
['label'] = 'Vin Chaud',
['weight'] = 300,
['type'] = 'drink',
['durability'] = 1,
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Élixir hivernal qui réchauffe les cœurs !',
['nutrition'] = {
['hunger'] = 0,
['thirst'] = 0,
['stamina'] = 0,
['fiber'] = 0,
['lipid'] = 0,
['sugar'] = 4,
['protein'] = 0,
['alcohol'] = 8,
},
['prop'] = {
model = 'p_wine_glass_s',
bone = 28422,
coords = { x = 0.01, y = -0.01, z = -0.01 },
},
['illustrator'] = '.Terrainwax',
},
['tartiflette'] = {
['name'] = 'tartiflette',
['label'] = 'Tartiflette',
['weight'] = 300,
['type'] = 'food',
['durability'] = 14,
['unique'] = false,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Étreinte fromagère entre pommes de terre rebondies et bacon croustillant.',
['nutrition'] = {
['hunger'] = 70,
['thirst'] = 0,
['stamina'] = 0,
['fiber'] = 1,
['lipid'] = 7,
['sugar'] = 0,
['protein'] = 5,
['alcohol'] = 0,
},
['illustrator'] = '.Terrainwax',
},
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions resources/[soz]/soz-core/src/shared/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export enum Feature {
Boat = 'Boat',
Easter = 'Easter',
NewHorizon = 'NewHorizon',
Winter = 'Winter',
}

export type Environment = 'development' | 'production' | 'test';
Expand Down Expand Up @@ -94,6 +95,11 @@ const FeatureConfig: Record<Feature, { [P in Environment]?: boolean }> = {
development: true,
test: true,
},
[Feature.Winter]: {
production: true,
development: true,
test: true,
},
};

export const isFeatureEnabled = (feature: Feature): boolean => {
Expand Down
48 changes: 48 additions & 0 deletions resources/[soz]/soz-core/src/shared/job/food.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,29 @@ export const FoodCraftsLists: Record<string, CraftCategory> = {
},
},
},
Patisseries: {
duration: 6000,
icon: '🥐',
event: 'job_cm_food_craft',
recipes: {
clafoutis_grappe: {
inputs: {
semi_skimmed_milk: { count: 1 },
grape1: { count: 2 }
},
amount: 2,
},
gingerbread: {
inputs: {
skimmed_milk: { count: 1 },
grape1: { count: 1 },
orange: { count: 1 },
lemon: { count: 1 }
},
amount: 2,
},
},
},
Saucissons: {
duration: 8000,
icon: '🌭',
Expand Down Expand Up @@ -249,6 +272,31 @@ export const FoodCraftsLists: Record<string, CraftCategory> = {
},
},
},
Hiver: {
feature: Feature.Winter,
duration: 5000,
icon: '❄️',
event: 'job_cm_food_craft',
recipes: {
hot_wine: {
inputs: {
grape1: { count: 1 },
grape2: { count: 1 },
grape3: { count: 1 },
grape4: { count: 1 }
},
amount: 1,
},
tartiflette: {
inputs: {
potato: { count: 2 },
cheese7: { count: 1 },
viande: { count: 1 }
},
amount: 1,
},
},
},
Halloween: {
feature: Feature.Halloween,
duration: 5000,
Expand Down

0 comments on commit e640266

Please sign in to comment.