// // CreatorLayer::onSecretVault from 0x3aaa08 to 0x3aaba8 (416 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void CreatorLayer::onSecretVault(CreatorLayer *a1, cocos2d::CCObject *a2) { GameStatsManager *v3; // r0 cocos2d::CCDirector *v4; // r4 cocos2d::CCScene *v5; // r0 cocos2d::CCTransitionFade *v6; // r0 int m_vaultDialogIndex; // r6 char *v8; // r1 DialogObject *v9; // r0 DialogLayer *v10; // r9 _BYTE v11[4]; // [sp+10h] [bp-14h] BYREF char v12; // [sp+14h] [bp-10h] BYREF _BYTE v13[4]; // [sp+18h] [bp-Ch] BYREF v3 = GameStatsManager::sharedState(); if ( GameStatsManager::getStat(v3, "13") <= 49 ) { sub_776584((int)v11, "zzz"); m_vaultDialogIndex = a1->m_vaultDialogIndex; if ( m_vaultDialogIndex >= 0 ) { a1->m_vaultDialogIndex = m_vaultDialogIndex + 1; } else { rand(); a1->m_vaultDialogIndex = lroundf(); } if ( a1->m_vaultDialogIndex > 10 ) a1->m_vaultDialogIndex = 0; switch ( a1->m_vaultDialogIndex ) { case 0: v8 = "You are not ready..."; goto LABEL_20; case 1: v8 = "I can't let you in."; goto LABEL_20; case 2: v8 = "Player used knock.\nIt's not very effective."; goto LABEL_20; case 3: v8 = "Don't you have something better to do?"; goto LABEL_20; case 4: v8 = "That is a bad idea..."; goto LABEL_20; case 5: v8 = "..."; goto LABEL_20; case 6: v8 = "I guess you don't like rules..."; goto LABEL_20; case 7: v8 = "RubRub told me not to let anyone in."; goto LABEL_20; case 8: v8 = "This is not the door you are looking for."; goto LABEL_20; case 9: v8 = "I don't understand why you keep clicking..."; goto LABEL_20; case 0xA: v8 = "Trust me, you don't want to come in here."; LABEL_20: sub_7753D4((int)v11, v8); break; default: break; } sub_776584((int)&v12, "The Keymaster"); sub_775C20(v13, v11); v9 = (DialogObject *)DialogObject::create( (DialogObject *)&v12, (std::string)v13, (std::string)2, 1065353216, 0.0, 255); v10 = DialogLayer::create(v9, (int)&dword_0 + 2); sub_774008(v13); sub_774008(&v12); a1->addChild_0(a1, v10, 100); DialogLayer::updateChatPlacement(v10, Center); DialogLayer::animateInRandomSide(v10); sub_774008(v11); } else { v4 = cocos2d::CCDirector::sharedDirector(); v5 = SecretLayer2::scene(); v6 = cocos2d::CCTransitionFade::create(0.5, v5); cocos2d::CCDirector::replaceScene(v4, v6); } }