Difference between revisions of "Talk:Pig"

From Stardew Valley Wiki
Jump to navigation Jump to search
Line 62: Line 62:
 
:Truffle Oil sells for a lot more than Mayonnaise, and a pig is capable of producing multiple Truffles in a day. So while there are a lot of days they don't produce, they more than make up for it in the days they do produce. It still might be interesting and informative to include your data, but I have nothing to add in terms of critiquing its accuracy or suggesting how it might be included. [[User:Zendowolf|Zendowolf]] ([[User talk:Zendowolf|talk]]) 03:49, 5 March 2022 (UTC)
 
:Truffle Oil sells for a lot more than Mayonnaise, and a pig is capable of producing multiple Truffles in a day. So while there are a lot of days they don't produce, they more than make up for it in the days they do produce. It still might be interesting and informative to include your data, but I have nothing to add in terms of critiquing its accuracy or suggesting how it might be included. [[User:Zendowolf|Zendowolf]] ([[User talk:Zendowolf|talk]]) 03:49, 5 March 2022 (UTC)
 
::Rough numbers: I have 10 fully-friended pigs in a Deluxe Barn that, over time, produce 15 Truffles on producing days (in my experience), with 34 oil makers at hand. So, 15 Truffle Oil sells for 15,975g (with Artisan skill). In 68 producing days (one year) that comes to about 1,088,000g. That's equivalent to 3817 gold Mayonnaise. I think 10 Chickens can produce a maximum of 1120 eggs a year (one per day per chicken). Seems to fall far short of Truffles' potential, even if there are some extra eggs. [[User:Giles|Giles]] ([[User talk:Giles|talk]]) 05:46, 5 March 2022 (UTC)
 
::Rough numbers: I have 10 fully-friended pigs in a Deluxe Barn that, over time, produce 15 Truffles on producing days (in my experience), with 34 oil makers at hand. So, 15 Truffle Oil sells for 15,975g (with Artisan skill). In 68 producing days (one year) that comes to about 1,088,000g. That's equivalent to 3817 gold Mayonnaise. I think 10 Chickens can produce a maximum of 1120 eggs a year (one per day per chicken). Seems to fall far short of Truffles' potential, even if there are some extra eggs. [[User:Giles|Giles]] ([[User talk:Giles|talk]]) 05:46, 5 March 2022 (UTC)
 +
