using UnityEngine; namespace Auralis { public static partial class WorldBuilder { static void BuildSleepingMill(Transform root) { DungeonRun.Create(root,DungeonDefinition.ForgottenMill()); MillGardenApproach.Create(root); var q=new GameObject("1-4 · Drei Segel und die Krone").AddComponent();q.transform.SetParent(root); var core=Structure("Mühlenkern · drei Flügel und oberes Getriebe","MillCoreHall",Vector2.zero,26,-12,Color.white,root); ArtLibrary.Width(core,40);core.transform.position-=ArtLibrary.TexturePoint(core,new Vector2(770f/1536,916f/1024)); string[] sheets={"MillMaintenanceFrame","MillSunWorkshop","MillSailChamber"}; for(int i=0;i<3;i++) { float x=SleepingMillQuest.Centers[i];string sheet=Resources.Load("GameArt/"+sheets[i])?sheets[i]:"MillMaintenanceFrame"; Structure(SleepingMillQuest.WingNames[i]+" · eigenes Tragwerk",sheet,new Vector2(x,-.1f),30,-12,Color.white,root); float home=(i-1)*8; MillDoor.Create("mill-wing-"+i,SleepingMillQuest.WingNames[i]+" betreten",new Vector2(home,0),new Vector2(x-9,0),i+1,root,paintedFrame:core); MillDoor.Create("mill-bottom-return-"+i,"Zum Mühlenkern zurück",new Vector2(x+12,0),new Vector2(home+2.1f,0),0,root); int wing=i; MillDoor.Create("mill-top-return-"+i,"Rückkehrtür · Mühlenkern",new Vector2(x-10,24.2f),new Vector2(home+2.1f,0),0,root,()=>q.Sail(wing),"Verbinde das Segel rechts von der Tür"); q.Sails[i]=ArtLibrary.Sprite("Segel · "+SleepingMillQuest.WingNames[i],ArtLibrary.Get("MillSailProps",i+3),new Vector2(x,24.2f),8,root);ArtLibrary.Height(q.Sails[i],4.6f); int sailIndex=i;QuestBeacon.Create(root,new Vector2(x,26.4f),1.65f,ArtLibrary.Gold,()=>!q.Sail(sailIndex)); q.HubSeals[i]=ArtLibrary.Sprite("Mühlenkern · Segelzeichen "+i,ArtLibrary.Get("MillSailProps",i),new Vector2(home,5.3f),8,root);ArtLibrary.Height(q.HubSeals[i],2.2f); } MovingLift Lift(string id){foreach(var lift in Object.FindObjectsByType(FindObjectsSortMode.None))if(lift.name==id)return lift;throw new System.InvalidOperationException("Missing mill lift "+id);} q.LeafClutch=WindClutch.Create("mill-leaf-clutch",new Vector2(-93,6.6f),Lift("w0-lift"),root); q.ThreadClutch=WindClutch.Create("mill-thread-clutch",new Vector2(205,8.8f),Lift("w2-lift"),root); q.SunSwitch=ArrowMechanism.Create("mill-workshop-sun",new[]{new Vector2(99,17.1f)},"Die Sonnenkupplung greift. Das Werkstatttor öffnet sich.",root); q.SunGate=MechanismGate.Create(q.SunSwitch,new Vector2(105.2f,13.2f),root,3.8f); MillSunUpperEncounter.Create(root,q); MillDoor.Create("mill-shortcut","Getriebeaufzug · obere Galerie",new Vector2(15,0),new Vector2(-8,9.9f),4,root,()=>q.CrownOpen,"Drei Segel öffnen die Abkürzung"); MillDoor.Create("mill-shortcut-return","Zur unteren Halle",new Vector2(7,9.9f),new Vector2(12,0),0,root,()=>q.CrownOpen,"Drei Segel öffnen die Abkürzung"); MillDoor.Create("mill-crown","Zu Boruns Krone",new Vector2(0,9.9f),new Vector2(-13,84.6f),5,root,()=>q.CrownOpen,"Verbinde die drei Mühlensegel"); MillDoor.Create("mill-crown-return","Zur ruhigen Mühlengalerie",new Vector2(-14,84.6f),new Vector2(-3,9.9f),4,root); new GameObject("Mühlenkern · sichtbarer Kraftschluss").AddComponent().Init(q,root); MillPowerTrain.Create("Sonnenpfeil öffnet den Werkstattriegel",new[]{new Vector3(99,17.1f),new Vector3(99,17),new Vector3(105.2f,17)},()=>q.SunSwitch.Solved,root,3); PocketRoom.Create("mill-rest","Die ruhige Mühlenkammer",PocketRoomKind.Rest,new Vector2(13,9.9f),10,root); new GameObject("Storykrone · erwachende Mühle").AddComponent().Init(new Vector2(7,ArenaY),root); Structure("Heimkehr · Gartenpavillon","LanternPavilion",new Vector2(51,81.46f),8,-9,Color.white,root); var tavi=ArtLibrary.Sprite("Tavi · nach dem Gleitweg",ArtLibrary.Get("TaviVillage",0),new Vector2(52,81.5f),10,root);NpcIdle.Attach(tavi,"Tavi",1.95f); for(int i=1;i0||p.id.Contains("secret")||p.id.Contains("arena"))continue;Collect("mill-heart-"+p.id,p.x,p.y+1.2f,false,root);} Collect("mill-album-leaf",-109,23.3f,true,root);Collect("mill-album-sun",108,21.3f,true,root);Collect("mill-album-attic",-13,90.7f,true,root); WorldInteractable.SupplyDrop("mill-feather-cache",new Vector2(179,23),SupplyKind.WindFeather,4,false); for(int i=0;i<7;i++)Collect("mill-first-glide-"+i,30+i*3.1f,89-i*.85f,false,root); new GameObject("Mühlenräume · Tiefe und Luft").AddComponent();new GameObject("Mühlenräume · Fensterlicht").AddComponent(); } } }