Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Aug 24, 2023
2 parents 5e12f80 + a3ad4c1 commit 70c761f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions RemnantSaveGuardian/GameInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ public static void RefreshGameInfo()
{
rItem.TileSet = item["tileSet"].ToString();
}
if (item["armorSet"] != null)
{
rItem.IsArmorSet = item["armorSet"].GetValue<bool>();
}
eventItems.Add(rItem);
}
eventItem.Add(kvp.Key, eventItems);
Expand Down
2 changes: 2 additions & 0 deletions RemnantSaveGuardian/RemnantItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public string Key
public string ItemNotes { get; set; }
public bool Coop { get; set; }
public string TileSet { get; set; }
public bool IsArmorSet { get; set; }
public RemnantItem(string nameOrKey)
{
this._key = nameOrKey;
Expand All @@ -94,6 +95,7 @@ public RemnantItem(string nameOrKey)
this.ItemNotes = "";
this.Coop = false;
TileSet = "";
IsArmorSet = true;
foreach (string pattern in ItemKeyPatterns) {
var nameMatch = Regex.Match(nameOrKey, pattern);
if (!nameMatch.Success)
Expand Down
5 changes: 4 additions & 1 deletion RemnantSaveGuardian/Views/Pages/WorldAnalyzerPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,12 @@ private void SearchItem(RemnantItem item)
}
}

if (item.RawType == "Armor")
if (item.RawType == "Armor" && item.IsArmorSet)
{
itemname = itemname?.Substring(0, itemname.IndexOf("(")) + "Set";
} else if (item.RawType == "Armor")
{
itemname = itemname?.Substring(0, itemname.IndexOf(" ("));
}
Process.Start("explorer.exe", $"https://remnant2.wiki.fextralife.com/{itemname}");
}
Expand Down
9 changes: 6 additions & 3 deletions RemnantSaveGuardian/game.json
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@
"TheLament": [
{
"name": "/Items/Armor/Armor_Head_LodestoneCrown",
"notes": "On the boat inside Kolkets locked room"
"notes": "On the boat inside Kolkets locked room",
"armorSet": false
},
{
"name": "/Items/Trinkets/Rings/BloodTingedRing/Ring_BloodTingedRing"
Expand Down Expand Up @@ -883,7 +884,8 @@
},
{
"name": "/Items/Armor/Misc/Armor_Head_RedPrince",
"notes": "kill with Assassins Dagger"
"notes": "kill with Assassins Dagger",
"armorSet": false
}
],
"NightWeaver": [
Expand Down Expand Up @@ -1279,7 +1281,8 @@
],
"OilField": [
{
"name": "/Items/Armor/Nerud_Pilot/Armor_Head_PilotsHelm"
"name": "/Items/Armor/Nerud_Pilot/Armor_Head_PilotsHelm",
"armorSet": false
},
{
"name": "/Items/Trinkets/Amulets/DetonationTrigger/Amulet_DetonationTrigger"
Expand Down

0 comments on commit 70c761f

Please sign in to comment.