Skip to content

Commit

Permalink
Merge branch 'mimic2300:feature/item_seed_v2' into mimic2300_feature/…
Browse files Browse the repository at this point in the history
…item_seed_v2
  • Loading branch information
hguy committed Feb 24, 2023
1 parent b8930f1 commit 3999a59
Show file tree
Hide file tree
Showing 10 changed files with 2,579 additions and 2,531 deletions.
17 changes: 16 additions & 1 deletion src/TQVaultAE.GUI/Components/SackPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,8 @@ select location
if (Config.UserSettings.Default.AllowItemEdit)
{
this.CustomContextMenu.Items.Add(Resources.SackPanelMenuSeed);

this.CustomContextMenu.Items.Add(Resources.SackPanelMenuSeedForce);

// Add option to complete a charm or relic if
// not already completed.
if (focusedItem.IsRelicOrCharm && !focusedItem.IsRelicComplete)
Expand Down Expand Up @@ -3258,6 +3259,20 @@ private void ContextMenuItemClicked(object sender, ToolStripItemClickedEventArgs
this.InvalidateItemCacheItemTooltip(focusedItem);
}
}
else if (selectedMenuItem == Resources.SackPanelMenuSeedForce)
{
int origSeed = focusedItem.Seed;
focusedItem.Seed = Item.GenerateSeed();
focusedItem.IsModified = true;

// See if the seed was changed
if (focusedItem.Seed != origSeed)
{
// Tell the sack that it has been modified
this.Sack.IsModified = true;
this.InvalidateItemCacheItemTooltip(focusedItem);
}
}
else if (selectedMenuItem == Resources.SackPanelMenuCharm || selectedMenuItem == Resources.SackPanelMenuRelic)
{
focusedItem.Number = 10;
Expand Down
13 changes: 11 additions & 2 deletions src/TQVaultAE.Presentation/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3999a59

Please sign in to comment.