Skip to content

Commit

Permalink
FishParameter extractor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Supamiu committed May 29, 2023
1 parent 1aafacf commit c9d050e
Show file tree
Hide file tree
Showing 4 changed files with 1,917 additions and 61 deletions.
12 changes: 8 additions & 4 deletions Garland.Data/Modules/FishingSpots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ void BuildFish()
{
foreach (var sFishParameter in _builder.Sheet<Saint.FishParameter>())
{
var fishNoteInfo = _builder.Sheet("FishingNoteInfo").First(row =>
{
return row.Key == sFishParameter.Key;
});
var guideText = sFishParameter.Text.ToString();
if (string.IsNullOrEmpty(guideText))
continue;
Expand All @@ -108,12 +112,12 @@ void BuildFish()
item.fish.guide = guideText;
item.fish.icon = GetFishIcon((UInt16)sFishParameter.Item.GetRaw("Icon"));

/* Broke with 6.4, todo fix this, prob using the new FishingNoteInfo sheet
if (sFishParameter.WeatherRestricted)

if (fishNoteInfo.As<Byte>("WeatherRestriction") > 0)
item.fish.weatherRestricted = 1;
if (sFishParameter.TimeRestricted)
if (fishNoteInfo.As<Byte>("TimeRestriction") > 0)
item.fish.timeRestricted = 1;
*/


var sGatheringSubCategory = (Saint.GatheringSubCategory)sFishParameter["GatheringSubCategory"];
if (sGatheringSubCategory != null && sGatheringSubCategory.Key > 0)
Expand Down
Loading

0 comments on commit c9d050e

Please sign in to comment.