| 每张地图每天生成0-4个新的觅食物品(''即'',任何区域)。在一天时间里的任何区域最多生成6个。一个例外是在[[沙滩]]。在海滩右边有一块需要300个[[木材]]来修复桥梁之后才能通过的被分离的区域,在任何一天都有超过6个物品。另一个例外是[[大葱]]生长在[[莉亚的农舍]]南边的[[煤矿森林]]里。[[大葱]]没有数量限制并每天会复原。其他全部觅食物品只有在星期六晚上玩家睡过觉后才会复原。 | | 每张地图每天生成0-4个新的觅食物品(''即'',任何区域)。在一天时间里的任何区域最多生成6个。一个例外是在[[沙滩]]。在海滩右边有一块需要300个[[木材]]来修复桥梁之后才能通过的被分离的区域,在任何一天都有超过6个物品。另一个例外是[[大葱]]生长在[[莉亚的农舍]]南边的[[煤矿森林]]里。[[大葱]]没有数量限制并每天会复原。其他全部觅食物品只有在星期六晚上玩家睡过觉后才会复原。 |
| New forageable items can potentially spawn (appear) overnight in any exterior map.<ref name="spawning">Spawning of standard forage items is done in <samp>GameLocation::spawnObjects</samp>, which is triggered by <samp>GameLocation::dayUpdate</samp>. The six item per map limit is controlled by <samp>numberOfSpawnedObjectsOnMap</samp>. The number of attempts to add an item is a random number ranging from 1 to <samp>min(4, 6-numberOfSpawnedObjectsOnMap)</samp>. For each attempt, the code checks up to 11 locations that are randomly located anywhere on the map. An item is only placed if one of those 11 locations is a valid spawning location, and if a randomly-selected forage item also passes its probability test.</ref> This section describes the rules used to spawn all typical forageable items. However, specialized items are handled differently and are described on their individual pages, namely [[Spring Onion]]s in [[Cindersap Forest]]; [[Coral]], [[Sea Urchin]]s and [[Seaweed]] at [[the Beach]]; fruit in [[The Cave|the Farm Cave]]; all forageables on the [[Farm Maps#Forest|Forest Farm Map]]. Also, [[Salmonberry]] bushes, [[Blackberry]] bushes, [[Winter Root]]s, and [[Snow Yam]]s don't spawn individual items. | | New forageable items can potentially spawn (appear) overnight in any exterior map.<ref name="spawning">Spawning of standard forage items is done in <samp>GameLocation::spawnObjects</samp>, which is triggered by <samp>GameLocation::dayUpdate</samp>. The six item per map limit is controlled by <samp>numberOfSpawnedObjectsOnMap</samp>. The number of attempts to add an item is a random number ranging from 1 to <samp>min(4, 6-numberOfSpawnedObjectsOnMap)</samp>. For each attempt, the code checks up to 11 locations that are randomly located anywhere on the map. An item is only placed if one of those 11 locations is a valid spawning location, and if a randomly-selected forage item also passes its probability test.</ref> This section describes the rules used to spawn all typical forageable items. However, specialized items are handled differently and are described on their individual pages, namely [[Spring Onion]]s in [[Cindersap Forest]]; [[Coral]], [[Sea Urchin]]s and [[Seaweed]] at [[the Beach]]; fruit in [[The Cave|the Farm Cave]]; all forageables on the [[Farm Maps#Forest|Forest Farm Map]]. Also, [[Salmonberry]] bushes, [[Blackberry]] bushes, [[Winter Root]]s, and [[Snow Yam]]s don't spawn individual items. |
| *Users with access to their [[Saves|saved game files]] may find the "Forage Finder" utility helpful for showing the location of all forageable items for the next game day. The utility is located at: https://stardew.selbysaurus.me/ | | *Users with access to their [[Saves|saved game files]] may find the "Forage Finder" utility helpful for showing the location of all forageable items for the next game day. The utility is located at: https://stardew.selbysaurus.me/ |