-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix MOVEXY does not change owner #1527
Conversation
PR-SERVER-BOT: You can play around with it here: https://test.virtualtabletop.io/PR-1527/pr-test (or any other room on that server) After merging, a backup will be available at |
I actually use that in citadels 😅 or at least it used to, but I changed it because the owner wasn't updated. the use case was to MOVEXY the entire hand to the floor, so someone else can look at it in a peek holder |
I was thinking of the other way around, where it works as bugged on production. But you gave me an idea: you could have a big chooser. All the cards dealt out on the screen in a big MOVEXY grid that only you can see. That means I need to work on a file updater. |
I changed it to only remove owner if the source holder had childrenPerOwner. Please test this. |
Can only make a file updater if the behavior is optional though. Unless it GETs the owner before a MOVEXY and the SETs it again afterwards. |
Yeah, that's the idea. Change the default behavior the way you fixed it (which I will test). Then if anybody used it this broken way, it will GET, MOVEXY, and SET. |
There's no way for the file updater to know though. So this would mean wrapping every MOVEXY with SET and GET. Feels cleaner to add a |
Yes, messy. There aren't that many MOVEXY's (cool that the new library set-up allows even me to search every PL game, but not every game on the server of course). I don't understand what you mean. Add a new parameter? |
I think the latest commits do this the way @ArnoldSmith86 suggested, with a file updater. I've tested the parameter and the file importer and everything seems to work. If this is acceptable, I will also want to change the tutorial. Proposed wiki update in the first comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine to me. I didn't test anything though.
I'll just copy LawDawg here: approved through test |
Well, I screwed up something in resolving the conflict with v10 and v11. Any ideas? |
Looks like the v10 function is missing its final |
This fix works because MOVEXY will never go to a holder so no need to worry about any of those calls. I think.
Question I often find myself asking now. Does this need a file updater? Theoretically maybe, but MOVEXY has been rarely used (only in 3 PL games) and never from a hand. I guess there could be a game out there that used this is some way.
Proposed wiki update:
Parameters:
collection: collection- not yet supported