Skip to content

Commit

Permalink
Fix QuestReward.cs links
Browse files Browse the repository at this point in the history
  • Loading branch information
Supamiu committed Aug 15, 2021
1 parent ffd4f28 commit d7ae0f6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions SaintCoinach/Xiv/QuestRewards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ private QuestRewardItemGroup[] BuildItems() {

if (groupsType == 3) {
{
var mItem = Quest.As<Item>("Item{Reward}[0]", 0);
var mCount = Quest.AsInt32("ItemCount{Reward}[0]", 0);
var mStain = Quest.As<Stain>("Stain{Reward}[0]", 0);
var mItem = Quest.As<Item>("Item{Reward}", 0);
var mCount = Quest.AsInt32("ItemCount{Reward}", 0);
var mStain = Quest.As<Stain>("Stain{Reward}", 0);

groups.Add(
new QuestRewardItemGroup(
new[] { new QuestRewardItem(mItem, mCount, mStain, false) },
QuestRewardGroupType.GenderSpecificMale, null));
}
{
var fItem = Quest.As<Item>("Item{Reward}[0]", 1);
var fCount = Quest.AsInt32("ItemCount{Reward}[0]", 1);
var fStain = Quest.As<Stain>("Stain{Reward}[0]", 1);
var fItem = Quest.As<Item>("Item{Reward}", 1);
var fCount = Quest.AsInt32("ItemCount{Reward}", 1);
var fStain = Quest.As<Stain>("Stain{Reward}", 1);

groups.Add(
new QuestRewardItemGroup(
Expand All @@ -101,8 +101,8 @@ private QuestRewardItemGroup[] BuildItems() {
}
}
else if (groupsType == 6) {
groups.AddRange(BuildClassQuestJobRewardItemGroups("Item{Reward}[0]", Group1Count));
groups.Add(BuildItemGroup(t2, "Item{Reward}[1]", "ItemCount{Reward}[1]", "Stain{Reward}[1]", "IsHQ{Reward}[1]", Group2Count));
groups.AddRange(BuildClassQuestJobRewardItemGroups("Item{Reward}", Group1Count));
groups.Add(BuildItemGroup(t2, "OptionalItem{Reward}", "OptionalItemCount{Reward}", "OptionalItemStain{Reward}", "OptionalItemIsHQ{Reward}", Group2Count));
}
else if (groupsType == 7) {
var beastRankBonus = (XivRow)Quest.BeastTribe["BeastRankBonus"];
Expand All @@ -112,8 +112,8 @@ private QuestRewardItemGroup[] BuildItems() {
counts.Add(beastRankBonus.AsInt32("Item{Quantity}", i));
groups.Add(new QuestRewardItemGroup(new[] { new QuestRewardItem(item, counts.Distinct(), null, false) }, QuestRewardGroupType.BeastRankBonus, null));
} else {
groups.Add(BuildItemGroup(t1, "Item{Reward}[0]", "ItemCount{Reward}[0]", "Stain{Reward}[0]", null, Group1Count));
groups.Add(BuildItemGroup(t2, "Item{Reward}[1]", "ItemCount{Reward}[1]", "Stain{Reward}[1]", "IsHQ{Reward}[1]", Group2Count));
groups.Add(BuildItemGroup(t1, "Item{Reward}", "ItemCount{Reward}", "Stain{Reward}", null, Group1Count));
groups.Add(BuildItemGroup(t2, "OptionalItem{Reward}", "OptionalItemCount{Reward}", "OptionalItemStain{Reward}", "OptionalItemIsHQ{Reward}", Group2Count));
}

return groups.Where(g => g.Items.Any()).ToArray();
Expand Down

0 comments on commit d7ae0f6

Please sign in to comment.