Project

Profile

Help

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

Added by Alina L. almost 5 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
Scripting API
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

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

Blocks Freeciv - Task #673656: S3_1 datafile format freeze (d3f)Closed

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

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

#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

Also available in: Atom PDF