Skip to content

Commit

Permalink
Fixed incorrect type on applyEdibleEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
Chomp committed Feb 7, 2025
1 parent 66dfc83 commit 0dbc197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/src/controllers/HealthController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { InventoryHelper } from "@spt/helpers/InventoryHelper";
import { ItemHelper } from "@spt/helpers/ItemHelper";
import { IPmcData } from "@spt/models/eft/common/IPmcData";
import { IBodyPartHealth, ICurrentMax } from "@spt/models/eft/common/tables/IBotBase";
import { IEffectsHealthProps } from "@spt/models/eft/common/tables/ITemplateItem";
import { IBodyPart, IHealthTreatmentRequestData } from "@spt/models/eft/health/IHealthTreatmentRequestData";
import { IOffraidEatRequestData } from "@spt/models/eft/health/IOffraidEatRequestData";
import { IOffraidHealRequestData } from "@spt/models/eft/health/IOffraidHealRequestData";
Expand Down Expand Up @@ -179,7 +180,7 @@ export class HealthController {

return output;

function applyEdibleEffect(bodyValue: ICurrentMax, consumptionDetails: Record<string, number>) {
function applyEdibleEffect(bodyValue: ICurrentMax, consumptionDetails: IEffectsHealthProps) {
if (foodIsSingleUse) {
// Apply whole value from passed in parameter
bodyValue.Current += consumptionDetails.value;
Expand Down

0 comments on commit 0dbc197

Please sign in to comment.