Skip to content

Commit 0648f90

Browse files
authored
Merge pull request #600 from Zemnmez/update-ck3
update ck3
2 parents 96b713c + 95ffd92 commit 0648f90

File tree

2,822 files changed

+293241
-262305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,822 files changed

+293241
-262305
lines changed

project/ck3/base_game/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ filegroup(
88
),
99
)
1010

11-
exports_files(glob(["**/*"]))
11+
exports_files(glob(["**/*"]))

project/ck3/base_game/common/achievement_groups.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ group = {
3838
"ep1_03_achievement"
3939
"ep1_06_achievement"
4040
"ep1_18_achievement"
41+
# FP2
42+
"fp2_historys_best_friends"
43+
"fp2_basque_in_my_glory"
44+
"fp2_friendship_is_magic"
4145
}
4246
}
4347

@@ -73,6 +77,12 @@ group = {
7377
"ep1_14_achievement"
7478
"ep1_17_achievement"
7579
"ep1_20_achievement"
80+
# FP2
81+
"fp2_high_stakes_chess"
82+
"fp2_iberia_or_iberia"
83+
"fp2_iberian_hostilities"
84+
"fp2_iberian_conciliation"
85+
"fp2_iberian_compromise"
7686
}
7787
}
7888

@@ -106,6 +116,9 @@ group = {
106116
"ep1_12_achievement"
107117
"ep1_13_achievement"
108118
"ep1_16_achievement"
119+
# FP2
120+
"fp2_andalusian_inquisition"
121+
"fp2_holiday_in_iberia"
109122
}
110123
}
111124

@@ -123,5 +136,7 @@ group= {
123136
# EP1
124137
"ep1_15_achievement"
125138
"ep1_19_achievement"
139+
# FP2
140+
"fp2_el_cid_achievement"
126141
}
127142
}
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
fp2_historys_best_friends = { # History's Best Friend
2+
possible = {
3+
has_fp2_dlc_trigger = yes
4+
}
5+
happened = {
6+
custom_description = {
7+
text = fp2_historys_best_friends_trigger
8+
exists = global_var:fp2_historys_best_friends_achievement_unlocked
9+
}
10+
}
11+
}
12+
13+
fp2_basque_in_my_glory = {
14+
possible = {
15+
has_fp2_dlc_trigger = yes
16+
}
17+
happened = {
18+
custom_description = {
19+
text = fp2_basque_in_my_glory_trigger
20+
exists = global_var:fp2_basque_in_my_glory_achievement_unlocked
21+
}
22+
}
23+
}
24+
25+
fp2_friendship_is_magic = {
26+
possible = {
27+
has_fp2_dlc_trigger = yes
28+
fp2_character_involved_in_struggle_trigger = yes
29+
}
30+
happened = {
31+
custom_description = {
32+
text = fp2_friendship_is_magic_trigger
33+
exists = global_var:fp2_friendship_is_magic_achievement_unlocked
34+
}
35+
}
36+
}
37+
38+
fp2_high_stakes_chess = {
39+
possible = {
40+
has_fp2_dlc_trigger = yes
41+
}
42+
happened = {
43+
custom_description = {
44+
text = fp2_high_stakes_chess_trigger
45+
exists = global_var:fp2_high_stakes_chess_achievement_unlocked
46+
}
47+
}
48+
}
49+
50+
fp2_iberia_or_iberia = {
51+
possible = {
52+
has_fp2_dlc_trigger = yes
53+
NOT = {
54+
is_target_in_global_variable_list = {
55+
name = unavailable_achievements
56+
target = flag:rd_character_blocked_iberia_or_iberia_achievement
57+
}
58+
}
59+
}
60+
happened = {
61+
custom_description = {
62+
text = fp2_iberia_or_iberia_trigger
63+
is_ai = no
64+
culture = { has_cultural_pillar = heritage_iberian }
65+
completely_controls_region = dlc_fp2_caucasian_iberia # custom_ireland can be used instead of dlc_fp2_caucasian_iberia for testing, otherwise use debug.411
66+
}
67+
}
68+
}
69+
70+
fp2_andalusian_inquisition = {
71+
possible = {
72+
has_fp2_dlc_trigger = yes
73+
}
74+
happened = {
75+
custom_description = {
76+
text = fp2_andalusian_inquisition_trigger
77+
is_ai = no
78+
any_county_in_region = {
79+
region = world_europe_west_iberia
80+
count = all
81+
faith = faith:mozarabic_church
82+
}
83+
}
84+
}
85+
}
86+
87+
fp2_iberian_hostilities = {
88+
possible = {
89+
has_fp2_dlc_trigger = yes
90+
}
91+
happened = {
92+
custom_description = {
93+
text = fp2_iberian_hostilities_trigger
94+
exists = global_var:fp2_iberian_hostilities_achievement_unlocked
95+
}
96+
}
97+
}
98+
99+
fp2_iberian_conciliation = {
100+
possible = {
101+
has_fp2_dlc_trigger = yes
102+
}
103+
happened = {
104+
custom_description = {
105+
text = fp2_iberian_conciliation_trigger
106+
exists = global_var:fp2_iberian_conciliation_achievement_unlocked
107+
}
108+
}
109+
}
110+
111+
fp2_iberian_compromise = {
112+
possible = {
113+
has_fp2_dlc_trigger = yes
114+
}
115+
happened = {
116+
custom_description = {
117+
text = fp2_iberian_compromise_trigger
118+
exists = global_var:fp2_iberian_compromise_achievement_unlocked
119+
}
120+
}
121+
}
122+
123+
fp2_holiday_in_iberia = {
124+
possible = {
125+
has_fp2_dlc_trigger = yes
126+
exists = global_var:fp2_holiday_in_iberia_achievement_unlocked
127+
}
128+
happened = {
129+
custom_description = {
130+
text = fp2_holiday_in_iberia_trigger
131+
global_var:fp2_holiday_in_iberia_achievement_unlocked = yes
132+
}
133+
}
134+
}
135+
136+
fp2_el_cid_achievement = {
137+
possible = {
138+
has_fp2_dlc_trigger = yes
139+
game_start_date > 1045
140+
NOT = {
141+
is_target_in_global_variable_list = {
142+
name = unavailable_achievements
143+
target = flag:rd_character_blocked_el_cid_achievement
144+
}
145+
}
146+
}
147+
happened = {
148+
custom_description = {
149+
text = fp2_el_cid_achievement_trigger
150+
exists = global_var:fp2_el_cid_achievement_unlocked
151+
}
152+
}
153+
}
154+
155+
156+
# fp2_00_achievement = {
157+
# possible = {
158+
# has_fp2_dlc_trigger = yes
159+
# }
160+
# happened = {
161+
# custom_description = {
162+
# text = fp2_00_achievement_trigger
163+
# #
164+
# }
165+
# }
166+
# }