:::Here's where I'm at: it took almost an hour for me to understand the equation and double-check it against the [[Modding:Weather data]] page. The math seem to check out, within a day of accuracy. (Note that the variable x was changed to n in the equation, but not in the text.) So, if we decide it's worth including on the page, how do we condense the equation into something that can be typed on the wiki, and something that doesn't take 30 minutes to understand? For a bit of trivia about the average number of days a pig might be outside, I'm not sure it's worth it. One player's experience may vary quite a bit from the expected numbers; it's only over time that the numbers prove themselves. [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 19:26, 5 March 2022 (UTC)

Revision as of 19:26, 5 March 2022

This talk page is for discussing Pig.
  • Sign and date your posts by typing four tildes (~~~~).
  • Put new text below old text.
  • Be polite.
  • Assume good faith.
  • Don't delete discussions.

Truffles Per Day

The statement that the average amount of truffles in a day is three for a max happiness pig comes from the claim that the first truffle is pretty much guaranteed and susequent ones have a likeleyhood of 1000/1500 or 2/3.

The first truffle therefore has probalility 1 while the second one has 2/3, the third (2/3)^2 the fourth (2/3)^3 etc.

The average amount of truffles then becomes an infinite geometric series.

1 + 2/3 + (2/3)^2 + (2/3)^3 +....

We call this S and perform some calculations:

S = 1 + 2/3 + (2/3)^2 + (2/3)^3 +....

S*(2/3) = 2/3 + (2/3)^2 + (2/3)^3 + (2/3)^4 +....

S - S*(2/3) = S*(1/3) = 1

S = 3

I did this same calculation and arrived at 2.5 at first becuase I did 1000/1500 in my head and somehow got 3/5. This should be right though. Viktor36 (talk) 22:44, 17 May 2021 (UTC)

Hi Viktor36, I have a question, so I was attempting to make a program to calculate the amount of truffles for a given friendship and I got 3 EXTRA truffles at max happiness, whereas you got 3 total truffles, I am not good at math but when I was looking at your calculations I noticed that between the
S = 1 + 2/3 + (2/3)^2...
Step and the
S*2/3 = 2/3 + (2/3)^2...
Step, the 1 seems to dissappear, is that a mistake? If not an explanation of the math would be very helpful.
Thanks Glad Wrap (talk) 03:22, 18 January 2022 (UTC)
Apologies, Viktor36 I have reviewed the math and I have seen that that step makes sense, though I still would appreciate an explanation of the math so I can figure out my program. Glad Wrap (talk) 03:58, 18 January 2022 (UTC)
3 total truffles is the average amount of truffles a pig will produce, not the total it will produce each day. Sometimes it can produce 4, or 2, or 1, or even 100 in a single day due to the random chance involved. User314159 (talk) 21:18, 18 January 2022 (UTC)
Apologies User314159, I now realize there were clarification issues in my previous posts, I was aware it was an average but I was trying to calculate it with my program and got a different answer, but I spent a few hours reviewing the code and found a mistake, as such the issue can be considered resolved and Viktor36 is correct Glad Wrap (talk) 00:38, 19 January 2022 (UTC)
Yeah that part was confusing. It’s all good though, no worries. User314159 (talk) 01:39, 19 January 2022 (UTC)

Bug and Floors and pathes

It seens like there's a bug that Pigs inside of Fences kann drop the Truffles outside of the area they have acces to. Example: There's a Pig wich cannot move because 8 Fences are directly next to it. The Pig will produce the Truffles and they will be outside of the Tile, the Pig is standing in.

|=Fence; +=Pig; "=Truffle:
   |  |  | 
"  |  +  |
   |  |  | 
      "


Of course it also works if there are multiple Pigs in a big enclosure. I can upload a image too if needed...

Also truffles can be dropped on flooring (craftable wood floor in my case), the page sais the opposite. Botautal (talk) 20:37, 19 May 2021 (UTC)

Hi Botautal, I think truffles spawning outside fences is the way ConcernedApe intended it to work. The alternative is that no truffle spawns at all, so I would say it may be better as a "note" rather than a "bug" on the page.
It's entirely possible that ConcernedApe fixed the flooring bug in v1.5 and forgot to put it in the change notes. I'll remove it from the page. Thank you, margotbean (talk) 20:44, 19 May 2021 (UTC)
Hi, that Pigs can dig up truffles outside of fences looked very, very strange for me :D but what you say makes sense. thanks ;) Botautal (talk) 21:07, 22 May 2021 (UTC)

Pig non-production days per year

Pigs will produce on approximately 68.3 days per year, out of 112. There are 28 days of winter, and an average of 15.708 rainy days per year. Pigs not producing on nearly 40% of days seemed like it could be a worthwhile inclusion–it actually results in chickens having a slightly higher gold/tile/day output, despite most people thinking pigs are by far the most profitable animal.

I don't know how to format math, so here's an image with a full explanation: https://imgur.com/a/3n7JeoX Let me know if any of it is incorrect but it seems accurate. Information is from Modding:Weather data. Leninheads (talk) 19:51, 4 March 2022 (UTC)

Truffle Oil sells for a lot more than Mayonnaise, and a pig is capable of producing multiple Truffles in a day. So while there are a lot of days they don't produce, they more than make up for it in the days they do produce. It still might be interesting and informative to include your data, but I have nothing to add in terms of critiquing its accuracy or suggesting how it might be included. Zendowolf (talk) 03:49, 5 March 2022 (UTC)
Rough numbers: I have 10 fully-friended pigs in a Deluxe Barn that, over time, produce 15 Truffles on producing days (in my experience), with 34 oil makers at hand. So, 15 Truffle Oil sells for 15,975g (with Artisan skill). In 68 producing days (one year) that comes to about 1,088,000g. That's equivalent to 3817 gold Mayonnaise. I think 10 Chickens can produce a maximum of 1120 eggs a year (one per day per chicken). Seems to fall far short of Truffles' potential, even if there are some extra eggs. Giles (talk) 05:46, 5 March 2022 (UTC)
Here's where I'm at: it took almost an hour for me to understand the equation and double-check it against the Modding:Weather data page. The math seem to check out, within a day of accuracy. (Note that the variable x was changed to n in the equation, but not in the text.) So, if we decide it's worth including on the page, how do we condense the equation into something that can be typed on the wiki, and something that doesn't take 30 minutes to understand? For a bit of trivia about the average number of days a pig might be outside, I'm not sure it's worth it. One player's experience may vary quite a bit from the expected numbers; it's only over time that the numbers prove themselves. margotbean (talk) 19:26, 5 March 2022 (UTC)