|
1 | 1 | [
|
| 2 | + { |
| 3 | + "type": "effect_on_condition", |
| 4 | + "id": "EOC_MAGICLYSM_CAPTURE_DIFFICULTY_AND_CASTING_TIME", |
| 5 | + "eoc_type": "EVENT", |
| 6 | + "required_event": "spellcasting_finish", |
| 7 | + "effect": [ |
| 8 | + { "math": [ "u_last_spell_cast_difficulty = _difficulty" ] }, |
| 9 | + { "math": [ "u_last_spell_cast_casting_time = _cast_time" ] }, |
| 10 | + { |
| 11 | + "math": [ "_adjustments = ( u_last_spell_cast_difficulty * (sqrt(u_last_spell_cast_casting_time / 100) ) )" ] |
| 12 | + }, |
| 13 | + { |
| 14 | + "u_message": "Your last spell was Difficulty <u_val:last_spell_cast_difficulty> with casting time <u_val:last_spell_cast_casting_time>. The adjustments value is <context_val:adjustments>.", |
| 15 | + "type": "debug" |
| 16 | + } |
| 17 | + ] |
| 18 | + }, |
2 | 19 | {
|
3 | 20 | "type": "effect_on_condition",
|
4 | 21 | "id": "EOC_SPELLCASTING_EVOCATION_PROFICIENCY_ADD",
|
|
16 | 33 | "if": { "math": [ "u_proficiency('prof_magic_evocation_master', 'format': 'percent') >= 100" ] },
|
17 | 34 | "then": [ { "math": [ "u_prof_level = 3" ] }, { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] } ],
|
18 | 35 | "else": [
|
19 |
| - { "math": [ "u_proficiency('prof_magic_evocation_master', 'format': 'percent') += rng(1,4) / 64" ] }, |
| 36 | + { |
| 37 | + "math": [ "u_proficiency('prof_magic_evocation_master', 'format': 'percent') += casting_proficiency_master_xp_modifier()" ] |
| 38 | + }, |
20 | 39 | { "math": [ "u_prof_level = 2" ] },
|
21 | 40 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
22 | 41 | ]
|
23 | 42 | }
|
24 | 43 | ],
|
25 | 44 | "else": [
|
26 |
| - { "math": [ "u_proficiency('prof_magic_evocation_apprentice', 'format': 'percent') += rng(1,4) / 32" ] }, |
| 45 | + { |
| 46 | + "math": [ |
| 47 | + "u_proficiency('prof_magic_evocation_apprentice', 'format': 'percent') += casting_proficiency_apprentice_xp_modifier()" |
| 48 | + ] |
| 49 | + }, |
27 | 50 | { "math": [ "u_prof_level = 1" ] },
|
28 | 51 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
29 | 52 | ]
|
30 | 53 | }
|
31 | 54 | ],
|
32 | 55 | "else": [
|
33 |
| - { "math": [ "u_proficiency('prof_magic_evocation_beginner', 'format': 'percent') += rng(1,4) / 16" ] }, |
| 56 | + { |
| 57 | + "math": [ "u_proficiency('prof_magic_evocation_beginner', 'format': 'percent') += casting_proficiency_beginner_xp_modifier()" ] |
| 58 | + }, |
34 | 59 | { "math": [ "u_prof_level = 0" ] },
|
35 | 60 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
36 | 61 | ]
|
|
54 | 79 | "if": { "math": [ "u_proficiency('prof_magic_channel_master', 'format': 'percent') >= 100" ] },
|
55 | 80 | "then": [ { "math": [ "u_prof_level = 3" ] }, { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] } ],
|
56 | 81 | "else": [
|
57 |
| - { "math": [ "u_proficiency('prof_magic_channel_master', 'format': 'percent') += rng(1,4) / 64" ] }, |
| 82 | + { |
| 83 | + "math": [ "u_proficiency('prof_magic_channel_master', 'format': 'percent') += casting_proficiency_master_xp_modifier()" ] |
| 84 | + }, |
58 | 85 | { "math": [ "u_prof_level = 2" ] },
|
59 | 86 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
60 | 87 | ]
|
61 | 88 | }
|
62 | 89 | ],
|
63 | 90 | "else": [
|
64 |
| - { "math": [ "u_proficiency('prof_magic_channel_apprentice', 'format': 'percent') += rng(1,4) / 32" ] }, |
| 91 | + { |
| 92 | + "math": [ |
| 93 | + "u_proficiency('prof_magic_channel_apprentice', 'format': 'percent') += casting_proficiency_apprentice_xp_modifier()" |
| 94 | + ] |
| 95 | + }, |
65 | 96 | { "math": [ "u_prof_level = 1" ] },
|
66 | 97 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
67 | 98 | ]
|
68 | 99 | }
|
69 | 100 | ],
|
70 | 101 | "else": [
|
71 |
| - { "math": [ "u_proficiency('prof_magic_channel_beginner', 'format': 'percent') += rng(1,4) / 16" ] }, |
| 102 | + { |
| 103 | + "math": [ "u_proficiency('prof_magic_channel_beginner', 'format': 'percent') += casting_proficiency_beginner_xp_modifier()" ] |
| 104 | + }, |
72 | 105 | { "math": [ "u_prof_level = 0" ] },
|
73 | 106 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
74 | 107 | ]
|
|
92 | 125 | "if": { "math": [ "u_proficiency('prof_magic_summon_master', 'format': 'percent') >= 100" ] },
|
93 | 126 | "then": [ { "math": [ "u_prof_level = 3" ] }, { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] } ],
|
94 | 127 | "else": [
|
95 |
| - { "math": [ "u_proficiency('prof_magic_summon_master', 'format': 'percent') += rng(1,4) / 64" ] }, |
| 128 | + { |
| 129 | + "math": [ "u_proficiency('prof_magic_summon_master', 'format': 'percent') += casting_proficiency_master_xp_modifier()" ] |
| 130 | + }, |
96 | 131 | { "math": [ "u_prof_level = 2" ] },
|
97 | 132 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
98 | 133 | ]
|
99 | 134 | }
|
100 | 135 | ],
|
101 | 136 | "else": [
|
102 |
| - { "math": [ "u_proficiency('prof_magic_summon_apprentice', 'format': 'percent') += rng(1,4) / 32" ] }, |
| 137 | + { |
| 138 | + "math": [ "u_proficiency('prof_magic_summon_apprentice', 'format': 'percent') += casting_proficiency_apprentice_xp_modifier()" ] |
| 139 | + }, |
103 | 140 | { "math": [ "u_prof_level = 1" ] },
|
104 | 141 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
105 | 142 | ]
|
106 | 143 | }
|
107 | 144 | ],
|
108 | 145 | "else": [
|
109 |
| - { "math": [ "u_proficiency('prof_magic_summon_beginner', 'format': 'percent') += rng(1,4) / 16" ] }, |
| 146 | + { |
| 147 | + "math": [ "u_proficiency('prof_magic_summon_beginner', 'format': 'percent') += casting_proficiency_beginner_xp_modifier()" ] |
| 148 | + }, |
110 | 149 | { "math": [ "u_prof_level = 0" ] },
|
111 | 150 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
112 | 151 | ]
|
|
130 | 169 | "if": { "math": [ "u_proficiency('prof_magic_enhancement_master', 'format': 'percent') >= 100" ] },
|
131 | 170 | "then": [ { "math": [ "u_prof_level = 3" ] }, { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] } ],
|
132 | 171 | "else": [
|
133 |
| - { "math": [ "u_proficiency('prof_magic_enhancement_master', 'format': 'percent') += rng(1,4) / 64" ] }, |
| 172 | + { |
| 173 | + "math": [ "u_proficiency('prof_magic_enhancement_master', 'format': 'percent') += casting_proficiency_master_xp_modifier()" ] |
| 174 | + }, |
134 | 175 | { "math": [ "u_prof_level = 2" ] },
|
135 | 176 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
136 | 177 | ]
|
137 | 178 | }
|
138 | 179 | ],
|
139 | 180 | "else": [
|
140 |
| - { "math": [ "u_proficiency('prof_magic_enhancement_apprentice', 'format': 'percent') += rng(1,4) / 32" ] }, |
| 181 | + { |
| 182 | + "math": [ |
| 183 | + "u_proficiency('prof_magic_enhancement_apprentice', 'format': 'percent') += casting_proficiency_apprentice_xp_modifier()" |
| 184 | + ] |
| 185 | + }, |
141 | 186 | { "math": [ "u_prof_level = 1" ] },
|
142 | 187 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
143 | 188 | ]
|
144 | 189 | }
|
145 | 190 | ],
|
146 | 191 | "else": [
|
147 |
| - { "math": [ "u_proficiency('prof_magic_enhancement_beginner', 'format': 'percent') += rng(1,4) / 16" ] }, |
| 192 | + { |
| 193 | + "math": [ |
| 194 | + "u_proficiency('prof_magic_enhancement_beginner', 'format': 'percent') += casting_proficiency_beginner_xp_modifier()" |
| 195 | + ] |
| 196 | + }, |
148 | 197 | { "math": [ "u_prof_level = 0" ] },
|
149 | 198 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
150 | 199 | ]
|
|
168 | 217 | "if": { "math": [ "u_proficiency('prof_magic_enervation_master', 'format': 'percent') >= 100" ] },
|
169 | 218 | "then": [ { "math": [ "u_prof_level = 3" ] }, { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] } ],
|
170 | 219 | "else": [
|
171 |
| - { "math": [ "u_proficiency('prof_magic_enervation_master', 'format': 'percent') += rng(1,4) / 64" ] }, |
| 220 | + { |
| 221 | + "math": [ "u_proficiency('prof_magic_enervation_master', 'format': 'percent') += casting_proficiency_master_xp_modifier()" ] |
| 222 | + }, |
172 | 223 | { "math": [ "u_prof_level = 2" ] },
|
173 | 224 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
174 | 225 | ]
|
175 | 226 | }
|
176 | 227 | ],
|
177 | 228 | "else": [
|
178 |
| - { "math": [ "u_proficiency('prof_magic_enervation_apprentice', 'format': 'percent') += rng(1,4) / 32" ] }, |
| 229 | + { |
| 230 | + "math": [ |
| 231 | + "u_proficiency('prof_magic_enervation_apprentice', 'format': 'percent') += casting_proficiency_apprentice_xp_modifier()" |
| 232 | + ] |
| 233 | + }, |
179 | 234 | { "math": [ "u_prof_level = 1" ] },
|
180 | 235 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
181 | 236 | ]
|
182 | 237 | }
|
183 | 238 | ],
|
184 | 239 | "else": [
|
185 |
| - { "math": [ "u_proficiency('prof_magic_enervation_beginner', 'format': 'percent') += rng(1,4) / 16" ] }, |
| 240 | + { |
| 241 | + "math": [ "u_proficiency('prof_magic_enervation_beginner', 'format': 'percent') += casting_proficiency_beginner_xp_modifier()" ] |
| 242 | + }, |
186 | 243 | { "math": [ "u_prof_level = 0" ] },
|
187 | 244 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
188 | 245 | ]
|
|
206 | 263 | "if": { "math": [ "u_proficiency('prof_magic_conveyance_master', 'format': 'percent') >= 100" ] },
|
207 | 264 | "then": [ { "math": [ "u_prof_level = 3" ] }, { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] } ],
|
208 | 265 | "else": [
|
209 |
| - { "math": [ "u_proficiency('prof_magic_conveyance_master', 'format': 'percent') += rng(1,4) / 64" ] }, |
| 266 | + { |
| 267 | + "math": [ "u_proficiency('prof_magic_conveyance_master', 'format': 'percent') += casting_proficiency_master_xp_modifier()" ] |
| 268 | + }, |
210 | 269 | { "math": [ "u_prof_level = 2" ] },
|
211 | 270 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
212 | 271 | ]
|
213 | 272 | }
|
214 | 273 | ],
|
215 | 274 | "else": [
|
216 |
| - { "math": [ "u_proficiency('prof_magic_conveyance_apprentice', 'format': 'percent') += rng(1,4) / 32" ] }, |
| 275 | + { |
| 276 | + "math": [ |
| 277 | + "u_proficiency('prof_magic_conveyance_apprentice', 'format': 'percent') += casting_proficiency_apprentice_xp_modifier()" |
| 278 | + ] |
| 279 | + }, |
217 | 280 | { "math": [ "u_prof_level = 1" ] },
|
218 | 281 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
219 | 282 | ]
|
220 | 283 | }
|
221 | 284 | ],
|
222 | 285 | "else": [
|
223 |
| - { "math": [ "u_proficiency('prof_magic_conveyance_beginner', 'format': 'percent') += rng(1,4) / 16" ] }, |
| 286 | + { |
| 287 | + "math": [ "u_proficiency('prof_magic_conveyance_beginner', 'format': 'percent') += casting_proficiency_beginner_xp_modifier()" ] |
| 288 | + }, |
224 | 289 | { "math": [ "u_prof_level = 0" ] },
|
225 | 290 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
226 | 291 | ]
|
|
244 | 309 | "if": { "math": [ "u_proficiency('prof_magic_restoration_master', 'format': 'percent') >= 100" ] },
|
245 | 310 | "then": [ { "math": [ "u_prof_level = 3" ] }, { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] } ],
|
246 | 311 | "else": [
|
247 |
| - { "math": [ "u_proficiency('prof_magic_restoration_master', 'format': 'percent') += rng(1,4) / 64" ] }, |
| 312 | + { |
| 313 | + "math": [ "u_proficiency('prof_magic_restoration_master', 'format': 'percent') += casting_proficiency_master_xp_modifier()" ] |
| 314 | + }, |
248 | 315 | { "math": [ "u_prof_level = 2" ] },
|
249 | 316 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
250 | 317 | ]
|
251 | 318 | }
|
252 | 319 | ],
|
253 | 320 | "else": [
|
254 |
| - { "math": [ "u_proficiency('prof_magic_restoration_apprentice', 'format': 'percent') += rng(1,4) / 32" ] }, |
| 321 | + { |
| 322 | + "math": [ |
| 323 | + "u_proficiency('prof_magic_restoration_apprentice', 'format': 'percent') += casting_proficiency_apprentice_xp_modifier()" |
| 324 | + ] |
| 325 | + }, |
255 | 326 | { "math": [ "u_prof_level = 1" ] },
|
256 | 327 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
257 | 328 | ]
|
258 | 329 | }
|
259 | 330 | ],
|
260 | 331 | "else": [
|
261 |
| - { "math": [ "u_proficiency('prof_magic_restoration_beginner', 'format': 'percent') += rng(1,4) / 16" ] }, |
| 332 | + { |
| 333 | + "math": [ |
| 334 | + "u_proficiency('prof_magic_restoration_beginner', 'format': 'percent') += casting_proficiency_beginner_xp_modifier()" |
| 335 | + ] |
| 336 | + }, |
262 | 337 | { "math": [ "u_prof_level = 0" ] },
|
263 | 338 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
264 | 339 | ]
|
|
282 | 357 | "if": { "math": [ "u_proficiency('prof_magic_transformation_master', 'format': 'percent') >= 100" ] },
|
283 | 358 | "then": [ { "math": [ "u_prof_level = 3" ] }, { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] } ],
|
284 | 359 | "else": [
|
285 |
| - { "math": [ "u_proficiency('prof_magic_transformation_master', 'format': 'percent') += rng(1,4) / 64" ] }, |
| 360 | + { |
| 361 | + "math": [ "u_proficiency('prof_magic_transformation_master', 'format': 'percent') += casting_proficiency_master_xp_modifier()" ] |
| 362 | + }, |
286 | 363 | { "math": [ "u_prof_level = 2" ] },
|
287 | 364 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
288 | 365 | ]
|
289 | 366 | }
|
290 | 367 | ],
|
291 | 368 | "else": [
|
292 |
| - { "math": [ "u_proficiency('prof_magic_transformation_apprentice', 'format': 'percent') += rng(1,4) / 32" ] }, |
| 369 | + { |
| 370 | + "math": [ |
| 371 | + "u_proficiency('prof_magic_transformation_apprentice', 'format': 'percent') += casting_proficiency_apprentice_xp_modifier()" |
| 372 | + ] |
| 373 | + }, |
293 | 374 | { "math": [ "u_prof_level = 1" ] },
|
294 | 375 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
295 | 376 | ]
|
296 | 377 | }
|
297 | 378 | ],
|
298 | 379 | "else": [
|
299 |
| - { "math": [ "u_proficiency('prof_magic_transformation_beginner', 'format': 'percent') += rng(1,4) / 16" ] }, |
| 380 | + { |
| 381 | + "math": [ |
| 382 | + "u_proficiency('prof_magic_transformation_beginner', 'format': 'percent') += casting_proficiency_beginner_xp_modifier()" |
| 383 | + ] |
| 384 | + }, |
300 | 385 | { "math": [ "u_prof_level = 0" ] },
|
301 | 386 | { "math": [ "u_prof_lowest = min(u_prof_level, u_prof_lowest)" ] }
|
302 | 387 | ]
|
|
0 commit comments