Home › Effects › CITIES › EFFECT_GRANT_UNIT_BY_CLASS uses

Available out of the box. Usable from Lua in the unmodified game.

EFFECT_GRANT_UNIT_BY_CLASS: where the game uses it

4 modifiers in the game's own data use this effect. Modifier ids, argument values, owners and requirement sets come from the installed game's data files (the base game and every DLC; mods are not included). Text keys are shown as keys: load your own game text to read the in-game wording here.

Arguments: UnitPromotionClassType (String).

Used by Modifier Arguments Applies to Conditions In-game text From
GoodyHutSubTypes ? GOODY_MILITARY_GRANT_SCOUT
MODIFIER_SINGLE_CITY_GRANT_UNIT_BY_CLASS_IN_NEAREST_CITY
UnitPromotionClassType = PROMOTION_CLASS_RECON UNIT_NEAREST_OWNER_CITY — LOC_GOODYHUT_MILITARY_GRANT_UNIT_DESCRIPTION Base
— SPYING_EMERGENCY_TARGET_GRANT_SPY_REWARD
MODIFIER_EMERGENCY_PLAYERS_GRANT_UNIT
UnitPromotionClassType = PROMOTION_CLASS_SPY EMERGENCY_PLAYERS
applies to: 2 requirementsPLAYER_IS_EMERGENCY_TARGET
PLAYER_IS_EMERGENCY_TARGET
— Expansion2
Trait TRAIT_LEADER_PAX_BRITANNICA
LOC_TRAIT_LEADER_PAX_BRITANNICA_NAME
TRAIT_FREE_MELEE_UNIT_FOREIGN_ROYAL_NAVY_DOCKYARD
MODIFIER_PLAYER_CITIES_GRANT_UNIT_BY_CLASS
UnitPromotionClassType = PROMOTION_CLASS_MELEE PLAYER_CITIES
applies to: 3 requirementsnot CITY_IS_OWNER_CAPITAL_CONTINENT
CITY_TRANSFER_TYPE_MATCHES (TransferType=BY_SETTLER)
CITY_HAS_DISTRICT (DistrictType=DISTRICT_ROYAL_NAVY_DOCKYARD, MustBeFunctioning=false)
LOC_TRAIT_LEADER_PAX_BRITANNICA_DESCRIPTION Base
Trait TRAIT_LEADER_PAX_BRITANNICA
LOC_TRAIT_LEADER_PAX_BRITANNICA_NAME
TRAIT_FREE_MELEE_UNIT_NON_HOME_CONTINENT
MODIFIER_PLAYER_CITIES_GRANT_UNIT_BY_CLASS
UnitPromotionClassType = PROMOTION_CLASS_MELEE PLAYER_CITIES
applies to: 2 requirementsnot CITY_IS_OWNER_CAPITAL_CONTINENT
CITY_TRANSFER_TYPE_MATCHES (TransferType=BY_SETTLER)
LOC_TRAIT_LEADER_PAX_BRITANNICA_DESCRIPTION Base