#!/usr/bin/env python3 """ Create complete structure for ALL biomes in biomi/ folder Each biome gets standardized subfolders for themed content """ from pathlib import Path import shutil REPO = Path("/Users/davidkotnik/repos/novafarma") SLIKE = REPO / "assets/slike" BIOMI = SLIKE / "biomi" # All anomalous biomes (18 total) ALL_BIOMES = [ "amazonas", "arctic_zone", "atlantis", "bamboo_forest", "catacombs", "chernobyl", "crystal_caves", "deep_ocean", "dinozavri", "egyptian_desert", "endless_forest", "floating_islands", "loch_ness", "mushroom_forest", "mythical_highlands", "shadow_realm", "volcanic_zone", "wasteland" ] # Standard subfolders for each biome BIOME_SUBFOLDERS = [ "fauna", # Creatures specific to this biome "rastline", # Plants/crops specific to this biome "oblacila", # Clothing themed for this biome "orodja", # Tools themed for this biome "hrana", # Food items from this biome "materiali", # Materials from this biome "teren", # Terrain tiles "vegetacija", # Vegetation (trees, bushes) "rekviziti", # Props/decorations "zgradbe" # Buildings ] print("="*70) print("šŸ—ļø COMPLETE BIOME STRUCTURE SETUP") print("="*70) # Step 1: Move remaining biomes from root to biomi/ print("\nšŸ“¦ STEP 1: Moving remaining biomes to biomi/\n") for biome in ALL_BIOMES: root_path = SLIKE / biome biomi_path = BIOMI / biome if root_path.exists() and not biomi_path.exists(): print(f" Moving {biome}/ → biomi/{biome}/") shutil.move(str(root_path), str(biomi_path)) print(f" āœ… Moved") elif biomi_path.exists(): print(f" āœ… {biome}/ already in biomi/") else: print(f" šŸ“ Creating biomi/{biome}/") biomi_path.mkdir(parents=True, exist_ok=True) # Step 2: Create subfolders in ALL biomes print("\nšŸ“‚ STEP 2: Creating subfolders in all biomes\n") for biome in ALL_BIOMES: biome_path = BIOMI / biome if not biome_path.exists(): continue print(f"\nšŸŒ {biome.upper().replace('_', ' ')}") for subfolder in BIOME_SUBFOLDERS: subfolder_path = biome_path / subfolder if not subfolder_path.exists(): subfolder_path.mkdir(parents=True, exist_ok=True) print(f" āœ… Created {subfolder}/") else: # Check if has content content = list(subfolder_path.glob("*")) if len(content) > 0: print(f" āœ… {subfolder}/ ({len(content)} items)") else: print(f" šŸ“ {subfolder}/ (empty)") # Step 3: Summary print("\n" + "="*70) print("āœ… BIOME STRUCTURE COMPLETE!") print("="*70) total_biomes = len(list(BIOMI.glob("*/"))) print(f"\nšŸ“Š Total biomes: {total_biomes}") print(f"šŸ“‚ Subfolders per biome: {len(BIOME_SUBFOLDERS)}") print(f"šŸ“ Total subfolders created: {total_biomes * len(BIOME_SUBFOLDERS)}") print("\nšŸ—‚ļø STRUCTURE:") print(f" biomi/") for biome in sorted(ALL_BIOMES): print(f" ā”œā”€ā”€ {biome}/") for sf in BIOME_SUBFOLDERS: print(f" │ ā”œā”€ā”€ {sf}/") print(f"\nāœ… All {total_biomes} biomes ready for themed content!")