Add the new unit action "Destroy City"
commit262e90da2951928f460f60b589e157890164dea9
authorsveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Tue, 18 Aug 2015 02:18:46 +0000 (18 02:18 +0000)
committersveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Tue, 18 Aug 2015 02:18:46 +0000 (18 02:18 +0000)
tree8177fb0e718e837b940150cbe4a068bad1ab8bb9
parent0e8b8c05de4ff20ab94ba6ebeebd6793b94e3fe6
Add the new unit action "Destroy City"

"Destroy City" can be used to implement scorched earth tactics. If
destroying a foreign city using a standard unit with a reasonable cost is
permitted the ruleset should probably demand that the foreign city doesn't
have any defending units in it. It isn't hard coded. A ruleset author may
wish to have "Destroy City" as a special ability of the Leader or another
high value unit.

No way to defend against this action as long as it is enabled currently
exists. A follow up patch could make it probabilistic by allowing the
Action_Odds_Pct effect to reduce its initial odds of 100%.

The population of the target city has no chance of escaping as
refugee units or by using the migration system. A ruleset setting to give
them some means of escape and some chance of making use of it could also be
added in a follow up patch.

See patch #6248

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@29577 a0f10bec-cc02-0410-94fc-a9cfff90b4cd
13 files changed:
ai/default/aicity.c
client/gui-gtk-2.0/action_dialog.c
client/gui-gtk-3.0/action_dialog.c
client/gui-qt/dialogs.cpp
client/gui-sdl/action_dialog.c
client/gui-sdl2/action_dialog.c
common/actions.c
common/actions.h
doc/README.actions
fc_version
server/ruleset.c
server/unithand.c
tools/ruledit/rulesave.c