project/ck3/base_game/common/achievements/msgrdk_achievements.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,50 @@
343343
{
344344
"pdx_id": "ep1_20_achievement",
345345
"xbla_id": "86"
346+
},
347+
{
348+
"pdx_id": "fp2_historys_best_friends",
349+
"xbla_id": "87"
350+
},
351+
{
352+
"pdx_id": "fp2_basque_in_my_glory",
353+
"xbla_id": "88"
354+
},
355+
{
356+
"pdx_id": "fp2_friendship_is_magic",
357+
"xbla_id": "89"
358+
},
359+
{
360+
"pdx_id": "fp2_high_stakes_chess",
361+
"xbla_id": "90"
362+
},
363+
{
364+
"pdx_id": "fp2_iberia_or_iberia",
365+
"xbla_id": "91"
366+
},
367+
{
368+
"pdx_id": "fp2_andalusian_inquisition",
369+
"xbla_id": "92"
370+
},
371+
{
372+
"pdx_id": "fp2_iberian_hostilities",
373+
"xbla_id": "93"
374+
},
375+
{
376+
"pdx_id": "fp2_iberian_conciliation",
377+
"xbla_id": "94"
378+
},
379+
{
380+
"pdx_id": "fp2_iberian_compromise",
381+
"xbla_id": "95"
382+
},
383+
{
384+
"pdx_id": "fp2_holiday_in_iberia",
385+
"xbla_id": "96"
386+
},
387+
{
388+
"pdx_id": "fp2_el_cid_achievement",
389+
"xbla_id": "97"
346390
}
347391
]
348392
}

