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:
Damian-I
2025-02-08 15:31:30 +00:00
parent d8d55dfcdf
commit 41a7372ce7

View File

@@ -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
}
}