diff --git a/common/modifiers/NEOW_yearly_flavor_event_modifiers.txt b/common/modifiers/NEOW_yearly_flavor_event_modifiers.txt new file mode 100644 index 00000000..17ce9246 --- /dev/null +++ b/common/modifiers/NEOW_yearly_flavor_event_modifiers.txt @@ -0,0 +1,10 @@ + +NEOW_cherrymas_character_modifier = { + icon = drink_positive + stress_loss_mult = 0.1 +} + +NEOW_cherrymas_county_modifier = { + icon = drink_positive + county_opinion_add = 5 +} \ No newline at end of file diff --git a/common/on_action/NEOW_yearly_flavor_events.txt b/common/on_action/NEOW_yearly_flavor_events.txt new file mode 100644 index 00000000..7ff5cc2b --- /dev/null +++ b/common/on_action/NEOW_yearly_flavor_events.txt @@ -0,0 +1,10 @@ +NEOW_yearly_flavor_events = { + trigger = { + always = yes + } + random_events = { + chance_to_happen = 50 + #Yearly Events + 10 = NEOW_yearly_flavor_events.0021 # 0021 - Cherrymas (Cherry Blossoms) + } +} \ No newline at end of file diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index 67ca1778..7d0537e4 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -2911,6 +2911,7 @@ random_yearly_playable_pulse = { 2 = bp1_yearly_events # 6 = ep3_yearly_events_byzantium 6 = ep3_yearly_events_admin + 6 = NEOW_yearly_flavor_events 6 = tgp_japan_yearly_events 6 = tgp_china_yearly_events 6 = tgp_mandala_yearly_events diff --git a/events/NEOW_yearly_flavor_events/NEOW_yearly_flavor_events.txt b/events/NEOW_yearly_flavor_events/NEOW_yearly_flavor_events.txt new file mode 100644 index 00000000..a21a0cc7 --- /dev/null +++ b/events/NEOW_yearly_flavor_events/NEOW_yearly_flavor_events.txt @@ -0,0 +1,126 @@ +namespace = NEOW_yearly_flavor_events + +# 0021 - Among the Blossoms - Hanami (Cherry Blossoms) +NEOW_yearly_flavor_events.0021 = { + type = character_event + title = NEOW_yearly_flavor_events.0021.t + desc = NEOW_yearly_flavor_events.0021.desc + theme = love + override_background = garden + cooldown = { years = 15 } + left_portrait = { + character = root + animation = toast_goblet + } + right_portrait = { + character = scope:cherry_enjoyer + animation = storyteller + } + + trigger = { + drinks_alcohol_trigger = yes + any_courtier = { + NOT = { has_trait = blind } + is_available_healthy_adult = yes + } + location = { + geographical_region = custom_cherry_blossom_region + } + NOT = { has_trait = blind } + is_available_healthy_adult = yes + is_at_war = no + #The trees are in bloom between the end of March until early May + current_season_spring = yes + } + + immediate = { + random_courtier = { + limit = { + NOT = { has_trait = blind } + is_available_healthy_adult = yes + } + save_scope_as = cherry_enjoyer + } + } + #Make an offering of sake to appease the gods + option = { + name = NEOW_yearly_flavor_events.0021.a + random_list = { + #Character modifier + 40 = { + show_chance = no + desc = NEOW_yearly_flavor_events.0021.a_char_modifier.tt + send_interface_toast = { + right_icon = root + title = NEOW_yearly_flavor_events.0021.a_char_modifier.tt + add_character_modifier = { + modifier = NEOW_cherrymas_character_modifier + years = 5 + } + } + } + #County modifier + 40 = { + show_chance = no + desc = tgp_japan_yearly_events.0021.a_pleased_deities.tt + send_interface_toast = { + right_icon = root + title = tgp_japan_yearly_events.0021.a_county_modifier.tt + capital_county = { + add_county_modifier = { + modifier = NEOW_cherrymas_county_modifier + years = 5 + } + } + } + } + #Nothing happens + 20 = { + show_chance = no + desc = NEOW_yearly_flavor_events.0021.a_nothing_happens.tt + send_interface_toast = { + right_icon = root + title = NEOW_yearly_flavor_events.0021.a_nothing_happens.tt + } + } + } + add_piety = minor_piety_gain + add_stress = minor_stress_loss + + stress_impact = { + shy = minor_stress_impact_gain + humble = minor_stress_impact_gain + drunkard = minor_stress_impact_loss + generous = miniscule_stress_impact_loss + gregarious = miniscule_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_zeal = 1 + ai_energy = 1 + } + } + } + option = { + name = tgp_japan_yearly_events.0021.b + + add_prestige = miniscule_prestige_gain + + add_stress = major_stress_loss + + stress_impact = { + calm = minor_stress_impact_loss + humble = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_zeal = -1 + ai_energy = 1 + } + } + } +} \ No newline at end of file diff --git a/localization/english/replace/NEOW_flavor_modifiers_l_english.yml b/localization/english/replace/NEOW_flavor_modifiers_l_english.yml new file mode 100644 index 00000000..66a907da --- /dev/null +++ b/localization/english/replace/NEOW_flavor_modifiers_l_english.yml @@ -0,0 +1,16 @@ +l_english: + + NEOW_yearly_flavor_events.0021.t: "Cherrymas" + NEOW_yearly_flavor_events.0021.desc: "[Glossary( 'Cherrymas', 'CHERRYMAS_GLOSS' )] is upon us! Cherry trees, heavy with gorgeous blossoms, put all in high spirits. The people of [ROOT.Char.GetCurrentLocation.GetName] plan their spring planting around the trees, and pray for a good harvest. \n\nMy [ROOT.Char.Custom2('RelationToMe', cherry_enjoyer)], [cherry_enjoyer.GetTitledFirstName] asks, "It's a good time for merriment, isn't it?" [cherry_enjoyer.GetHerHis|U] words remind me a toast is in order." + NEOW_yearly_flavor_events.0021.a: "Pour some [Glossary( 'Kriek', 'KRIEK_GLOSS' )] for the occasion!" + NEOW_yearly_flavor_events.0021.a_char_modifier.tt: "I feel like a weight has been lifted of off my shoulders" + NEOW_yearly_flavor_events.0021.a_county_modifier.tt: "The citizens join in the festivity" + NEOW_yearly_flavor_events.0021.a_nothing_happens.tt: "My toast falls on deaf ears" + NEOW_yearly_flavor_events.0021.b: "Take a while to admire the trees." + CHERRYMAS_GLOSS: "#bold Cherrymas#! - a holiday originating from pre-Event Japan that spread with the eponymous trees before the Event, it has developed into many different regional forms based around the local climate and culture." + KRIEK_GLOSS: "#bold Kriek#! - a beer originating from Belge, made by fermenting local beers with cherries." + + NEOW_cherrymas_character_modifier: "Cherry spirits" + NEOW_cherrymas_character_modifier_desc: "This character lead a toast at a cherry blossom celebration." + NEOW_cherrymas_county_modifier: "Cherry folks" + NEOW_cherrymas_county_modifier_desc: "The ruler of this county lead a toast at a cherry blossom celebration, pleasing the locals." \ No newline at end of file diff --git a/map_data/geographical_regions/geographical_region.txt b/map_data/geographical_regions/geographical_region.txt index b0c7061b..88b547bb 100644 --- a/map_data/geographical_regions/geographical_region.txt +++ b/map_data/geographical_regions/geographical_region.txt @@ -5937,4 +5937,13 @@ custom_cale_region = { duchies = { d_mallorca } +} + +custom_cherry_blossom_region = { + empires = { + e_europa e_germany e_iberia e_france e_brittania e_alps + } + kingdoms = { + k_gotaland k_england k_wales k_northumberland k_mann k_scotland k_ireland k_navarra k_hungary k_asturias k_spanish_galicia + } } \ No newline at end of file