Stardew Valley: Refactor Animals to use Content Packs (#4320)

This commit is contained in:
Jérémie Bolduc
2025-04-20 10:17:22 -04:00
committed by GitHub
parent 33dc845de8
commit 22941168cd
15 changed files with 229 additions and 85 deletions

View File

@@ -8,6 +8,5 @@ class Animal:
rabbit = "Rabbit"
goat = "Goat"
ostrich = "Ostrich"
coop_animals = [Animal.chicken, "Rabbit", "Duck", "Dinosaur"]
barn_animals = [Animal.cow, "Sheep", "Pig", "Ostrich"]
void_chicken = "Void Chicken"
golden_chicken = "Golden Chicken"

View File

@@ -3,17 +3,32 @@ class AnimalProduct:
brown_egg = "Egg (Brown)"
chicken_egg = "Chicken Egg"
cow_milk = "Cow Milk"
dinosaur_egg_starter = "Dinosaur Egg (Starter)"
"""This item does not really exist and should never end up being displayed.
It's there to patch the loop in logic because of the Dinosaur-and-egg problem."""
dinosaur_egg = "Dinosaur Egg"
duck_egg_starter = "Duck Egg (Starter)"
"""This item does not really exist and should never end up being displayed.
It's there to patch the loop in logic because of the Chicken-and-egg problem."""
duck_egg = "Duck Egg"
duck_feather = "Duck Feather"
egg_starter = "Egg (Starter)"
"""This item does not really exist and should never end up being displayed.
It's there to patch the loop in logic because of the Chicken-and-egg problem."""
egg = "Egg"
goat_milk = "Goat Milk"
golden_egg_starter = "Golden Egg (Starter)"
"""This item does not really exist and should never end up being displayed.
It's there to patch the loop in logic because of the Chicken-and-egg problem."""
golden_egg = "Golden Egg"
large_brown_egg = "Large Egg (Brown)"
large_egg = "Large Egg"
large_goat_milk = "Large Goat Milk"
large_milk = "Large Milk"
milk = "Milk"
ostrich_egg_starter = "Ostrich Egg (Starter)"
"""This item does not really exist and should never end up being displayed.
It's there to patch the loop in logic because of the Chicken-and-egg problem."""
ostrich_egg = "Ostrich Egg"
rabbit_foot = "Rabbit's Foot"
roe = "Roe"
@@ -25,6 +40,8 @@ class AnimalProduct:
squid_ink = "Squid Ink"
sturgeon_roe = "Sturgeon Roe"
truffle = "Truffle"
void_egg_starter = "Void Egg (Starter)"
"""This item does not really exist and should never end up being displayed.
It's there to patch the loop in logic because of the Chicken-and-egg problem."""
void_egg = "Void Egg"
wool = "Wool"

View File

@@ -142,5 +142,3 @@ class ModFossil:
pterodactyl_phalange = "Pterodactyl Phalange"
pterodactyl_vertebra = "Pterodactyl Vertebra"
pterodactyl_claw = "Pterodactyl Claw"