Skip to content

Commit

Permalink
Added Flying Rider Stronghold exemption dummy upgrade, and conditiona…
Browse files Browse the repository at this point in the history
…l requirements strings related to it
  • Loading branch information
Andrettin committed Feb 22, 2023
1 parent 9ee7892 commit f08dbf8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
12 changes: 10 additions & 2 deletions data/unit_classes/units/flying_rider.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@ flying_rider = {
name = "Flying Rider"
tech_tree_parent_unit_class = stronghold
requirements_string = "Stronghold and Lumber Mill"

conditional_requirements_strings = {
{
text = "Lumber Mill"
upgrade = upgrade_flying_rider_stronghold_exemption
}
}
conditions = {
or = {
and = {
unit_class = stronghold
or = {
unit_class = stronghold
upgrade = upgrade_flying_rider_stronghold_exemption
}
unit_class = lumber_mill
}
upgrade = upgrade_mercenary_company
Expand Down
6 changes: 6 additions & 0 deletions data/unit_types/units/dwarven/gryphon_rider.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ unit_dwarven_gryphon_rider = {
basic_damage = 14
max_attack_range = 4
requirements_string = "Bastion and Lumber Mill"
conditional_requirements_strings = {
{
text = "Lumber Mill"
faction = brising_clan
}
}
default_equipment = {
weapon = unit_throwing_axe
boots = unit_boots
Expand Down
3 changes: 3 additions & 0 deletions data/upgrades/requirement_exemptions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
upgrade_flying_rider_stronghold_exemption = {
name = "Flying Rider Stronghold Exemption
}

0 comments on commit f08dbf8

Please sign in to comment.