Project Zomboid

Project Zomboid

59 ratings
[B42] Portion Sizes (Fish Fillets)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
124.861 KB
29 Dec, 2024 @ 7:17pm
4 Feb @ 11:04am
6 Change Notes ( view )

Subscribe to download
[B42] Portion Sizes (Fish Fillets)

Description
As of 42.2: TIS implemented the long unexposed "HalveFillet" recipe that did not actually halve nutrition. For now, I've overwritten it with the proper fix, which leaves some duplicate recipes in the crafting log.


Obtain eldritch knowledge of cutting up a fish you just cut up two seconds prior.
Adds three recipes to process fish beyond initial filleting of whole fish.
  • Halve fillet: Efficiently cut two equal fillets from a larger piece of fish.
  • Portion Fillet: Efficiently cut a meal-sized fillet from a larger piece of fish.
  • Trim Fillet: Attempt to cut inedible bits of fish from a heavier piece.
    • An inexperienced chef may accidentally waste up to a third of edible fish.
    • Using a dull knife (or worse, a sharp rock) could waste even more.

I tried to keep somewhat close to TIS's apparent vision for fishing and fish weights. Trimmed fish is still relatively heavy compared to other food sources, but now you can use more than a single fish fillet in a salad before your knees buckle under the weight.

Workshop ID: 3395624315
Mod ID: PortionSizes
37 Comments
ScrubLife 29 Jun @ 9:59am 
Doesn't show up in the in-game mod list.
LemonPoppyMuffin 18 May @ 2:49am 
Mod author please update the mod with Aryath's fix.
Aryath 26 Apr @ 5:30am 
Step 2 - final
wastedPercent = ZombRand(100) / 100
if(character:getTraits():contains("Lucky")) then
wastedPercent = math.min(wastedPercent, ZombRand(100) / 100)
end
waste = wastedPercent * waste

The actual wasted amount depends on luck, and is 0-100% of the preliminary value. If you have the 'Lucky' trait, you get 2 rolls and take the lower one. The final value cannot be greater than the preliminary one.
Aryath 26 Apr @ 5:29am 
How the waste % of 'Trim Fillet' is calculated:

Step 1 - preliminary
waste = 0.3 - (skill * 0.06) + knifeWaste
knifeWaste = 0.2
if(knife:hasSharpness()) then knifeWaste = (1 - knife:getSharpness()) * 0.15

That means base waste is 30%, any knife that has no sharpness will add 20%, and any knife that has sharpness will add 0-15% depending on the sharpness.

That all is counteracted by the Cooking Skill. At level 9 you will reduce 54% waste. That means at level 9 you won't waste any fish (except the rounding down that is used), even if you use a knife without sharpness, e.g. a Sharp Flint or a Stone Knife.
Aryath 26 Apr @ 3:44am 
Okay, so that bug is actually really easy to fix:

In steamapps\workshop\content\108600\3395624315\mods\PortionSizes\42\media\scripts
edit PortionSizes_recipes.txt and recipes.txt

In 'inputs' change
item 1 [Base.FishFillet] flags[InheritFoodAge],
to
item 1 [Base.FishFillet] flags[InheritCooked;InheritFoodAge;ItemCount],

Using 'ItemCount' will use the whole item instead of 1 Use / 1 Hunger. (And 'InheritCooked' will output a cooked fish fillet when the input is cooked)
Aryath 23 Apr @ 12:15pm 
I just tried out this mod and did some testing.

As mentioned by the previous comment (2nd April), these recipes seem to not work as intended. As far as I can tell, instead of destroying the original Fish Fillet, the recipe instead only destroyes "1 Use" (that means 1 Hunger) of the original Fish Fillet, which is then kept in inventory with the same amount of calories/nutrition. That means unfortunately all 3 recipes duplicate your fish fillets.

As of 42.7 the vanilla recipe "HalveFillet" is still broken, too.
🔰 2 Apr @ 2:20pm 
seems to be a vanilla issue. vanilla recipe (with this mod disabled) does the same. as does curing fish with salt (another mod i think). no matter what recipe, fish is just not getting used up.
🔰 2 Apr @ 2:07pm 
just catched my first fish and it seems that its easier a vanilla issue or some mod incompatibility or something but i got a 6k calory fish. i sliced it and got 2 pieces with 3k calories but the original fish with 6k got kept and i could infinitely slice it. then halving the fillets would yield 2 more with 3k while keeping the original and trimming added 1 more with 3k calories while keeping the original. basically no matter which option i chose, i can infinitely get more fish with all of them
Draco 10 Mar @ 12:25am 
I know it is a bit out of scope, but getting scraps for making stock, would be cool. Thay way, you can recycle some of that wasted stuff into flavor.
McDiel 19 Feb @ 2:19pm 
HalveFillet is *Vanilla*!? My god. Thank you for the mod, hope they fix that x.x