mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-20 13:50:46 +00:00
Remove container unlock alerts
- Eliminate redundant alert messages when unlocking containers - Preserve the existing logic for preventing automatic item collection - Simplify user interaction by removing unnecessary pop-up notifications
This commit is contained in:
@@ -1854,14 +1854,12 @@
|
||||
// Set new state for containers with contents
|
||||
if (lockable.scenarioData.contents) {
|
||||
lockable.scenarioData.isUnlockedButNotCollected = true;
|
||||
alert('Container unlocked! You can now collect its contents.');
|
||||
return; // Return early to prevent automatic collection
|
||||
}
|
||||
} else {
|
||||
lockable.locked = false;
|
||||
if (lockable.contents) {
|
||||
lockable.isUnlockedButNotCollected = true;
|
||||
alert('Container unlocked! You can now collect its contents.');
|
||||
return; // Return early to prevent automatic collection
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user