Skip to content

[game] Run OnUsed scripts on locked containers - #326

Open
modawan wants to merge 1 commit into
masterfrom
spice-container
Open

[game] Run OnUsed scripts on locked containers#326
modawan wants to merge 1 commit into
masterfrom
spice-container

Conversation

@modawan

@modawan modawan commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Before the patch, Module::onPlaceableClick completely skipped locked
containers. This does not work for the spice container on the Ebon
Hawk in K1. Spice container is locked, but attempting to open it
should trigger its OnLoad, which starts a dialogue to enter the code.

With the patch, we use OpenContainerAction on both locked and unlocked
containers. The player character navigates to the container before
calling OnUsed. If the container is locked, it returns early and does
not open the container.

Before the patch, Module::onPlaceableClick completely skipped locked
containers. This does not work for the spice container on the Ebon
Hawk in K1. Spice container is locked, but attempting to open it
should trigger its OnLoad, which starts a dialogue to enter the code.

With the patch, we use OpenContainerAction on both locked and unlocked
containers. The player character navigates to the container before
calling OnUsed. If the container is locked, it returns early and does
not open the container.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant