Replace the Unbribable_Units effect with the Bribe Unit action enabler
commit03b447287725a67b0bcfab513b0dcab9a2e64c09
authorsveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Wed, 5 Mar 2014 09:30:22 +0000 (5 09:30 +0000)
committersveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Wed, 5 Mar 2014 09:30:22 +0000 (5 09:30 +0000)
tree4857f1e42382ea32c4dd1f9aacf204c4c3803286
parent49efb26ff7b8a73e659749b8c448809b1b25cbc8
Replace the Unbribable_Units effect with the Bribe Unit action enabler

It is possible to write the same rules using action enablers for the
"Bribe Unit" action. Since the target requirements on the Bribe Unit action
enabler now are checked in the same places as the Unbribable_Units effect no
functionality is lost by removing this redundancy.

By removing it the code won't have to take into account that the effect can
stop a bribe even if the action is enabled. It can also ignore that both
could be active at once. Another benefit from removing the now redundant
Unbribable_Units effect is that users that wish to edit a ruleset won't have
to discover both the action enabler and the effect to get full control.

All use of the Unbribable_Units effect is replaced with "Bribe Unit" action
enablers in the bundled rule sets.

See patch #4578

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@24612 a0f10bec-cc02-0410-94fc-a9cfff90b4cd
19 files changed:
ai/default/aicity.c
ai/default/aidiplomat.c
client/helpdata.c
common/effects.h
data/civ1/effects.ruleset
data/civ1/game.ruleset
data/civ2/effects.ruleset
data/civ2/game.ruleset
data/civ2civ3/effects.ruleset
data/civ2civ3/game.ruleset
data/classic/effects.ruleset
data/classic/game.ruleset
data/multiplayer/effects.ruleset
data/multiplayer/game.ruleset
doc/README.effects
doc/README.ruleset_civ2civ3
fc_version
server/advisors/advdata.c
server/diplomats.c