const u={dialogType:"story",checkWinCondition:(t,s,d={},e={})=>{if(console.log("🏆 WIN CONDITION DEBUG - Stored Blockly Moves:",{storedBlocklyMoves:e.blocklyMoves||[],storedGeneratedCode:e.generatedCode||"No code stored",playerPosition:e.playerPosition,checkpointsCompleted:s,allBlocklyMoves:t||[]}),!s)return console.log("❌ WIN CONDITION FAILED: Checkpoints not completed"),!1;const i=e.playerPosition&&e.playerPosition.x===-2&&e.playerPosition.z===11,n=e.blocklyMoves?.filter(a=>a.type==="sound"&&a.value==="MEOW").length||0,l=n>=1;return console.log("🎯 WIN CONDITION VERIFICATION:",{playerPosition:e.playerPosition,playerAtTarget:i,meowSoundCount:n,hasMeowSound:l,checkpointsCompleted:s,totalMoves:e.blocklyMoves?.length||0}),s&&i&&l?(console.log("🎉 WIN CONDITION PASSED! 🏆"),console.log("   ✓ All checkpoints completed"),console.log("   ✓ Player at position (-2, 11)"),console.log(`   ✓ Used MEOW sound ${n} time(s)`),!0):(console.log("❌ WIN CONDITION FAILED:"),s||console.log("   ❌ Checkpoints not completed"),i||console.log("   ❌ Player not at target position (-2, 11)"),l||console.log("   ❌ Missing MEOW sound (used 0 times)"),!1)},blockValidator:(t,s,d={},e={})=>{console.log("🏆 Validating WIN block sequence for Game 2 Level 1:",t);const i=t.filter(o=>o.type!=="speed").map(o=>`${o.type}:${o.value}`);console.log("Normalised moves (speed ignored):",i);const n=t.some(o=>o.type==="sound"&&o.value==="MEOW"),l=i.filter(o=>o.startsWith("move:"));console.log("Movement-only sequence:",l);const r=["move:right","move:forward","move:forward","move:forward"],a=l.length>=r.length&&r.every((o,c)=>l[c]===o);return a&&n?(console.log("✅ WIN BLOCK VALIDATION PASSED! 🎉"),console.log(`   ✓ Sequence: ${l.join(" → ")}`),console.log(`   ✓ MEOW sound: ${n?"✅ Found":"❌ Missing"}`),!0):(console.log("❌ WIN BLOCK VALIDATION FAILED:"),a||(console.log(`   ❌ Expected: ${r.join(" → ")}`),console.log(`   ❌ Got:      ${l.join(" → ")}`)),n||console.log("   ❌ Missing 'sound:MEOW' block"),!1)},dialogues:[{speaker:"Rob",message:"Mia disitu kamu rupanya!",characterDirection:"left",dialogType:"story",image:"images/ROB_Dialogue_Head.webp",modelAnimation:{triggered:"before",model:"PDISK_ANIM_MIA_WALK",from:[-157,0,345],to:[-150,0,450],duration:2}},{speaker:"Rob",message:"Tunggu, jangan lari!",characterDirection:"left",dialogType:"story",image:"images/ROB_Dialogue_Head.webp",modelAnimation:{triggered:"during",model:"PDISK_ANIM_MIA_WALK",from:[-150,0,450],to:[-145,0,1050],duration:4.5}},{speaker:"Rob",message:"Tidak! Mia lari lagi sekali.",characterDirection:"left",dialogType:"story",image:"images/ROB_Dialogue_Head.webp"}]};export{u as winConfig};
