Difference between revisions of "Talk:Weeds"

From Stardew Valley Wiki
Jump to navigation Jump to search
(username removed)
(Forgot about fences.)
Line 2: Line 2:
 
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."?
 
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."?
 
[[User:CrystalFlower|CrystalFlower]] ([[User talk:CrystalFlower|talk]]) 09:38, 23 June 2021 (UTC)
 
[[User:CrystalFlower|CrystalFlower]] ([[User talk:CrystalFlower|talk]]) 09:38, 23 June 2021 (UTC)
 +
:I tried to search in the code. Here are parts of them in the <code>Gamelocations.cs</code> (Line 12428):
 +
:<syntaxhighlight lang="c#">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";
 +
}</syntaxhighlight>
 +
:I'm not sure how debugOutput works, but I guess the weeds can destroy all types of objects except for weeds, stone and twig. [[User:Horizon98|Horizon98]] ([[User talk:Horizon98|talk]]) 17:16, 23 June 2021 (UTC)

Revision as of 17:16, 23 June 2021

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";
}
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)