Beispiel #1
0
    // Token: 0x06001AFF RID: 6911 RVA: 0x000F573C File Offset: 0x000F393C
    private static void gmGmkSsEmeraldDefFunc(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect)
    {
        AppMain.GMS_ENEMY_COM_WORK gms_ENEMY_COM_WORK = (AppMain.GMS_ENEMY_COM_WORK)mine_rect.parent_obj;
        GMS_PLAYER_WORK            gms_PLAYER_WORK    = (GMS_PLAYER_WORK)match_rect.parent_obj;

        if (gms_ENEMY_COM_WORK == null)
        {
            return;
        }

        if (gms_PLAYER_WORK == null || gms_PLAYER_WORK.obj_work.obj_type != 1)
        {
            return;
        }

        if (gms_PLAYER_WORK.gmk_obj == (OBS_OBJECT_WORK)gms_ENEMY_COM_WORK)
        {
            return;
        }

        GmSound.PlayJingle(3U, 0);
        GmSound.PlaySE("Special5");
        AppMain.GmComEfctCreateRing(gms_ENEMY_COM_WORK.obj_work.pos.x, gms_ENEMY_COM_WORK.obj_work.pos.y);
        AppMain.gmGmkSsEmeraldEfctKill();
        gms_ENEMY_COM_WORK.obj_work.flag   |= 4U;
        AppMain.g_gm_main_system.game_flag |= 65536U;
    }