Skip to content
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
1 change: 1 addition & 0 deletions EmoTracker.Data/LocationDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ Location LoadLocation(IGamePackage package, Location parent, JObject data)
}
}
section.ClearOnCapture = sectionData.GetValue<bool>("clear_on_capture", false);
section.CapturePersist = sectionData.GetValue<bool>("capture_persist", false);
section.ShowGateItem = sectionData.GetValue<bool>("show_gate_item", true);

JArray sectionRules = sectionData.GetValue<JArray>("access_rules");
Expand Down
9 changes: 8 additions & 1 deletion EmoTracker.Data/Locations/Section.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private static AccessibilityLevel Max(AccessibilityLevel a, AccessibilityLevel b
private double mCaptureBadgeOffsetX = 0;
private double mCaptureBadgeOffsetY = 0;
private bool mbClearOnCapture = false;
private bool mbCapturePersist = false;
private bool mSuppressCaptureClearing = false;
private bool mbShowGateItem = true;

Expand Down Expand Up @@ -199,7 +200,7 @@ public uint AvailableChestCount
{
using (TransactionProcessor.Current.OpenTransaction())
{
if (value == 0 && CapturedItem != null && !mbCaptureBadge && !mSuppressCaptureClearing)
if (value == 0 && CapturedItem != null && !mSuppressCaptureClearing && !mbCapturePersist)
{
CapturedItem.AdvanceToCode();
CapturedItem = null;
Expand Down Expand Up @@ -269,6 +270,12 @@ public bool ClearOnCapture
set { SetProperty(ref mbClearOnCapture, value); }
}

public bool CapturePersist
{
get { return mbCapturePersist; }
set { SetProperty(ref mbCapturePersist, value); }
}

public bool ShowGateItem
{
get { return mbShowGateItem; }
Expand Down
Loading