Talk:Weeds

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

What weeds can damage

I see coming up over and over in various places folks being surprised that weeds damaged their x or y item. Someone just recently mentioned on the forum their assumption that weeds can only destroy paths because the wiki article refers only to paths being able to be damaged. I'd go straight to wiki to check, and if I didn't find it there I might understandably think it is an error too if not found here. I'd like to correct this, but I'm not 100% certain what all is included/excluded, the answers online seem to vary. Is it correct to say: Weeds can damage crops, paths, and placable items such as machines, but cannot damage fences, chests or buildings."? CrystalFlower (talk) 09:38, 23 June 2021 (UTC)

I tried to search in the code. Here are parts of them in the Gamelocations.cs (Line 12428):
if (object2.name != null && !object2.Name.Contains("Weed") && !object2.Name.Equals("Stone") && !object2.name.Contains("Twig") && object2.name.Length > 0)
{
	flag5 = true;
	Game1.debugOutput = object2.Name + " was destroyed";
}
this.objects.Remove(vector + vector2);
I'm not sure how debugOutput works, but I guess the weeds can destroy all types of objects except for weeds, stone and twig. Horizon98 (talk) 17:16, 23 June 2021 (UTC)
Thanks for this. If object name does not contain weed, stone or twig then items of type "object2" can be destroyed, so it destroyes all object2's that are not weed, stone, twig. The only issue with this being if there are different object groups... are all objects part of the object2 group? What about fences, chests, buildings? I usually play on mobile, so I don't keep my PC handy but maybe I'll try to take a look at the decompiled code. Not sure it will make sense enough to me to determine this easily or quickly though as I've never looked at it before and am not a programmer.
CrystalFlower (talk) 18:45, 23 June 2021 (UTC)
The game code seems to indicate that anything other than fences and chests can be destroyed. I don't know if a fully-grown fruit tree can be destroyed yet, but everything else seems vulnerable. I've updated the page in the meantime, while we do more research. margotbean (talk) 21:19, 23 June 2021 (UTC)
Thanks Margobean! Ps. It is too bad the wiki doesn't have Echo and Thanks extensions installed (both are used on wikimedia projects so should be reliably stable, echo provides notifications without having to check pages, and thanks is for sending thanks which encourages the community. I immediately went to the history to press "thanks" before remembering it is not installed here lol. :)
There are two collections that can be affected, objects and terrain features. All objects except for fences and chests can be removed. Objects are things that are placed that cant be moved through. For terrain features, (trees, flooring, hoedirt, grass), only flooring and hoedirt can be destroyed. I can post code when not on my phone if it would be beneficial. BlaDe (talk) 22:11, 24 June 2021 (UTC)