-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhmo_on_office_gained.txt
169 lines (162 loc) · 2.67 KB
/
hmo_on_office_gained.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
namespace = office_gain
office_gain.3 = {
type = character_event
hidden = yes
trigger = {
exists = employer
NOT = {
employer = {
has_variable = given_innovation_country
}
}
has_tech_office = yes
OR = {
has_trait = obsessive
has_trait = intelligent
has_trait = polymath
has_trait = scholar
employer = {
is_ai = yes
}
}
NOT = {
has_variable = given_innovation_recently
}
}
weight_multiplier = {
modifier = {
factor = 1.25
has_trait = obsessive
}
modifier = {
factor = 1.25
has_trait = intelligent
}
modifier = {
factor = 1.25
has_trait = polymath
}
modifier = {
factor = 1.25
has_trait = scholar
}
modifier = {
factor = 2
employer = {
is_tribal = yes
centralization < 90 # if highly centralized, stop giving bonus
}
}
modifier = {
factor = 0.8
employer = {
is_ai = yes
}
}
}
immediate = {
save_scope_as = innovation_giver
if = {
limit = {
NOT = {
employer = {
is_tribal = yes
}
}
}
set_variable = {
name = given_innovation_recently
days = 1825
}
employer = {
set_variable = {
name = given_innovation_country
days = 730
}
}
}
else = {
set_variable = {
name = given_innovation_recently
days = 1105
}
employer = {
set_variable = {
name = given_innovation_country
days = 540
}
}
}
employer = {
trigger_event = {
id = office_gain.4
}
}
}
}
office_gain.4 = {
type = minor_country_event
left_portrait = scope:innovation_giver
title = "office_gain.4.t"
desc = "office_gain.4.desc"
interface_lock = no
option = {
name = "office_gain.4.a"
scope:innovation_giver = {
add_character_experience = 5
}
add_innovation = 1
if = {
limit = {
scope:innovation_giver.employer = {
is_tribal = yes
centralization < 90 # if highly centralized, stop giving bonus
}
}
if = {
limit = {
scope:innovation_giver = {
has_tech_office_of = military_tech
}
}
add_research = {
technology = military_tech
value = 85
}
}
else_if = {
limit = {
scope:innovation_giver = {
has_tech_office_of = civic_tech
}
}
add_research = {
technology = civic_tech
value = 85
}
}
else_if = {
limit = {
scope:innovation_giver = {
has_tech_office_of = oratory_tech
}
}
add_research = {
technology = oratory_tech
value = 85
}
}
else_if = {
limit = {
scope:innovation_giver = {
has_tech_office_of = religious_tech
}
}
add_research = {
technology = religious_tech
value = 85
}
}
}
}
}