Skip to content

Commit

Permalink
Make Unit_Bribe_Cost_Pct keep 100% by default.
Browse files Browse the repository at this point in the history
Requested by Marko Lindqvist <cazfi>

See patch #4121

[[originally from svn r23246]]
  • Loading branch information
kvilhaugsvik committed Aug 30, 2013
1 parent 361337e commit 6965aea
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 72 deletions.
14 changes: 7 additions & 7 deletions common/unit.c
Expand Up @@ -2170,13 +2170,13 @@ int unit_bribe_cost(struct unit *punit, struct player *briber)
cost *= unit_build_shield_cost(punit) / 10;

/* Rule set specific cost modification */
cost = (cost
* get_target_bonus_effects(NULL, unit_owner(punit), briber,
game_city_by_number(punit->homecity),
NULL, unit_tile(punit),
unit_type(punit), NULL, NULL,
EFT_UNIT_BRIBE_COST_PCT))
/ 100;
cost += (cost
* get_target_bonus_effects(NULL, unit_owner(punit), briber,
game_city_by_number(punit->homecity),
NULL, unit_tile(punit),
unit_type(punit), NULL, NULL,
EFT_UNIT_BRIBE_COST_PCT))
/ 100;

/* Veterans are not cheap. */
{
Expand Down
10 changes: 1 addition & 9 deletions data/alien/effects.ruleset
Expand Up @@ -1032,17 +1032,9 @@ reqs =
type = "Max_Trade_Routes"
value = 4

[effect_unit_bribe_cost_standard]
type = "Unit_Bribe_Cost_Pct"
value = 100
nreqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
}

[effect_unit_bribe_cost_settlers]
type = "Unit_Bribe_Cost_Pct"
value = 50
value = -50
reqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
Expand Down
10 changes: 1 addition & 9 deletions data/civ1/effects.ruleset
Expand Up @@ -1432,17 +1432,9 @@ reqs =
"Extra", "Pollution", "Local"
}

[effect_unit_bribe_cost_standard]
type = "Unit_Bribe_Cost_Pct"
value = 100
nreqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
}

[effect_unit_bribe_cost_settlers]
type = "Unit_Bribe_Cost_Pct"
value = 50
value = -50
reqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
Expand Down
10 changes: 1 addition & 9 deletions data/civ2/effects.ruleset
Expand Up @@ -2375,17 +2375,9 @@ reqs =
"Extra", "Pollution", "Local"
}

[effect_unit_bribe_cost_standard]
type = "Unit_Bribe_Cost_Pct"
value = 100
nreqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
}

[effect_unit_bribe_cost_settlers]
type = "Unit_Bribe_Cost_Pct"
value = 50
value = -50
reqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
Expand Down
10 changes: 1 addition & 9 deletions data/civ2civ3/effects.ruleset
Expand Up @@ -3950,17 +3950,9 @@ reqs =
"Extra", "Pollution", "Local"
}

[effect_unit_bribe_cost_standard]
type = "Unit_Bribe_Cost_Pct"
value = 100
nreqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
}

[effect_unit_bribe_cost_settlers]
type = "Unit_Bribe_Cost_Pct"
value = 50
value = -50
reqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
Expand Down
10 changes: 1 addition & 9 deletions data/classic/effects.ruleset
Expand Up @@ -2463,17 +2463,9 @@ reqs =
"Extra", "Pollution", "Local"
}

[effect_unit_bribe_cost_standard]
type = "Unit_Bribe_Cost_Pct"
value = 100
nreqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
}

[effect_unit_bribe_cost_settlers]
type = "Unit_Bribe_Cost_Pct"
value = 50
value = -50
reqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
Expand Down
10 changes: 1 addition & 9 deletions data/experimental/effects.ruleset
Expand Up @@ -2754,17 +2754,9 @@ reqs =
"Extra", "Pollution", "Local"
}

[effect_unit_bribe_cost_standard]
type = "Unit_Bribe_Cost_Pct"
value = 100
nreqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
}

[effect_unit_bribe_cost_settlers]
type = "Unit_Bribe_Cost_Pct"
value = 50
value = -50
reqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
Expand Down
10 changes: 1 addition & 9 deletions data/multiplayer/effects.ruleset
Expand Up @@ -2511,17 +2511,9 @@ reqs =
"Extra", "Pollution", "Local"
}

[effect_unit_bribe_cost_standard]
type = "Unit_Bribe_Cost_Pct"
value = 100
nreqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
}

[effect_unit_bribe_cost_settlers]
type = "Unit_Bribe_Cost_Pct"
value = 50
value = -50
reqs =
{ "type", "name", "range"
"UnitFlag", "Cities", "Local"
Expand Down
2 changes: 1 addition & 1 deletion doc/README.effects
Expand Up @@ -200,7 +200,7 @@ Incite_Cost_Pct
Increases revolt cost by amount percent.

Unit_Bribe_Cost_Pct
Keep amount percent of the unit bribe cost. Requirements are from the
Increases unit bribe cost by amount percent. Requirements are from the
point of view of the target unit, not the briber.

Size_Adj
Expand Down
2 changes: 1 addition & 1 deletion fc_version
Expand Up @@ -30,7 +30,7 @@ DEFAULT_FOLLOW_TAG=stable
# - Avoid adding a new mandatory capability to the development branch for
# as long as possible. We want to maintain network compatibility with
# the stable branch for as long as possible.
NETWORK_CAPSTRING_MANDATORY="+Freeciv.Devel-2.6-2013.Aug.29"
NETWORK_CAPSTRING_MANDATORY="+Freeciv.Devel-2.6-2013.Aug.30"
NETWORK_CAPSTRING_OPTIONAL=""

FREECIV_DISTRIBUTOR=""
Expand Down

0 comments on commit 6965aea

Please sign in to comment.