Esempio n. 1
0
        $temp_canvas_markup .= '<div class="sprite sprite_80x80 sprite_80x80_01" style="background-image: url(images/sprites/robots/bass/sprite_left_80x80.png?' . MMRPG_CONFIG_CACHE_DATE . '); bottom: 40px; right: 150px;">Bass</div>';
        $temp_console_markup = '<p>As thanks for playing to the end, <strong>Dr. Wily</strong>\'s campaign has been upgraded with several new features and mechanics to keep things interesting while you replay missions.</p>';
        $temp_console_markup .= '<p>Two new bonus chapters containing special missions have been added to the main menu, and preview data for future robot masters will now appear in all fusion field missions. Try one of the <strong>Player Battles</strong> against another member\'s ghost data for a real challenge!</p>';
        $temp_console_markup .= '<p>A new <strong>Starforce</strong> mechanic has also been unlocked, allowing you to find and collect powerful <strong>Field Stars</strong> and <strong>Fusion Stars</strong> in battle that boost your robots\' elemental abilities.  Use the newly upgraded <strong>Player Editor</strong> to customize missions and share fields between players - doing so is an excellent way to hunt down extra <strong>Starforce</strong> energy.</p>';
        $temp_console_markup .= '<p>We hope you enjoyed this game prototype, and look forward to the final version some day!  Oh, and <a href="' . MMRPG_CONFIG_ROOTURL . 'contact/" target="_blank">please leave feedback</a> if you can! We love feedback! :D</p>';
        array_push($_SESSION[$session_token]['EVENTS'], array('canvas_markup' => $temp_canvas_markup, 'console_markup' => $temp_console_markup));
    }
}
/*
 * DR. COSSACK OPTIONS
 */
// UNLOCK PLAYER : DR. COSSACK
// If Dr. Wily has completed the first three chapters of his campaign, unlock Dr. Cossack
if (rpg_prototype::event_complete('completed-chapter_dr-wily_three') && !$unlock_flag_cossack) {
    // Unlock Dr. Cossack as a playable character
    rpg_game::unlock_player($mmrpg_index['players']['dr-cossack'], false, true);
    $_SESSION[$session_token]['values']['battle_rewards']['dr-cossack']['player_points'] = 0;
    // Ensure Proto Man hasn't already been unlocked by the player
    if (!rpg_game::robot_unlocked(false, 'proto-man')) {
        // Unlock Proto Man as a playable character
        $unlock_player_info = $mmrpg_index['players']['dr-cossack'];
        $unlock_robot_info = rpg_robot::get_index_info('proto-man');
        $unlock_robot_info['robot_level'] = 1;
        $unlock_robot_info['robot_experience'] = rpg_prototype::calculate_experience_required(1) - 1;
        //$unlock_robot_info['robot_experience'] = 4000;
        rpg_game::unlock_robot($unlock_player_info, $unlock_robot_info, true, false);
        //$_SESSION[$session_token]['values']['battle_rewards']['dr-cossack']['player_robots']['proto-man']['robot_experience'] = 4000;
    } elseif (rpg_game::robot_unlocked(false, 'proto-man') && !rpg_game::robot_unlocked('dr-cossack', 'proto-man')) {
        // Loop through the player rewards and collect Proto Man' info
        foreach ($_SESSION[$session_token]['values']['battle_rewards'] as $temp_player => $temp_playerinfo) {
            if ($temp_player == 'dr-cossack') {