Skip to content

Commit

Permalink
Change start inventory classification check
Browse files Browse the repository at this point in the history
  • Loading branch information
Salzkorn committed Aug 23, 2024
1 parent 7c65145 commit e43f95a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions worlds/sc2/test/test_custom_mission_orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ def test_start_inventory_and_necessary_item_appears_once(self):
self.assertEqual(len(test_items_in_pool), 0)
test_items_in_start_inventory = [item for item in self.multiworld.precollected_items[self.player] if item.name == test_item]
self.assertEqual(len(test_items_in_start_inventory), 1)
self.assertEqual(test_items_in_start_inventory[0].classification, ItemClassification.progression)
# Start inventory gets a new item so the classification is no longer progression
self.assertEqual(test_items_in_start_inventory[0].classification, ItemClassification.filler)

def test_start_inventory_and_locked_and_necessary_item_appears_once(self):
# This is a filler upgrade with a parent
Expand Down Expand Up @@ -185,4 +186,5 @@ def test_start_inventory_and_locked_and_necessary_item_appears_once(self):
self.assertEqual(len(test_items_in_pool), 0)
test_items_in_start_inventory = [item for item in self.multiworld.precollected_items[self.player] if item.name == test_item]
self.assertEqual(len(test_items_in_start_inventory), 1)
self.assertEqual(test_items_in_start_inventory[0].classification, ItemClassification.progression)
# Start inventory gets a new item so the classification is no longer progression
self.assertEqual(test_items_in_start_inventory[0].classification, ItemClassification.filler)

0 comments on commit e43f95a

Please sign in to comment.