🏗️ Complete biome structure - 18 biomes × 10 subfolders (fauna, rastline, oblacila, orodja, hrana, materiali, teren, vegetacija, rekviziti, zgradbe)

This commit is contained in:
2025-12-31 11:05:41 +01:00
parent 9f6560fe13
commit 6f8e1ed902
306 changed files with 100 additions and 1051 deletions

View File

@@ -0,0 +1,100 @@
#!/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!")