fix: auto-unlock element types when attunement conversion begins — Fabricator now unlocks earth
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m26s

This commit is contained in:
2026-05-28 12:28:27 +02:00
parent aba1265cbc
commit 268baf3916
4 changed files with 17 additions and 23 deletions
@@ -15,9 +15,10 @@ export function AttunementDebug() {
const handleUnlockAttunement = (id: string) => {
if (debugUnlockAttunement) {
debugUnlockAttunement(id);
// When unlocking Enchanter, also unlock the transference element
if (id === 'enchanter') {
useManaStore.getState().unlockElement('transference', 500);
// When unlocking an attunement that has a primary mana type, unlock that element
const attunementDef = ATTUNEMENTS_DEF[id];
if (attunementDef?.primaryManaType) {
useManaStore.getState().unlockElement(attunementDef.primaryManaType, 0);
}
}
};