Talk:Mushroom Tree

From Stardew Valley Wiki
Jump to navigation Jump to search
This talk page is for discussing Mushroom Tree.
  • Sign and date your posts by typing four tildes (~~~~).
  • Put new text below old text.
  • Be polite.
  • Assume good faith.
  • Don't delete discussions.

1.5 Changes

"Obtaining the first Mushroom Tree is a random event...." It's no longer necessarily true that your first Mushroom Tree comes from a random event. But I don't know enough about the event to update the paragraph. Do you only get a random Mushroom Tree once per save file or can you get more? If once, is it still possible after you plant a Mushroom Tree seed? There's nothing about it on the Random Events page. Is it part of that logic, or is it something separate? I haven't seen a Mushroom Tree since 1.5 came out, so I don't even know for sure that the event still happens. Zendowolf (talk) 17:37, 14 March 2021 (UTC)

I poked around in Farm::DayUpdate() and it looks like it's still a pretty general event. From what I can tell, it shouldn't be affected by whether there are already Mushroom Trees on the farm. I'm not sure if there's other code affecting the likelihood/this event, but I updated it with what I found. There are two things I'm unsure of (not fluent in C#), if anyone else goes in to look around --
* The wiki page currently says that a Mushroom Tree can only replace common trees, but the code looks inclusive of all tree types - not sure if the new Mahogany trees are included/should be specified.
* I think the check occurs every day of fall except the 1st of the month, but again, not positive. Efarn (talk) 06:02, 15 March 2021 (UTC)
Common trees are "Tree" in the code, but Fruit Trees are "FruitTree", so they will never turn into mushroom trees. The code looks like it includes Mahogany trees. I'd feel more comfortable if I had the time to test in-game. margotbean (talk) 04:21, 16 March 2021 (UTC)
Mahogany trees (on the home farm) definitely turn into mushroom trees. In fact, I just had one tapped with a Heavy Tapper turn into a Mushroom Tree, a bug I reported on the official forums. Eek --margotbean (talk) 22:22, 27 March 2021 (UTC)
looks like a bug. in Object.cs (placementAction) it says that if you put a tapper (name "contains" tapper) on a tree it sets tapped.value = true, and then Farm.cs mushroom event has a condition next to being >= stage 5 to not be tapped ((t is Tree && (int)(t as Tree).growthStage >= 5 && !(t as Tree).tapped)). Maybe the "Heavy Tapper" somehow slips the "contains Tapper" check. From a purely logical standpoint if a player puts tappers on a tree they probably want that tapped product/and/or are using it on trees that have been carefully set up by them - thus they shouldn't be replaced imo Dubesor (talk) 00:12, 28 March 2021 (UTC)
something to the first question: I got multiple Mushroomtrees in fall without planting a seed so there is sure no amount limit of trees turned into Muschroom trees. Botautal (talk) 23:14, 4 April 2021 (UTC)
Just for information, Mahogany Trees are indeed trees. They are the treeType number 8. You can check the Content\TerrainFeatures\ folder and Tree.cs. -- Charly (talk) 07:46, 22 November 2021 (UTC)