mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Stardew valley: Fix Aurora Vineyard Tablet logic (#4512)
* - Add requirement on Aurora Vineyard tablet to start the quest * - Add rule for using the aurora vineyard staircase * - Added a test for the tablet * - Add a few missing items to the test * - Introduce a new item to split the quest from the door and avoir ER issues * - Optimize imports * - Forgot to generate the item * fix Aurora mess # Conflicts: # worlds/stardew_valley/rules.py # worlds/stardew_valley/test/mods/TestMods.py * fix a couple errors in the cherry picked commit, added a method to improve readability and reduce chance of human error on story quest conditions * - remove blank line * - Code review comments * - fixed weird assert name * - fixed accidentally surviving line * - Fixed imports --------- Co-authored-by: Jouramie <16137441+Jouramie@users.noreply.github.com>
This commit is contained in:
@@ -264,7 +264,7 @@ def create_unique_items(item_factory: StardewItemFactory, options: StardewValley
|
||||
|
||||
def create_raccoons(item_factory: StardewItemFactory, options: StardewValleyOptions, items: List[Item]):
|
||||
number_progressive_raccoons = 9
|
||||
if options.quest_locations < 0:
|
||||
if options.quest_locations.has_no_story_quests():
|
||||
number_progressive_raccoons = number_progressive_raccoons - 1
|
||||
|
||||
items.extend(item_factory(item) for item in [CommunityUpgrade.raccoon] * number_progressive_raccoons)
|
||||
@@ -387,7 +387,7 @@ def create_quest_rewards(item_factory: StardewItemFactory, options: StardewValle
|
||||
|
||||
|
||||
def create_special_quest_rewards(item_factory: StardewItemFactory, options: StardewValleyOptions, items: List[Item]):
|
||||
if options.quest_locations < 0:
|
||||
if options.quest_locations.has_no_story_quests():
|
||||
return
|
||||
# items.append(item_factory("Adventurer's Guild")) # Now unlocked always!
|
||||
items.append(item_factory(Wallet.club_card))
|
||||
@@ -698,7 +698,7 @@ def create_quest_rewards_sve(item_factory: StardewItemFactory, options: StardewV
|
||||
if not exclude_ginger_island:
|
||||
items.extend([item_factory(item) for item in SVEQuestItem.sve_always_quest_items_ginger_island])
|
||||
|
||||
if options.quest_locations < 0:
|
||||
if options.quest_locations.has_no_story_quests():
|
||||
return
|
||||
|
||||
items.extend([item_factory(item) for item in SVEQuestItem.sve_quest_items])
|
||||
|
||||
Reference in New Issue
Block a user