Skip to content

Commit

Permalink
Add Son of Korhal unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Oct 7, 2024
1 parent 4477ae3 commit dd91470
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions worlds/sc2/item_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def _ability_desc(unit_name_plural: str, ability_name: str, ability_description:
item_names.BLACKHAMMER: "Royal Guard heavy assault mech.",
item_names.AEGIS_GUARD: "Royal Guard heavy assault infantry.",
item_names.EMPERORS_SHADOW: "Royal Guard specialist. Can use Pyrokinetic Immolation and EMP Blast abilities. Can call down Tactical missiles.",
item_names.SON_OF_KORHAL: "Royal Guard general-purpose indantry.",
item_names.PROGRESSIVE_TERRAN_INFANTRY_WEAPON: GENERIC_UPGRADE_TEMPLATE.format("damage", TERRAN, "infantry"),
item_names.PROGRESSIVE_TERRAN_INFANTRY_ARMOR: GENERIC_UPGRADE_TEMPLATE.format("armor", TERRAN, "infantry"),
item_names.PROGRESSIVE_TERRAN_VEHICLE_WEAPON: GENERIC_UPGRADE_TEMPLATE.format("damage", TERRAN, "vehicles"),
Expand Down
3 changes: 2 additions & 1 deletion worlds/sc2/item_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def get_all_group_names(cls) -> typing.Set[str]:
item_name_groups[ItemGroupNames.BARRACKS_UNITS] = barracks_units = [
item_names.MARINE, item_names.MEDIC, item_names.FIREBAT, item_names.MARAUDER,
item_names.REAPER, item_names.GHOST, item_names.SPECTRE, item_names.HERC, item_names.AEGIS_GUARD,
item_names.EMPERORS_SHADOW, item_names.DOMINION_TROOPER,
item_names.EMPERORS_SHADOW, item_names.DOMINION_TROOPER, item_names.SON_OF_KORHAL,
]
item_name_groups[ItemGroupNames.FACTORY_UNITS] = factory_units = [
item_names.HELLION, item_names.VULTURE, item_names.GOLIATH, item_names.DIAMONDBACK,
Expand Down Expand Up @@ -380,6 +380,7 @@ def get_all_group_names(cls) -> typing.Set[str]:
item_names.AEGIS_GUARD, item_names.EMPERORS_SHADOW,
item_names.SHOCK_DIVISION, item_names.BLACKHAMMER,
item_names.PRIDE_OF_AUGUSTRGRAD, item_names.SKY_FURY,
item_names.DOMINION_TROOPER,
]
item_name_groups[ItemGroupNames.WOL_ITEMS] = vanilla_wol_items = (
wol_units
Expand Down
1 change: 1 addition & 0 deletions worlds/sc2/item_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
BLACKHAMMER = "Blackhammer"
AEGIS_GUARD = "Aegis Guard"
EMPERORS_SHADOW = "Emperor's Shadow"
SON_OF_KORHAL = "Son Of Korhal"

# Terran Buildings
BUNKER = "Bunker"
Expand Down
3 changes: 3 additions & 0 deletions worlds/sc2/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ def get_full_item_list():
item_names.EMPERORS_SHADOW:
ItemData(55 + SC2WOL_ITEM_ID_OFFSET, TerranItemType.Unit_2, 3, SC2Race.TERRAN,
classification=ItemClassification.progression),
item_names.SON_OF_KORHAL:
ItemData(56 + SC2WOL_ITEM_ID_OFFSET, TerranItemType.Unit_2, 5, SC2Race.TERRAN,
classification=ItemClassification.progression),

# Some other items are moved to Upgrade group because of the way how the bot message is parsed
item_names.PROGRESSIVE_TERRAN_INFANTRY_WEAPON: ItemData(100 + SC2WOL_ITEM_ID_OFFSET, TerranItemType.Upgrade, 0, SC2Race.TERRAN, quantity=WEAPON_ARMOR_UPGRADE_MAX_LEVEL),
Expand Down
2 changes: 1 addition & 1 deletion worlds/sc2/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def terran_basic_anti_air(self, state: CollectionState) -> bool:
item_names.MISSILE_TURRET, item_names.THOR, item_names.WAR_PIGS, item_names.SPARTAN_COMPANY,
item_names.HELS_ANGELS, item_names.BATTLECRUISER, item_names.MARINE, item_names.WRAITH,
item_names.VALKYRIE, item_names.CYCLONE, item_names.WINGED_NIGHTMARES, item_names.BRYNHILDS,
item_names.SKY_FURY, item_names.DOMINION_TROOPER
item_names.SKY_FURY, item_names.DOMINION_TROOPER, item_names.SON_OF_KORHAL,
), self.player)
or self.terran_competent_anti_air(state)
or self.advanced_tactics and (
Expand Down

0 comments on commit dd91470

Please sign in to comment.