project/ck3/base_game/common/achievements/standard_achievements.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ a_legacy_to_last_the_ages_achievement = {
8888
has_dynasty_perk = fp1_adventure_legacy_5
8989
has_dynasty_perk = fp1_pillage_legacy_5
9090
has_dynasty_perk = ep1_culture_legacy_5
91+
has_dynasty_perk = fp2_urbanism_legacy_5
92+
has_dynasty_perk = fp2_coterie_legacy_5
9193
}
9294
}
9395
}
@@ -116,6 +118,14 @@ a_legacy_to_last_the_ages_achievement = {
116118
has_dlc_feature = hybridize_culture
117119
has_dynasty_perk = ep1_culture_legacy_5
118120
}
121+
#FP2
122+
AND = {
123+
has_fp2_dlc_trigger = yes
124+
OR = {
125+
has_dynasty_perk = fp2_urbanism_legacy_5
126+
has_dynasty_perk = fp2_coterie_legacy_5
127+
}
128+
}
119129
}
120130
}
121131
}

project/ck3/base_game/common/activities/00_activity_feast.txt

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
accept_invitation_for_character = activity_owner
1515

1616
activity_owner = {
17+
# Check for special guest and make sure they join the party; the acceptance was done in the interaction
18+
invite_special_guest_to_activity_effect = yes
19+
1720
#Start by setting the "host spouse"
1821
if = {
1922
limit = {
@@ -58,7 +61,7 @@
5861
every_child = {
5962
limit = {
6063
is_available_for_activity_trigger = yes
61-
liege = root
64+
liege = scope:activity.activity_owner
6265
OR = {
6366
is_adult = yes
6467
is_landed = yes
@@ -69,14 +72,14 @@
6972
every_parent = {
7073
limit = {
7174
is_available_for_activity_trigger = yes
72-
liege = root
75+
liege = scope:activity.activity_owner
7376
}
7477
add_to_temporary_list = potential_guests
7578
}
7679
every_sibling = {
7780
limit = {
7881
is_available_for_activity_trigger = yes
79-
liege = root
82+
liege = scope:activity.activity_owner
8083
OR = {
8184
is_adult = yes
8285
is_landed = yes
@@ -100,7 +103,7 @@
100103
}
101104
exists = scheme_target
102105
scheme_target = {
103-
liege = root
106+
liege = scope:activity.activity_owner
104107
}
105108
}
106109
scheme_target = {
@@ -143,7 +146,6 @@
143146
trigger_event = feast.1503
144147
}
145148
}
146-
147149
}
148150
}
149151
on_activate = {
@@ -162,7 +164,7 @@
162164
}
163165
}
164166
else = {
165-
# If there are guests present
167+
# If there are guests present
166168
activity_owner = { # The host gets their events
167169
# The key event is chosen for the host, and fires other events from there to every participant:
168170
trigger_event = feast.0001
@@ -189,6 +191,33 @@
189191
#Remove blocker for invitations to feasts (the feast is now active and will work as a blocker)
190192
remove_variable = booked_for_a_party
191193
}
194+
195+
# Struggle Catalysts
196+
if = {
197+
limit = {
198+
# At least one participant is involved and of a different faith or culture
199+
any_participant = {
200+
any_character_struggle = {
201+
involvement = involved
202+
phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast
203+
}
204+
is_diff_faith_or_culture_trigger = {
205+
CHAR = scope:activity.activity_owner
206+
STATUS = involved
207+
STRUGGLE_TYPE = iberian_struggle
208+
}
209+
}
210+
}
211+
activity_owner = {
212+
every_character_struggle = {
213+
involvement = involved
214+
activate_struggle_catalyst = {
215+
catalyst = catalyst_invite_diff_faith_culture_to_feast
216+
character = scope:activity.activity_owner
217+
}
218+
}
219+
}
220+
}
192221
}
193222
}
194223
on_complete = {

project/ck3/base_game/common/activities/00_activity_hunt.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ activity_hunt = {
265265
}
266266
}
267267
}
268+
269+
# Check for special guest and make sure they join the party; the acceptance was done in the interaction
270+
invite_special_guest_to_activity_effect = yes
268271
}
269272
scope:activity = {
270273
activity_province = {

0 commit comments

Comments
 (0)