fix: player can select unavailable drone

This commit is contained in:
assada 2024-06-12 19:07:08 +03:00
parent c31d902074
commit 60002df6e1
Signed by: assada
GPG Key ID: D4860A938E541F06
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
## TODO: ## TODO:
- [ ] Menu audio - [x] Menu audio
- [x] Tags, zOffset from constants - [x] Tags, zOffset from constants
- [ ] Add global game state (?) - [ ] Add global game state (?)
- [x] Add inertia to the player - [x] Add inertia to the player

View File

@ -6,6 +6,9 @@ local elapsedTime = 0
scene.inputHandler = { scene.inputHandler = {
AButtonDown = function() AButtonDown = function()
if Drones[scene.menuIndex].locked == true then
return
end
scene.menuConfirmSound:play(1) scene.menuConfirmSound:play(1)
Noble.transition(Assemble) Noble.transition(Assemble)
end, end,