Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peon Revolt #1616

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion common/scripted_effects/00_faction_effects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,17 @@ setup_peasant_leader_effect = {

create_dynamic_title = {
tier = duchy
name = FACTION_PEASANT_TITLE_NAME
# Warcraft
name = {
first_valid = {
triggered_desc = {
trigger = { scope:peasant_leader.culture = { has_cultural_pillar = heritage_orcish } }
desc = FACTION_PEON_TITLE_NAME
}
desc = FACTION_PEASANT_TITLE_NAME
}
}
# End of Warcraft
}
create_title_and_vassal_change = {
type = created
Expand Down
28 changes: 28 additions & 0 deletions common/traits/00_traits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9664,6 +9664,30 @@ peasant_leader = {

ruler_designer_cost = 100

# Warcraft
icon = {
first_valid = {
triggered_desc = {
trigger = { culture = { has_cultural_pillar = heritage_orcish } }
desc = "being_light.dds"
}
desc = "peasant_leader.dds"
}
}
# End of Warcraft

# Warcraft
name = {
first_valid = {
triggered_desc = {
trigger = { culture = { has_cultural_pillar = heritage_orcish } }
desc = trait_peon_leader
}
desc = trait_peasant_leader
}
}
# End of Warcraft

culture_modifier = {
parameter = grants_to_lowborns_bonuses
domain_limit = -3
Expand All @@ -9678,6 +9702,10 @@ peasant_leader = {
}
desc = trait_peasant_leader_desc
}
triggered_desc = { # Warcraft
trigger = { culture = { has_cultural_pillar = heritage_orcish } }
desc = trait_peon_leader_character_desc
}
desc = trait_peasant_leader_character_desc
}
}
Expand Down
50 changes: 46 additions & 4 deletions events/factions/faction_demands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1715,8 +1715,26 @@ faction_demand.1010 = {
faction_demand.1101 = {
type = letter_event
sender = scope:peasant_leader
opening = "FACTION_DEMAND_PEASANT"
desc = FACTION_DEMAND_PEASANT_DESC
# Warcraft
opening = {
first_valid = {
triggered_desc = {
trigger = { scope:peasant_leader.culture = { has_cultural_pillar = heritage_orcish } }
desc = "FACTION_DEMAND_PEON"
}
desc = "FACTION_DEMAND_PEASANT"
}
}
desc = {
first_valid = {
triggered_desc = {
trigger = { scope:peasant_leader.culture = { has_cultural_pillar = heritage_orcish } }
desc = FACTION_DEMAND_PEON_DESC
}
desc = FACTION_DEMAND_PEASANT_DESC
}
}
# End of Warcraft

trigger = {
exists = scope:faction
Expand All @@ -1731,7 +1749,19 @@ faction_demand.1101 = {
}

option = {
name = "FACTION_DEMAND_PEASANT_ACCEPT"
# Warcraft
name = {
text = {
first_valid = {
triggered_desc = {
trigger = { scope:peasant_leader.culture = { has_cultural_pillar = heritage_orcish } }
desc = "FACTION_DEMAND_PEON_ACCEPT"
}
desc = "FACTION_DEMAND_PEASANT_ACCEPT"
}
}
}
# End of Warcraft

# LEGITIMACY LOSS FOR ACCEPTING FACTION DEMANDS
faction_accept_demand_legitimacy_effect = yes
Expand Down Expand Up @@ -1785,7 +1815,19 @@ faction_demand.1101 = {
}

option = {
name = "FACTION_DEMAND_PEASANT_REFUSE"
# Warcraft
name = {
text = {
first_valid = {
triggered_desc = {
trigger = { scope:peasant_leader.culture = { has_cultural_pillar = heritage_orcish } }
desc = "FACTION_DEMAND_PEON_REFUSE"
}
desc = "FACTION_DEMAND_PEASANT_REFUSE"
}
}
}
# End of Warcraft

scope:faction = {
faction_start_war = {}
Expand Down
7 changes: 7 additions & 0 deletions localization/english/wc_factions_l_english.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
l_english:
# Peon Faction
FACTION_DEMAND_PEON:1 "To da [ROOT.Char.Custom('InsultAdjective')] [ROOT.Char.GetTitledFirstName]"
FACTION_DEMAND_PEON_DESC:0 "Work is da POOP! NO MORE!"
FACTION_DEMAND_PEON_ACCEPT:0 "All right, I will lighten your burden."
FACTION_DEMAND_PEON_REFUSE:0 "GET BACK TO WORK!"
FACTION_PEON_TITLE_NAME:0 "Peon Revolt"
6 changes: 5 additions & 1 deletion localization/english/wc_traits_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -636,4 +636,8 @@
trait_wretched:0 "Wretched"
trait_wretched_desc:0 "The Wretched refer to a group of elves who have become addicted to arcane magic and have been driven to madness by their insatiable hunger for it. Their source of it had been removed, however, and they suffer the consequences of withdrawal. Only with restoration of their magic via the Arcan'dor tree, or other means, can they be saved from their fate."
trait_nightfallen:0 "Nightfallen"
trait_wretched_character_desc:0 "$trait_wretched_desc$"
trait_wretched_character_desc:0 "$trait_wretched_desc$"

#Orcs
trait_peon_leader:0 "Peon Leader"
trait_peon_leader_character_desc:0 "[ROOT.GetCharacter.GetFirstNameNoTooltip] is a disobedient peon who revolted against [ROOT.GetCharacter.GetHerHis] chiefs."
5 changes: 5 additions & 0 deletions localization/replace/english/wc_factions_l_english.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
l_english:
# Peasant Faction
peasant_faction:0 "Rebel Faction"
peasant_faction_desc:0 "The Rebel [faction|E] represents the common folk rising up against oppression. They demand freedom from their rulers and aim to replace their liege with someone who shares their [culture|E] and [faith|E]."
FACTION_PEASANT_NAME:0 "Rebel Uprising"
Loading