Строительство крепости бея
ДействиеИзменено в этой версии

Строительство крепости бея

raise_bey_fortressin_game/common/generic_actions/rise_of_the_ottomans.txt:291

Наши аппетиты простираются далеко за пределы столичных стен. По мере покорения всё новых рубежей нам необходимо как следует укреплять заграничные опорные пункты…

ТребуетКрепость беяСооружениеselect trigger 2ГородРанг районаselect trigger 2МегалополисРанг районаselect trigger 2Восхождение турокСитуацияselect trigger 1Город-оплотСтатический модификаторselect trigger 2Удж-бейТип ленникаselect trigger 2ВассалТип ленникаselect trigger 2recently_elevanted_stronghold_variableПеременнаяselect trigger 2

Определениеin_game/common/generic_actions/rise_of_the_ottomans.txt:291

292type = situation
293show_message = no
294potential = {
295scope:actor = {
296has_reform = government_reform:anatolian_beylik
}
}
300allow = {
301scope:actor = {
302at_war = no
303is_during_bankruptcy = no
}
}
307automation_tick = never
308automation_tick_frequency = 12
310ai_tick = monthly
311ai_tick_frequency = 12
313price = price:p_building_age_2_renaissance
316cooldown = {
317type = raise_bey_fortress_key
318months = 12
}
321select_trigger = {
322looking_for_a = situation
323interaction_source_list = {
325add_to_list = source
}
}
328target_flag = recipient
329name = "choose_situation" Выберите Concept:
330column = {
331data = name
}
333visible = {
335situation_is_active = yes
}
}
339select_trigger = {
340looking_for_a = location
341interaction_source_list = {
342scope:actor = {
343every_owned_non_rural_location = {
344limit = {
344OR = {
344location_rank = location_rank:city
344location_rank = location_rank:megalopolis
}
}
345add_to_list = source
}
347every_subject = {
348limit = {
349is_disloyal_subject = no
350OR = {
351is_subject_type = vassal
352is_subject_type = uc_bey
}
354any_owned_non_rural_location = {
355OR = {
355location_rank = location_rank:city
355location_rank = location_rank:megalopolis
}
}
}
358every_owned_non_rural_location = {
359limit = {
359OR = {
359location_rank = location_rank:city
359location_rank = location_rank:megalopolis
}
}
360add_to_list = source
}
}
}
}
365target_flag = target
366name = "choose_location" Выбор Concept
367none_available_msg_key = "no_locations_available"
368column = {
368data = name
}
369column = {
369data = population
}
370visible = {
371region = region:anatolia_region
372OR = {
372location_rank = location_rank:city
372location_rank = location_rank:megalopolis
}
373NOT = {
373has_building = building_type:bey_fortress
}
374NOT = {
374has_location_modifier = stronghold_city_modifier
}
375NOT = {
}
}
}
379effect = {
380if = {
381limit = {
382exists = scope:target
}
384scope:target = {
385construct_building = {
386building_type = building_type:bey_fortress
387cost_multiplier = 0
388cost_multiplier_reason = "royal_sponsorship"
}
}
391scope:actor = {
391add_army_tradition = army_tradition_mild_bonus (5)
}
}
393custom_tooltip = raise_bey_fortress_tt Крепость бея превратит город, где она построена, в оплот нашего могущества. Это сулит определённые преимущества, а также может повысить Concept и Concept через Concept.

Но если район окажется в руках захватчиков, это крайне негативно скажется на Concept и Concept
}
396ai_will_do = {
398if = {
399limit = {
399exists = scope:target
}
400add = {
401desc = "[target.GetName] [proximity|e]"
402value = scope:target.proximity
}
404add = {
405desc = "[target.GetName] [development|e]"
406value = scope:target.development
}
408if = {
409limit = {
410scope:target.owner ?= {
410is_subject_of = scope:actor
}
}
412add = {
413desc = "owned by a subject"
414value = -25
}
}
}
418else = {
419add = {
420value = 50
421desc = BASE_VALUE
}
}
}