Project-Pandora-Game / pandora

https://project-pandora.com
Other
11 stars 3 forks source link

Bug: Restraints on frame couch can be used, although nobody occupies the appropriate slot #791

Open SandrinePDR opened 1 month ago

SandrinePDR commented 1 month ago
image
ClaudiaMia commented 1 month ago

I know about this, I just did not consider it a problem so far, as you should be able to simply remove them, by changing the state.

There is one scenario why I even thought it is needed to be able to change this even while no character is occupying this slot: If someone is tied and they are kicked for instance or safemode and leave, then the bench would be in this state and someone would need to able to switch the module, even while no one is inside.

But I can investigate if the current system can somehow achieve the optimal desired behavior.

I was thinking of trying to add the following to the bound states:

attributes: {
                                    requires: [
                                        'Body_base',
                                    ],
                                },

I will test if that solves the issue, next week.

Edit: Turns out this does not solve the issue, as the character is the one who validates it. With no character in the slot, there is no validation.

Jomshir told me solving this is not possible with the current system, so it is not a simple bug to easily fix.