Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      Server Move   09/13/18

      I (Dries007) have recently taken over as main developer and server admin. This involved moving servers to reduce cost. It's likely there will be some more downtime in the future but most  things should be sorted by now. This forum is in dire need of replacement as the software is quite old and can't be easily updated. If you wish to discuss or stay updated, join our discord: https://invite.gg/terrafirmacraft. The forum will remain available to read, but will be locked in the future, when a new system is setup. The forum and wiki are now ad free. If you'd like to contribute to keeping it that way, you can do so via paypal or patreon.
sidyll

Understanding Taste Calculation

2 posts in this topic

I've finally reached master level in cooking, and I can now see the precise taste offsets. However I'm still having trouble understanding the calculations. Focusing only in sweetness, i.e., I've prepared a sandwich with the following recipes:

A: [-21, -21, -21, -21, 29] => 29
B: [-21, -21, -21, 29] => 29

Both resulted in the same sweetness value, even with one ingredient removed. I have checked past posts such as "Help with Meals", which contains an excellent explanation by Kittychanley. Yet, I'm unable to visualize how an addition of taste values would achieve this result.

With the hope to reduce the test case, I tried two salads:

C: [-21, 29]  => 29
D: [-21, -21] => -21

Again, seems like negative offsets are somewhat ignored. Which contradicts anything I could imagine. I wonder if someone could help enlightening me about this. Thank you in advance!

0

Share this post


Link to post
Share on other sites

I checked TFC source code and the combineTastes method of the TEFoodPrep class (which is used in both sandwiches and salads) does in fact use a simple addition with no regards to food weight or anything.

So I think I have figured it out. Considering the offset shown is foodValue - myPreferredValue, there is a number for this subtraction result which could satisfy the prepared food equation: 0. Plain zero.

In other words, my preferred taste for sweetness is probably 21. So, foods with -21 offset make no diference in the final taste at all.

Sorry, had I investigated a little further I would have understood it by myself prior to posting the question.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now