Skip to content

Commit

Permalink
Merge pull request #179 from zijistark/beta
Browse files Browse the repository at this point in the history
EMF 3.06
  • Loading branch information
zijistark committed Feb 8, 2015
2 parents b408e0c + a51700a commit 2e4e568
Show file tree
Hide file tree
Showing 96 changed files with 210,498 additions and 1,087 deletions.
26 changes: 13 additions & 13 deletions EMF+SWMH/common/defines.lua
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,11 @@ NCharacter = {
NATURAL_DEATH_CHANCE_AGE_30 = 0, -- Natural deaths per decade out of 10000 people: Age 30-39
NATURAL_DEATH_CHANCE_AGE_40 = 51, -- Natural deaths per decade out of 10000 people: Age 40-49
NATURAL_DEATH_CHANCE_AGE_50 = 100, -- Natural deaths per decade out of 10000 people: Age 50-59
NATURAL_DEATH_CHANCE_AGE_60 = 320, -- Natural deaths per decade out of 10000 people: Age 60-69
NATURAL_DEATH_CHANCE_AGE_70 = 734, -- Natural deaths per decade out of 10000 people: Age 70-79
NATURAL_DEATH_CHANCE_AGE_80 = 1728, -- Natural deaths per decade out of 10000 people: Age 80-90
NATURAL_DEATH_CHANCE_AGE_90 = 4000, -- Natural deaths per decade out of 10000 people: Age 90-99
NATURAL_DEATH_CHANCE_AGE_100 = 8160, -- Natural deaths per decade out of 10000 people: Age 100+
NATURAL_DEATH_CHANCE_AGE_60 = 400, -- Natural deaths per decade out of 10000 people: Age 60-69
NATURAL_DEATH_CHANCE_AGE_70 = 1400, -- Natural deaths per decade out of 10000 people: Age 70-79
NATURAL_DEATH_CHANCE_AGE_80 = 3500, -- Natural deaths per decade out of 10000 people: Age 80-90
NATURAL_DEATH_CHANCE_AGE_90 = 7000, -- Natural deaths per decade out of 10000 people: Age 90-99
NATURAL_DEATH_CHANCE_AGE_100 = 9000, -- Natural deaths per decade out of 10000 people: Age 100+
FERTILITY_BASE_MULT = 0.50, -- Base fertility multiplier to adjust the base chance of impregnation
SECONDARY_SPOUSE_FERTILITY_MULT = 0.25, -- Applied to fertility of secondary spouses and concubines
NOT_SPOUSE_FERTILITY_MULT = 0.25, -- Applied to fertility when the two characters are not married
Expand Down Expand Up @@ -715,7 +715,7 @@ NEconomy = {
REPUBLIC_COASTAL_CITY_TAX_BONUS = 0.3, -- Republics (at least Count tier) receive a tax bonus for all coastal cities in their realm
REPUBLIC_CAPITAL_CITY_TAX_BONUS = 1.25, -- Duke or above tier Republics receive a tax bonus for their capital city
BISHOP_TAX_TO_POPE_FACTOR = 0.1, -- Bishops only pay half the tax to the Pope if they are loyal to him
BISHOP_TAX_TO_ANTI_POPE_FACTOR = 0.1, -- Bishops only pay a quarter taxes to an Anti-Pope if they are loyal to him
BISHOP_TAX_TO_ANTI_POPE_FACTOR = 0.05, -- Bishops only pay a quarter taxes to an Anti-Pope if they are loyal to him
DECADENCE_MODIFIER = 0.2, -- Maximum effect of decadence, positive for low dec, negative for high
DECADENCE_PER_WEEK_OF_COMBAT = -0.04, -- Decadence lost per 7 days of combat, for each participant in the combat
DECADENCE_PER_WEEK_OF_SIEGE = -0.008, -- Decadence lost per 7 days of siege, for each participant in the siege
Expand Down Expand Up @@ -787,7 +787,7 @@ NMilitary = {
HOLY_ORDER_HIRE_COST_FACTOR = 0.25, -- Conversion of nominal gold cost to piety cost when hiring Holy Orders
HOLY_ORDER_DYNASTY_HIRE_COST_FACTOR = 0.25, -- Reduction of cost if the Holy Order is controlled by a dynasty member
VASSAL_MERC_HIRE_COST_FACTOR = 0.125, -- Fraction of nominal hire cost when hiring vassal mercenaries OR Holy Orders
MERCENARY_HIRE_DISTANCE_THRESHOLD = 700, -- Mercs will not be available if the province of origin is more distant from your capital
MERCENARY_HIRE_DISTANCE_THRESHOLD = 750, -- Mercs will not be available if the province of origin is more distant from your capital
OPINION_WHEN_MARSHAL_INSTEAD_OF_SELF = 25, -- Below this opinion value a vassal tends to use his marshal instead of himself when someone asks to raise his troops
OPINION_WHEN_NO_LEADER = -100, -- Below this opinion a vassal will not supply a leader for subunits at all
BATTLE_WARSCORE_WORTH = 100, -- Warscore from battles are multiplied with this value
Expand Down Expand Up @@ -816,7 +816,7 @@ NMilitary = {
LEVY_RAISED_REINFORCE_RATE_MULTIPLIER = 0.5, -- The rate at which the garrison/levy reinforce when the levy is raised
BATTLE_PIETY_MULTIPLIER = 0.5, -- Piety gain/loss multiplier. This is based on the prestige value, so a value of 1 gives a leader as much piety as he gains prestige from combat
SIEGE_PIETY_MULTIPLIER = 0.2, -- Piety gain/loss multiplier for sieges
SIEGE_WEALTH_MULTIPLIER = 1.5, -- Wealth gain/loss multiplier for sieges
SIEGE_WEALTH_MULTIPLIER = 1, -- Wealth gain/loss multiplier for sieges
CAPITAL_WARSCORE_MULTIPLIER = 1.25, -- Warscore multiplier for capital(this is scaled with SETTLEMENT_WARSCORE_MULTIPLIER)
SETTLEMENT_WARSCORE_MULTIPLIER = 0.3, -- Warscore worth for occupied private demesne
VASSAL_SETTLEMENT_WARSCORE_MULTIPLIER = 0.3, -- Warscore worth for occupied vassals
Expand Down Expand Up @@ -964,7 +964,7 @@ NMilitary = {
SPECIAL_TROOPS_PHASE_SKIRMISH_DEFENSE = 4,
SPECIAL_TROOPS_PHASE_MELEE_DEFENSE = 4,
SPECIAL_TROOPS_PHASE_PURSUE_DEFENSE = 7,
SPECIAL_TROOPS_GRAPHICAL_FACTOR = 20.0,
SPECIAL_TROOPS_GRAPHICAL_FACTOR = 4.0,

GALLEYS_MORALE = 1,
GALLEYS_MAINTENANCE = 300,
Expand All @@ -986,7 +986,7 @@ NMilitary = {
BOTTLENECK_CHANCE_MAX = 100,
BOTTLENECK_CHOKE_TROOP_CAP = 300, -- THIS IS SPARTAAAAAAAAA!!!!

REBEL_LEADER_MINIMUM_LIEGE_LEVY_MULT = 1.0, -- Leader of a civil war will always get at least this multiplier of levies from fellow rebels
REBEL_LEADER_MINIMUM_LIEGE_LEVY_MULT = 1, -- Leader of a civil war will always get at least this multiplier of levies from fellow rebels
CAPITAL_COUNTY_VASSAL_COUNT_LEVY_MULT = 1, -- Used instead of CAPITAL_COUNTY_LEVY_MULT for vassal counts
CAPITAL_COUNTY_VASSAL_LEVY_MULT = 1.25, -- Used instead of CAPITAL_COUNTY_LEVY_MULT for non-count vassals
CAPITAL_COUNTY_LEVY_MULT = 1.5, -- Multiplier to direct levies in the capital county
Expand Down Expand Up @@ -1066,8 +1066,8 @@ NAI =
PEACEAI_INITIAL_DEFENDER_WARSCORE_RELUCTANCE = -10, -- Initial defender (warscore) reluctance for accepting whitepeace
MIL_AI_COUNTER_INVADE_DISTANCE_THRESHOLD = 120, -- Defenders in wars will not counter invade past this distance
CRUSADE_CREATION_MONTH_DELAY = 360, -- Months from the end of one Crusade before the AI will call a new one
NAVAL_INVASION_RANGE = 150, -- Factor which increase AI invasion range if set higher
DOW_AGGRESSION_FACTOR = 0.5, -- General aggressiveness declarations of war
NAVAL_INVASION_RANGE = 100, -- Factor which increase AI invasion range if set higher
DOW_AGGRESSION_FACTOR = 0.6, -- General aggressiveness declarations of war
REVOLT_AGGRESSION_FACTOR = 0.75, -- General aggressiveness for revolts against the liege
REVOLT_DISTANCE_FACTOR = 1.0, -- Multiplier for how much distance from capital affects independence minded revolters
REVOLT_OTHER_INDEP_RISK = 20, -- Each ongoing other independence revolt increases revolt risk by this amount for all independence-minded revolters
Expand All @@ -1081,7 +1081,7 @@ NAI =
AI_ASSAULT_RATIO = 15, -- AI will launch assaults at this ratio of attackers to defenders
HARD_DIFF_AI_ATTRITION = 0.5, -- AI attrition multiplier at Hard difficulty
V_HARD_DIFF_AI_ATTRITION = 0.25, -- AI attrition multiplier at Very Hard difficulty
MINIMUM_IMPRISONED_YEARS = 3, -- AI will keep a newly imprisoned character locked up at least this long before releasing them (reduced for important characters)
MINIMUM_IMPRISONED_YEARS = 2, -- AI will keep a newly imprisoned character locked up at least this long before releasing them (reduced for important characters)
BASE_AI_ARMY_SIZE = 10000, -- Base size that AI will use when forming armies (multiplied by supply tech)
DESIRED_CONSORTS = 0, -- AI will always want at least this many concubines, if they lack sons
RAID_MAX_REALM_SIZE = 32, -- Realms with more holdings than this will never go on Raids
Expand Down
59 changes: 59 additions & 0 deletions EMF+SWMH/events/emf_nwo_map.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

# Map-specific parts of emf_nwo implementation (SWMH version)

namespace = emf_nwo

# emf_nwo.41 [Isis]
#
# Adjust the de jure title structure of the map to be better-suited for
# New World Order. [SWMH-specific adjustments]
#
# If run a second or third time, this event should safely do nothing.
character_event = {
id = emf_nwo.41
desc = AI_EVENT
hide_window = yes
is_triggered_only = yes

option = {
name = OK

# Consolidate some of the minor HRE stem duchies into larger kingdoms ...

k_frisia = { any_direct_de_jure_vassal_title = { de_jure_liege = k_lower_lorraine } }
activate_title = { title = k_frisia status = no }

k_upper_lorraine = { any_direct_de_jure_vassal_title = { de_jure_liege = k_lower_lorraine } }
activate_title = { title = k_upper_lorraine status = no }

k_carinthia = { any_direct_de_jure_vassal_title = { de_jure_liege = k_bavaria } }
activate_title = { title = k_carinthia status = no }

# Swap out the HRE stem duchy kingdom titles for ones without name_tier = duke and normal
# creation conditions ...

k_lower_lorraine = { any_direct_de_jure_vassal_title = { de_jure_liege = k_emf_lower_lorraine } }
k_saxony = { any_direct_de_jure_vassal_title = { de_jure_liege = k_emf_saxony } }
k_franconia = { any_direct_de_jure_vassal_title = { de_jure_liege = k_emf_franconia } }
k_bavaria = { any_direct_de_jure_vassal_title = { de_jure_liege = k_emf_bavaria } }
k_schwaben = { any_direct_de_jure_vassal_title = { de_jure_liege = k_emf_schwaben } }

activate_title = { title = k_lower_lorraine status = no }
activate_title = { title = k_saxony status = no }
activate_title = { title = k_franconia status = no }
activate_title = { title = k_bavaria status = no }
activate_title = { title = k_schwaben status = no }

# Get rid of the greater theocratic Patrimonium Sancti Petri and let Lombardia have it ...

k_patrimoniumpetri = { any_direct_de_jure_vassal_title = { de_jure_liege = k_italy } }

if = {
limit = { has_global_flag = emf_nwo_king }
activate_title = { title = k_patrimoniumpetri status = no }
break = yes
}

d_latium = { de_jure_liege = k_patrimoniumpetri }
}
}
Loading

0 comments on commit 2e4e568

Please sign in to comment.