FIx typo, no more pies

This commit is contained in:
Dev 2023-04-23 13:44:15 +01:00
parent 9f8bfae75d
commit 9fff59f464
2 changed files with 9 additions and 9 deletions

View File

@ -458,11 +458,11 @@ export class HideoutController
* Add generated scav case rewards to player profile * Add generated scav case rewards to player profile
* @param pmcData player profile to add rewards to * @param pmcData player profile to add rewards to
* @param rewards reward items to add to profile * @param rewards reward items to add to profile
* @param recipieId recipie id to save into Production dict * @param recipeId recipe id to save into Production dict
*/ */
protected addScavCaseRewardsToProfile(pmcData: IPmcData, rewards: Product[], recipieId: string): void protected addScavCaseRewardsToProfile(pmcData: IPmcData, rewards: Product[], recipeId: string): void
{ {
pmcData.Hideout.Production[`ScavCase${recipieId}`] = { pmcData.Hideout.Production[`ScavCase${recipeId}`] = {
Products: rewards Products: rewards
}; };
} }
@ -500,7 +500,7 @@ export class HideoutController
const recipe = this.databaseServer.getTables().hideout.production.find(r => r._id === request.recipeId); const recipe = this.databaseServer.getTables().hideout.production.find(r => r._id === request.recipeId);
if (recipe) if (recipe)
{ {
return this.handleRecipie(sessionID, recipe, pmcData, request, output); return this.handleRecipe(sessionID, recipe, pmcData, request, output);
} }
const scavCase = this.databaseServer.getTables().hideout.scavcase.find(r => r._id === request.recipeId); const scavCase = this.databaseServer.getTables().hideout.scavcase.find(r => r._id === request.recipeId);
@ -515,15 +515,15 @@ export class HideoutController
} }
/** /**
* Take recipie-type production out of hideout area and place into player inventory * Take recipe-type production out of hideout area and place into player inventory
* @param sessionID Session id * @param sessionID Session id
* @param recipe Completed recipie of item * @param recipe Completed recipe of item
* @param pmcData Player profile * @param pmcData Player profile
* @param request Remove production from area request * @param request Remove production from area request
* @param output Output object to update * @param output Output object to update
* @returns IItemEventRouterResponse * @returns IItemEventRouterResponse
*/ */
protected handleRecipie(sessionID: string, recipe: IHideoutProduction, pmcData: IPmcData, request: IHideoutTakeProductionRequestData, output: IItemEventRouterResponse): IItemEventRouterResponse protected handleRecipe(sessionID: string, recipe: IHideoutProduction, pmcData: IPmcData, request: IHideoutTakeProductionRequestData, output: IItemEventRouterResponse): IItemEventRouterResponse
{ {
// Variables for managemnet of skill // Variables for managemnet of skill
let craftingExpAmount = 0; let craftingExpAmount = 0;
@ -619,7 +619,7 @@ export class HideoutController
// Remove the old production from output object before its sent to client // Remove the old production from output object before its sent to client
delete output.profileChanges[sessionID].production[request.recipeId]; delete output.profileChanges[sessionID].production[request.recipeId];
// Handle the isEncoded flag from recipie // Handle the isEncoded flag from recipe
if (recipe.isEncoded) if (recipe.isEncoded)
{ {
const upd: Upd = { const upd: Upd = {

View File

@ -89,7 +89,7 @@ export class RagfairAssortGenerator
continue; continue;
} }
results.push(this.createRagfairAssortItem(item._id, item._id)); // tplid and id must be the same so hideout recipie reworks work results.push(this.createRagfairAssortItem(item._id, item._id)); // tplid and id must be the same so hideout recipe reworks work
} }
for (const weapon of weaponPresets) for (const weapon of weaponPresets)