Skip to content

Commit 1ff1dae

Browse files
committed
SIS v1.12.1
1 parent 20653a7 commit 1ff1dae

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

Subject Interaction Suite/common/diplomatic_actions/yMoG_S10_offer_convoy_contribution.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
cost = 0
2828
# forced_duration = 6
2929

30-
# is_two_sided_pact = no
30+
is_two_sided_pact = no
3131
show_in_outliner = yes
3232

3333
relations_progress_per_day = 1.5
@@ -51,7 +51,10 @@
5151
requirement_to_maintain = {
5252
trigger = {
5353
ROOT = {
54-
excess_convoy_surplus_percent > 0
54+
custom_tooltip = {
55+
text = "TRIGGER_COUNTRY_EXCESS_CONVOY_SURPLUS_PERCENT_GREATER_THAN"
56+
excess_convoy_surplus_percent > 0
57+
}
5558
}
5659
}
5760
}
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# We are using this to identify when a country can afford to give away 30% of its convoy production.
22
excess_convoy_surplus_percent = {
3-
add = num_convoys_required
4-
divide = num_convoys_available # Result is 0.7 if has enough to give away.
5-
add = -1 # If result >0, then has enough to give away.
3+
add = {
4+
add = num_convoys_required
5+
min = 1
6+
}
7+
divide = {
8+
add = num_convoys_available # Result is 0.7 or lower if has enough to give away.
9+
min = 1
10+
} # We have currently calculated **usage** as a %
11+
multiply = -1
12+
add = 1 # (1-usage)=[surplus as proportion of total] (which must be >0.3)
13+
14+
add = -0.3 # If result >0, then has enough to give away.
615
}

Subject Interaction Suite/gfx/interface/icons/lens_toolbar_icons/occ_offer_convoy.dds renamed to Subject Interaction Suite/gfx/interface/icons/lens_toolbar_icons/occ_offer_convoys.dds

File renamed without changes.

Subject Interaction Suite/localization/replace/offer_convoys_SIS_l_english.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88
occ_offer_convoys_action_break_name: "Cancel Increased Convoy Contributions"
99
occ_offer_convoys_pact_desc: "[SCOPE.GetRootScope.GetDiplomaticPact.GetFirstCountry.GetName] offers to increase convoy contributions to [SCOPE.GetRootScope.GetDiplomaticPact.GetSecondCountry.GetName]."
1010
occ_offer_convoys_action_notification_break_name: "[INITIATOR_COUNTRY.GetName] cancelled increased convoy contributions"
11-
occ_offer_convoys_action_notification_break_desc: "[INITIATOR_COUNTRY.GetName] has restored convoy contributions to their regular level."
11+
occ_offer_convoys_action_notification_break_desc: "[INITIATOR_COUNTRY.GetName] has restored convoy contributions to their regular level."
12+
13+
TRIGGER_COUNTRY_EXCESS_CONVOY_SURPLUS_PERCENT_GREATER_THAN: "Surplus [concept_convoys] after sharing is #b not#! greater than #BOLD 0%#! (currently: [ROOT.GetCountry.MakeScope.ScriptValue('excess_convoy_surplus_percent')|v%])"

0 commit comments

Comments
 (0)