Difference between revisions of "Talk:Weeds"

From Stardew Valley Wiki
Jump to navigation Jump to search
(username removed)
(Reply, previous comment helps and is appreciate but may only covers part of the question still)
(+talkheader)
Line 1: Line 1:
 +
{{Talkheader}}
 
==What weeds can damage==
 
==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."?
 
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."?

Revision as of 19:38, 23 June 2021

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. The only issue with this being if there are different object groups... this snippet refers to "object 2"... presumably the "2" indicates there may be other object types, such as just "object" or "object1" that fill in the rest of this question. It makes me wonder, since fences break overgrowth of weeds, if they aren't a different object group. I'm playing on mobile so I doubt usually have my PC handy to see if I can look at the source code. Maybe I'll have to dig it out later and have a look.
CrystalFlower (talk) 18:45, 23 June 2021 (UTC)