Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

flavor_eng.176 伦敦大火

时间范围:1666.1.1 - 1667.1.1(每月 10% 概率)

触发条件

  • 玩家国家拥有并控制伦敦地区。
  • 伦敦地区市场交易木材 (goods:lumber)。
  • 伦敦地区至少存在一座 building_type:market_warehouse(市场仓库)或属于 consumer_goods_category(消费品类别)的建筑。

关键效果

  • 历史选项:选择此选项将处理火灾后果。
    • 若触发 eastern_winds 变量(东风)
      • 伦敦地区发展度减少 10。
      • 按建筑等级排序,摧毁伦敦地区最高等级建筑(数量为总建筑数的 1/4)。
    • 若未触发 eastern_winds 变量
      • 国家获得少量政府权力惩罚 (government_power_mild_penalty)。
      • 伦敦地区发展度减少 20。
      • 按建筑等级排序,摧毁伦敦地区最高等级建筑(数量为总建筑数的 1/8)。
    • 人口迁移
      • 在12个月内,25% 的农民 (pop_type:peasants) 和 50% 的市民 (pop_type:burghers) 从伦敦迁移至大不列颠地区内(除伦敦外)随机一个玩家拥有的城市或城镇。
    • 人物记录
      • 如果人物 eng_samuel_pepys 存活,其日记条目变量 (samuel_pepys_diary_entries) 增加 1。

背景介绍: 1666年9月,伦敦发生了一场毁灭性的大火,持续燃烧了四天,摧毁了城市的大部分地区,包括许多木质建筑。这场火灾促使了城市重建和建筑法规的变革,并因塞缪尔·佩皮斯的详细日记而闻名于世。

完整事件代码

flavor_eng.176 = {
	type = country_event

	fire_only_once = yes

	title = flavor_eng.176.title
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_variable = eastern_winds
				}
				desc = flavor_eng.176.desc_eastern_winds
			}
			triggered_desc = {
				trigger = { always = yes }
				desc = flavor_eng.176.desc
			}
		}
	}

	dynamic_historical_event = {
		tag = ENG
        tag = GBR
		from = 1666.1.1
		to = 1667.1.1
		monthly_chance = 10
	}

	trigger = {

		location:london = {
			owner = root
			controller = root
			market = {
				is_traded_in_market = goods:lumber
			}
			any_buildings_in_location = {
				OR = {
					building_type = building_type:market_warehouse
					building_category = consumer_goods_category
				}
			}
		}

	}
	illustration_tags = {
		10 = angry
		10 = exterior
	}
	immediate = {
		event_illustration_estate_effect = { foreground = estate_type:peasants_estate background = estate_type:peasants_estate }
		if = {
			limit = {
				character:eng_samuel_pepys ?= {
				is_alive = yes
				}
			}
			character:eng_samuel_pepys = {
				save_scope_as = samuel_pepys
			}
		}

		set_variable = { name = great_fire_of_london value = 1 }

		location:london = {
			save_scope_as = target_location
		}

		random_list = {
			50 = {
			}
			50 = {
				set_variable = eastern_winds
			}
		}

		region:great_britain_region = {
			random_location_in_region = {
				limit = {
					owner ?= root
					NOT = { this = location:london }
					OR = {
						location_rank = location_rank:city
						location_rank = location_rank:town
					}
				}
				save_scope_as = emigration_province
			}
		}

		save_scope_as = target_root_country

	}

	option = {
		name = flavor_eng.176.a
		historical_option = yes

		if = {
			limit = {
				has_variable = eastern_winds
			}
			location:london = {
				change_development  = -10

				ordered_buildings_in_location = {
					order_by = building_level
					max = {
						value = 1
						add = {
							value = num_buildings
							divide = 4
						}
					}

					location = { minor_destroy_building_levels_in_location = yes }
				}
			}
		}
		else = {
			root = { add_government_power = government_power_mild_penalty }
					custom_tooltip = flavor_eng.176.tt1
			location:london = {
				change_development  = -20

				ordered_buildings_in_location = {
					order_by = building_level
					max = {
						value = 1
						add = {
							value = num_buildings
							divide = 8
						}
					}

					location = { minor_destroy_building_levels_in_location = yes }
				}
			}
		}

		add_migration = {
			owner = this
			from = scope:target_location.province_definition
			to = scope:emigration_province.province_definition
			type = pop_type:peasants
			amount = 0.25
			months = 12
		}

		add_migration = {
			owner = this
			from = scope:target_location.province_definition
			to = scope:emigration_province.province_definition
			type = pop_type:burghers
			amount = 0.5
			months = 12
		}

		custom_tooltip = flavor_eng.176.tt2
		custom_tooltip = flavor_eng.176.tt3

		if = {
			limit = {
				character:eng_samuel_pepys ?= {
					is_alive = yes
			    }
			}
			change_variable = { name = samuel_pepys_diary_entries add = 1 }
			custom_tooltip = flavor_eng.176.tt4
		}

	}

historical_info = flavor_eng.176.historical_info

}