Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix unplayable items being considered. #32

Merged
merged 1 commit into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Version 3.2.0 - 06.04.2024
* Fixed unplayable armor and weapon records being used in the patcher

## Version 3.1.1 - 04.04.2024
* Updated Synthesis dependency

Expand Down
2 changes: 2 additions & 0 deletions HalgarisRPGLoot/Analyzers/ArmorAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ protected override void AnalyzeGear()
entry.Data.Reference.FormKey,
out var resolved))
return default;
if (resolved.MajorFlags.HasFlag(Armor.MajorFlag
.NonPlayable)) return default;
return new ResolvedListItem<IArmorGetter>
{
List = lst,
Expand Down
2 changes: 2 additions & 0 deletions HalgarisRPGLoot/Analyzers/WeaponAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ protected override void AnalyzeGear()
entry.Data.Reference.FormKey,
out var resolved))
return default;
if (resolved.MajorFlags.HasFlag(Weapon.MajorFlag
.NonPlayable)) return default;
return new ResolvedListItem<IWeaponGetter>
{
List = lst,
Expand Down