Lua: allow edit.create_building() to move a great wonder
I guess I should comment something, though I don't have time to investigate in depth at the moment.
Some random considerations:
- That it's already possible by removing the wonder first means also that it's a workaround that people could use even if we didn't reopen semi-frozen S3_1 d3f
- What's the status of other methods related to this? Would it still be easy to grant the Wonder only if it's not already built?
- As create_building() is new in 3.1, and having the change in the features initial release, would save us from handling it as a change between two stable releases of the API
- Patch submitted in time for me to handle before my summer break (-> to be in testing over the summer) would increase the chances that this gets accepted to S3_1
Reply To cazfi
Some random considerations:
- That it's already possible by removing the wonder first means also that it's a workaround that people could use even if we didn't reopen semi-frozen S3_1 d3f
Well, behaviour with wonders was never documented behind "creates a building to a city".
- What's the status of other methods related to this? Would it still be easy to grant the Wonder only if it's not already built?
- Patch submitted in time for me to handle before my summer break (-> to be in testing over the summer) would increase the chances that this gets accepted to S3_1
Ok, I'll try to make the patch soon.
Centralized the code with editor. A bug or two got fixed in process. I'll see tomorrow how much more I have caused.
I have caused a lot... Well, reworking this. What really should be fixed in process:
What is not to be handled in this patch:
I'm inclined to accept this to S3_1.
There's textual conflict with https://www.hostedredmine.com/issues/856947 but I think it's better to rebase that patch on top of this than the other way around.
This effect is already achievable with edit.remove_building() called first, it's not natural to hide the opportunity. Also, editing from client can do it.