Skip to content

Commit

Permalink
Merge branch 'dev' into bug-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Helliaca authored Jun 21, 2024
2 parents a6ff4c4 + 507e21e commit 7236b57
Show file tree
Hide file tree
Showing 14 changed files with 77 additions and 32 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: Read patch notes
id: patch-notes
run: |
# Read the contents of patch_notes.txt
patch_notes=$(cat patch_notes.txt)
# Read the contents of patch_notes.txt and base64 encode it
patch_notes=$(cat patch_notes.txt | base64)
echo "patch_notes=$patch_notes" >> $GITHUB_OUTPUT
- name: Create Release
Expand All @@ -45,6 +45,6 @@ jobs:
body: |
Compatible HoI4 Version: v${{ steps.get-version.outputs.compatible_version }}
${{ steps.patch-notes.outputs.patch_notes }}
$(echo '${{ steps.patch-notes.outputs.patch_notes }}' | base64 --decode)
draft: false
prerelease: false
18 changes: 9 additions & 9 deletions common/national_focus/harad.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1281,15 +1281,15 @@ focus = {
id = thepellardurendeavour
icon = GFX_goal_unknown
ai_will_do = { factor = 25 }
available = { has_civil_war = no country_exists = KND NOT = { has_war_with = KND } }
available = { has_civil_war = no country_exists = PEL NOT = { has_war_with = PEL } }
x =7
y =5
mutually_exclusive = { }
prerequisite = { focus = releasepellardur }
cost = 10
available_if_capitulated = yes
completion_reward = {
KND = {
PEL = {
add_ideas = HAR_endeavour
112 = { add_extra_state_shared_building_slots = 3 add_building_construction = { type = arms_factory level = 3 instant_build = yes } }
112 = { add_extra_state_shared_building_slots = 3 add_building_construction = { type = industrial_complex level = 3 instant_build = yes } }
Expand Down Expand Up @@ -1355,7 +1355,7 @@ focus = {
id = manufacturingefforts
icon = GFX_goal_generic_production2
ai_will_do = { factor = 5 }
available = { has_civil_war = no country_exists = KND country_exists = KND NOT = { has_war_with = KND } NOT = { has_war_with = KND } }
available = { has_civil_war = no country_exists = PEL country_exists = KND NOT = { has_war_with = KND } NOT = { has_war_with = PEL } }
x =6
y =6
mutually_exclusive = { }
Expand All @@ -1366,7 +1366,7 @@ focus = {
completion_reward = {
add_tech_bonus = { name = manufacturing_effort bonus = 0.5 uses = 1 category = industry }
KND = { add_tech_bonus = { name = manufacturing_effort bonus = 0.5 uses = 1 category = industry } }
KND = { add_tech_bonus = { name = manufacturing_effort bonus = 0.5 uses = 1 category = industry } }
PEL = { add_tech_bonus = { name = manufacturing_effort bonus = 0.5 uses = 1 category = industry } }
}
}

Expand All @@ -1375,7 +1375,7 @@ focus = {
id = thecoastalhighwayproject
icon = GFX_goal_generic_navy_cruiser
ai_will_do = { factor = 10 }
available = { has_civil_war = no country_exists = UMB country_exists = KND NOT = { has_war_with = UMB } NOT = { has_war_with = KND } }
available = { has_civil_war = no country_exists = UMB country_exists = PEL NOT = { has_war_with = UMB } NOT = { has_war_with = PEL } }
x =8
y =6
mutually_exclusive = { }
Expand Down Expand Up @@ -1461,7 +1461,7 @@ focus = {
id = thepellardurarmada
icon = GFX_goal_generic_construct_naval_dockyard
ai_will_do = { factor = 15 }
available = { has_civil_war = no country_exists = KND NOT = { has_war_with = KND } }
available = { has_civil_war = no country_exists = PEL NOT = { has_war_with = PEL } }
x =7
y =7
mutually_exclusive = { }
Expand All @@ -1471,7 +1471,7 @@ focus = {
completion_reward = {
112 = { add_extra_state_shared_building_slots = 5 add_building_construction = { type = dockyard level = 5 instant_build = yes } }
custom_effect_tooltip = HAR_pellardur_armada_tt
hidden_effect = { load_oob = "KND_Armada" }
hidden_effect = { load_oob = "PEL_Armada" }
}
}

Expand Down Expand Up @@ -1536,7 +1536,7 @@ focus = {
id = afleettofear
icon = GFX_goal_generic_navy_doctrines_tactics
ai_will_do = { factor = 20 }
available = { has_civil_war = no country_exists = KND country_exists = UMB NOT = { has_war_with = KND } NOT = { has_war_with = UMB } }
available = { has_civil_war = no country_exists = PEL country_exists = UMB NOT = { has_war_with = PEL } NOT = { has_war_with = UMB } }
x =8
y =8
mutually_exclusive = { }
Expand All @@ -1554,7 +1554,7 @@ focus = {
id = battleshipimprovement
icon = GFX_goal_generic_navy_battleship
ai_will_do = { factor = 10 }
available = { has_civil_war = no country_exists = KND country_exists = UMB NOT = { has_war_with = KND } NOT = { has_war_with = UMB } }
available = { has_civil_war = no country_exists = PEL country_exists = UMB NOT = { has_war_with = PEL } NOT = { has_war_with = UMB } }
x =8
y =9
mutually_exclusive = { }
Expand Down
4 changes: 3 additions & 1 deletion common/national_focus/lothlorien.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4513,7 +4513,6 @@ focus_tree = {
ruling_party = revolutionary
elections_allowed = no
}

hidden_effect = { news_event = { hours = 24 id = news.362 } }
}
}
Expand Down Expand Up @@ -4638,6 +4637,9 @@ focus_tree = {
completion_reward = {
# Add MP based on other commie countries and their commie suppoort
lth_add_sharedcause_mp = yes
set_rule = {
can_create_factions = yes
}
}
}

Expand Down
18 changes: 18 additions & 0 deletions common/national_focus/rivendell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,24 @@ focus_tree = {
completion_reward = { add_ideas = RIV_revisionist_regime }
}

#Focus for Global Revolution
focus = {
id = globalrevolution
icon = GFX_goal_generic_workers_and_farmers_rise_peasantry
ai_will_do = { factor = 25 }
available = { has_government = revolutionary }
relative_position_id = eraseelventraditions
x =0
y =1
mutually_exclusive = { }
prerequisite = { focus = eraseelventraditions}
cost = 10
available_if_capitulated = yes
completion_reward = {
create_faction = "global_collective"
}
}

#Focus for Keep the Skies Clear
focus = {
id = keeptheskiesclear
Expand Down
3 changes: 3 additions & 0 deletions common/national_focus/shire.txt
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,9 @@ focus = {
available_if_capitulated = yes
completion_reward = {
add_ideas = SHI_spread_the_message
set_rule = {
can_create_factions = yes
}
}
}

Expand Down
1 change: 0 additions & 1 deletion common/on_actions/00_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ on_actions = {
if = {
limit = {
tag = GON
has_government = cooperative
FROM = {
original_tag = MOR
}
Expand Down
7 changes: 2 additions & 5 deletions history/countries/HAR - Harad.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@ set_technology = {
gw_artillery = 1
basic_cav = 1
light_cav2 = 1
early_submarine = 1
basic_submarine = 1
longship_0 = 1
longship_1 = 1
war_galley_0 = 1
war_galley_0_bonus = 1
war_galley_1 = 1
early_battleship = 1
early_battlecruiser = 1
early_carrier = 1
caravel_0 = 1
transport = 1
merchant_ship = 1
trench_warfare = 1
Expand Down
17 changes: 17 additions & 0 deletions history/units/PEL_Armada.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### IJN ###
units = {
fleet = {
name = "Pellardur Armada"
naval_base =7678
task_force = {
name = "Pellardur Armada"
location = 7678
ship = { definition = caravel equipment = { caravel_hull_0 = {amount = 1 owner = PEL} } }
ship = { definition = caravel equipment = { caravel_hull_0 = {amount = 1 owner = PEL} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = PEL} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = PEL} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = PEL} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = PEL} } }
}
}
}
20 changes: 12 additions & 8 deletions history/units/UMB_Armada.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
### IJN ###
units = {
navy = {
fleet = {
name = "Umbar Armada"
base =1248
location = 1248
ship = { definition = caravel equipment = { caravel_hull_0 = {amount = 2 owner = UMB} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = UMB} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = UMB} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = UMB} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = UMB} } }
naval_base =1248
task_force = {
name = "Umbar Armada"
location = 1248
ship = { definition = caravel equipment = { caravel_hull_0 = {amount = 1 owner = UMB} } }
ship = { definition = caravel equipment = { caravel_hull_0 = {amount = 1 owner = UMB} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = UMB} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = UMB} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = UMB} } }
ship = { definition = longship equipment = { longship_hull_0 = {amount = 1 owner = UMB} } }
}
}
}
2 changes: 1 addition & 1 deletion localisation/english/achievements_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ANG_the_necromancer_NAME:0 "Somehow He Has Returned"
ANG_the_necromancer_DESC:0 "As Angmar, bring an exiled Sauron back into power"
one_ring_to_rule_them_all_NAME:0 "One Ring to Rule Them All"
one_ring_to_rule_them_all_DESC:0 "As any country, seize the Ring for yourself"
revenge_for_the_battle_of_the_five_armies_NAME:0 "Avenge the Battle of the give armies"
revenge_for_the_battle_of_the_five_armies_NAME:0 "Avenge the Battle of the Five Armies"
revenge_for_the_battle_of_the_five_armies_DESC:0 "As Gundabad, control all core states of Erebor, Mirkwood and Dale"
SHI_taking_the_hobbits_to_isengard_NAME:0 "Taking the Hobbits to Isengard"
SHI_taking_the_hobbits_to_isengard_DESC:0 "As the Shire, control all of Isengard's core states"
Expand Down
1 change: 1 addition & 0 deletions localisation/english/factions_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
eastlands_alliance:0 "The easterlings"
RHU_the_easter_defense_pact:0 "The easter defense pact"
ANG_faction_northern_alliance:0 "The Northern Alliance"
global_collective:0 "Global Collective"

# Generic factions
FACTION_NAME_COOPERATIVE_1:0 "$LEADER_COUNTRY_ADJ$ Alliance"
Expand Down
4 changes: 2 additions & 2 deletions localisation/english/harad/harad_l_english.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
l_english:
HAR_liberal_union_tt:0 "Umbar, Khand and Pellardur will be released as faction members."
HAR_authoritarian_federation_tt:0 "Umbar, Khand and Pellardur will be released as puppets."
HAR_pellardur_armada_tt:0 "Will raise 2 Heavy Cruisers and 4 Destroyes into Pellardur's navy."
HAR_umbar_armada_tt:0 "Will raise 2 Heavy Cruisers and 4 Destroyes into Umbar's navy."
HAR_pellardur_armada_tt:0 "Will raise 2 caravels and 4 longships into Pellardur's navy."
HAR_umbar_armada_tt:0 "Will raise 2 caravels and 4 longships into Umbar's navy."
politicalamelioration:0 "Political Amelioration"
constructionpursuits:0 "Construction Pursuits"
constructionpursuits_desc:0 ""
Expand Down
2 changes: 2 additions & 0 deletions localisation/english/rivendell/rivendell_focus_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ takehisring:0 "Take his Ring!"
takehisring_desc:0 ""
eraseelventraditions:0 "Erase Elven Traditions"
eraseelventraditions_desc:0 ""
globalrevolution:0 "Global Revolution"
globalrevolution_desc:0 ""
encourageareunificationofarnor:0 "Encourage a Reunification of Arnor"
encourageareunificationofarnor_desc:0 ""
keeptheskiesclear:0 "Keep the Skies Clear"
Expand Down
6 changes: 4 additions & 2 deletions patch_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ General:
- Updates some old event localization from Fascisme to Belligerent

Dorwinion:
- Added new custom icon for the Wine National Spirit (Designed by yeoudal)
- Added new custom icon for the Wine National Spirit (Contribution by yeoudal)

Dol Amroth:
- Fixed missing localization for events
Expand All @@ -25,4 +25,6 @@ Angmar:
General:
- Fixed localization and image of referendum event
- Added local supply to several states
- Significantly increasedd the bonus range you get from setting supply hubs to 'motorized'
- Significantly increasedd the bonus range you get from setting supply hubs to 'motorized'
- Allowed several revolutionary countries to create their own factions (Contribution by sealord72)

0 comments on commit 7236b57

Please sign in to comment.