HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...
Feature #695117
"edit.city_create_building()" and "edit.city_destroy_building()" methods
0%
Description
Edit mode allows adding and removing buildings to and from cities. Lua scripts could use the same capabilities.
Aside from City and Building_Type, these methods would probably need a reason string. If the event might be automatically reported to the player (e.g. for reasons like "disaster"), there should also be a Boolean "silent" flag (defaulting to false).
Additionally, for reasons like "sabotaged", there could be a "destroyer" Player (or perhaps even Unit).
Related issues
History
#1
Updated by Marko Lindqvist over 4 years ago
- Sprint/Milestone set to 3.1.0
#2
Updated by Marko Lindqvist over 4 years ago
- Blocks Task #673656: S3_1 datafile format freeze (d3f) added
#3
Updated by Marko Lindqvist 10 months ago
- File 0051-Lua-Add-City-create_building-and-City-remove_buildin.patch 0051-Lua-Add-City-create_building-and-City-remove_buildin.patch added
- Status changed from New to Resolved
#4
Updated by Marko Lindqvist 10 months ago
Alina L. wrote:
If the event might be automatically reported to the player
I see no reason to make these functions more complicated to include such functionality, which the lua script can call separately itself.
#5
Updated by Marko Lindqvist 9 months ago
- Status changed from Resolved to Closed
- Assignee set to Marko Lindqvist