 205ca7fa37
			
		
	
	205ca7fa37
	
	
	
		
			
			* Fix logic bug on daggerfish * Make new region for pond. * Fix SVE logic for crops * Fix Distant Lands Cropsanity * Fix failing tests. * Reverting removing these for now. * Fix bugs, add combat requirement * convert str into tuple directly * add ginger island to mod tests * Move a lot of mod item logic to content pack * Gut the rules from DL while we're at it. * Import nuke * Fix alecto * Move back some rules for now. * Move archaeology rules * Add some comments why its done. * Clean up archaeology and fix sve * Moved dulse to water item class * Remove digging like worms for now * fix * Add missing shipsanity location * Move background names around or something idk * Revert ArchaeologyTrash for now --------- Co-authored-by: Jouramie <jouramie@hotmail.com>
		
			
				
	
	
		
			43 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| from ..game_content import ContentPack, StardewContent
 | |
| from ..mod_registry import register_mod_content_pack
 | |
| from ...data import villagers_data, fish_data
 | |
| from ...data.game_item import ItemTag, Tag
 | |
| from ...data.harvest import ForagingSource, HarvestCropSource
 | |
| from ...data.requirement import QuestRequirement
 | |
| from ...mods.mod_data import ModNames
 | |
| from ...strings.crop_names import DistantLandsCrop
 | |
| from ...strings.forageable_names import DistantLandsForageable
 | |
| from ...strings.quest_names import ModQuest
 | |
| from ...strings.region_names import Region
 | |
| from ...strings.season_names import Season
 | |
| from ...strings.seed_names import DistantLandsSeed
 | |
| 
 | |
| 
 | |
| class DistantLandsContentPack(ContentPack):
 | |
| 
 | |
|     def harvest_source_hook(self, content: StardewContent):
 | |
|         content.untag_item(DistantLandsSeed.void_mint, tag=ItemTag.CROPSANITY_SEED)
 | |
|         content.untag_item(DistantLandsSeed.vile_ancient_fruit, tag=ItemTag.CROPSANITY_SEED)
 | |
| 
 | |
| 
 | |
| register_mod_content_pack(DistantLandsContentPack(
 | |
|     ModNames.distant_lands,
 | |
|     fishes=(
 | |
|         fish_data.void_minnow,
 | |
|         fish_data.purple_algae,
 | |
|         fish_data.swamp_leech,
 | |
|         fish_data.giant_horsehoe_crab,
 | |
|     ),
 | |
|     villagers=(
 | |
|         villagers_data.zic,
 | |
|     ),
 | |
|     harvest_sources={
 | |
|         DistantLandsForageable.swamp_herb: (ForagingSource(regions=(Region.witch_swamp,)),),
 | |
|         DistantLandsForageable.brown_amanita: (ForagingSource(regions=(Region.witch_swamp,)),),
 | |
|         DistantLandsSeed.void_mint: (ForagingSource(regions=(Region.witch_swamp,), other_requirements=(QuestRequirement(ModQuest.CorruptedCropsTask),)),),
 | |
|         DistantLandsCrop.void_mint: (Tag(ItemTag.VEGETABLE), HarvestCropSource(seed=DistantLandsSeed.void_mint, seasons=(Season.spring, Season.summer, Season.fall)),),
 | |
|         DistantLandsSeed.vile_ancient_fruit: (ForagingSource(regions=(Region.witch_swamp,), other_requirements=(QuestRequirement(ModQuest.CorruptedCropsTask),)),),
 | |
|         DistantLandsCrop.vile_ancient_fruit: (Tag(ItemTag.FRUIT), HarvestCropSource(seed=DistantLandsSeed.vile_ancient_fruit, seasons=(Season.spring, Season.summer, Season.fall)),)
 | |
|     }
 | |
| ))
 |