feat: Add universal victory celebration modal, chamber item requirements, and fix broom & cauldron displays
This commit is contained in:
@@ -146,9 +146,24 @@
|
||||
window.notifyNewItem(data.new_item);
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
if (successPanel) successPanel.style.display = 'block';
|
||||
}, 600);
|
||||
if (successPanel) successPanel.style.display = 'block';
|
||||
|
||||
if (window.showChamberVictory) {
|
||||
window.showChamberVictory({
|
||||
chamberBadge: "Kammer IV: Das Runen-Drehschloss",
|
||||
title: "🔐 Gründer-Siegel Entriegelt!",
|
||||
statsHtml: `<span>🦁 Löwe</span><span>🌙 Mond</span><span>🔥 Feuer</span><span>🪄 Zauberstab</span>`,
|
||||
item: data.new_item || {
|
||||
id: "cryptex_key",
|
||||
name: "Schlüssel der Gründer",
|
||||
icon: "🗝️",
|
||||
desc: "Ein uralter Messingschlüssel. Er sperrt die Pforte zur Verteidigungs-Kammer auf!"
|
||||
},
|
||||
storyText: "Mit einem satten Grollen rasten die vier massiven Messingbolzen ein! Das Tor schnappt auf. Der <strong>Schlüssel der Gründer</strong> und <strong>Snapes Logik-Rolle</strong> wandern in deinen Beutel. Dahinter hörst du lautes Geschrei: <strong>Wichtel-Panik</strong>!",
|
||||
nextUrl: "/pixies",
|
||||
nextBtnText: "➔ Weiter zu Kammer V: Wichtel-Panik 🧚"
|
||||
});
|
||||
}
|
||||
|
||||
} else {
|
||||
if (window.soundFX) window.soundFX.playWhoosh();
|
||||
@@ -174,4 +189,17 @@
|
||||
console.error("Cryptex check error:", e);
|
||||
}
|
||||
};
|
||||
|
||||
// Felix Felicis Lucky Intuition Action
|
||||
window.useFelixFelicisHint = function() {
|
||||
if (window.soundFX) window.soundFX.playMagicSuccess();
|
||||
if (window.showFloatingToast) {
|
||||
window.showFloatingToast("🍀 <strong>Felix Felicis wirkt!</strong> Eine goldene Stimme flüstert: <em>»Löwe 🦁 und Mond 🌙 weisen den Weg!«</em>");
|
||||
}
|
||||
// Guide dials 0 and 1
|
||||
dials[0] = 0; // 🦁
|
||||
dials[1] = 1; // 🌙
|
||||
updateDialDisplay(0);
|
||||
updateDialDisplay(1);
|
||||
};
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user