Skip to content

Commit

Permalink
adding Feedback to "beats kerrigan"
Browse files Browse the repository at this point in the history
  • Loading branch information
EnvyDragon committed Sep 22, 2024
1 parent e1d6072 commit 6c088a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion worlds/sc2/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,12 @@ def all_in_p_requirement(self, state: CollectionState):
:return:
"""
beats_kerrigan = (
# cheap units with multiple small attacks, or anything with Feedback
state.has_any({item_names.CENTURION, item_names.SENTINEL, item_names.SKIRMISHER,
item_names.CARRIER, item_names.TRIREME, item_names.VANGUARD}, self.player)
item_names.HIGH_TEMPLAR}, self.player)
or state.has_all({item_names.SIGNIFIER, item_names.SIGNIFIER_FEEDBACK}, self.player)
or (self.protoss_can_merge_archon(state) and state.has(item_names.ARCHON_HIGH_ARCHON, self.player))
or (self.protoss_can_merge_dark_archon(state) and state.has(item_names.DARK_ARCHON_FEEDBACK, self.player))
or self.advanced_tactics
)
if get_option_value(self.world, 'all_in_map') == AllInMap.option_ground:
Expand Down Expand Up @@ -1073,6 +1077,12 @@ def protoss_basic_splash(self, state: CollectionState) -> bool:
def protoss_static_defense(self, state: CollectionState) -> bool:
return state.has_any({item_names.PHOTON_CANNON, item_names.KHAYDARIN_MONOLITH}, self.player)

def protoss_can_merge_archon(self, state: CollectionState) -> bool:
return state.has_any({item_names.HIGH_TEMPLAR, item_names.DARK_TEMPLAR, item_names.SIGNIFIER, item_names.ASCENDANT}, self.player)

def protoss_can_merge_dark_archon(self, state: CollectionState) -> bool:
return state.has(item_names.DARK_ARCHON, self.player) or state.has_all({item_names.DARK_TEMPLAR, item_names.DARK_TEMPLAR_DARK_ARCHON_MELD}, self.player)

def last_stand_requirement(self, state: CollectionState) -> bool:
return (
self.protoss_common_unit(state)
Expand Down

0 comments on commit 6c088a4

Please sign in to comment.