Skip to content

Commit

Permalink
add to harvestables
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Sep 11, 2024
1 parent 6b14348 commit 2ed3b6b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Winch/Util/PoiUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ internal static GameObject CreateGameObjectFromCustomHarvestPoi(CustomHarvestPOI
harvestPoiDataModel.nightItems = customHarvestPoi.NightItems;

harvestPoiDataModel.id = customHarvestPoi.id;
Harvestables.Add(customHarvestPoi.id, harvestPoiDataModel);

harvestPoi.HarvestPOIData = harvestPoiDataModel;
harvestPoi.Harvestable = harvestPoiDataModel;
Expand Down Expand Up @@ -276,6 +277,7 @@ internal static GameObject CreateGameObjectFromCustomItemPoi(CustomItemPOI custo
itemPoiDataModel.items = customItemPoi.Items;

itemPoiDataModel.id = customItemPoi.id;
Harvestables.Add(customItemPoi.id, itemPoiDataModel);

itemPoi.itemPOIData = itemPoiDataModel;
itemPoi.Harvestable = itemPoiDataModel;
Expand Down Expand Up @@ -484,4 +486,9 @@ public static IHarvestable[] GetAllHarvestables()
{
return Harvestables.Values.ToArray();
}

public static GameObject[] GetAllHarvestParticlePrefabs()
{
return HarvestParticlePrefabs.Values.Concat(ModdedHarvestParticlePrefabs.Values).ToArray();
}
}

0 comments on commit 2ed3b6b

Please sign in to comment.