Example #1
0
    public static bool isPurchasedPilot(pilotEffect pe)
    {
        int num = 0;

        pilotUpgrades.TryGetValue(pe, out num);
        return(num > 0);
    }
Example #2
0
    // Call this to purchase/enable a pilot upgrade
    public static void purchasePilotUpgrade(pilotEffect toPurchase)
    {
        int total = pilotUpgrades [toPurchase] + 1;

        pilotUpgrades [toPurchase] = total;

        if (toPurchase == pilotEffect.health)
        {
            PlayerHP.UpgradePlayerHP(total);
        }
        else if (toPurchase == pilotEffect.bombDR)
        {
            DropManager.upgradeDR(DropType.BombCharge, total);
        }
        else if (toPurchase == pilotEffect.healthDR)
        {
            DropManager.upgradeDR(DropType.Health, total);
        }
        else if (toPurchase == pilotEffect.sprint_cooldown)
        {
            PlayerMove.UpgradeSprintCooldown(total);
        }
        else if (toPurchase == pilotEffect.sprint_evasion)
        {
            PlayerHP.UpgradeEvasionOdds(total);
        }
        else if (toPurchase == pilotEffect.dash)
        {
            PlayerMove.UpgradeDashEnabled(total);
        }
        else if (toPurchase == pilotEffect.dash_cooldown)
        {
            PlayerMove.UpgradeDashCoolDown(total);
        }
        else if (toPurchase == pilotEffect.dash_damage)
        {
            PlayerMove.UpgradeDashKill(total);
        }
        else if (toPurchase == pilotEffect.dash_longer)
        {
            PlayerMove.UpgradeDashLength(total);
        }
        else if (toPurchase == pilotEffect.dash_wider)
        {
            PlayerMove.UpgradeDashLength(total);
        }
        else if (toPurchase == pilotEffect.turtle)
        {
            turtle_script.upgrade_turtle(total);
        }
        else if (toPurchase == pilotEffect.turtle_decoy)
        {
            turtle_script.upgrade_decoy(total);
        }
        else if (toPurchase == pilotEffect.turtle_duration)
        {
            turtle_script.upgrade_dur(total);
        }
        else if (toPurchase == pilotEffect.turtle_move)
        {
            turtle_script.upgrade_move(total);
        }
        else if (toPurchase == pilotEffect.turtle_reflect)
        {
            turtle_script.upgrade_reflect(total);
        }
        else if (toPurchase == pilotEffect.Y_rapidFire)
        {
            YButtonManager.UnlockRapidFire(total);
        }
        else if (toPurchase == pilotEffect.Y_turretMode)
        {
            YButtonManager.UnlockTurretMode(total);
        }
    }
Example #3
0
    // ====== INDIVIDUAL UPGRADE IMPLEMENTATIONS HERE ======

    // Call this to purchase/enable an upgrade pair
    public static void purchaseUpgrades(gunnerEffect ge, pilotEffect pe)
    {
        purchaseGunnerUpgrade(ge);
        purchasePilotUpgrade(pe);
    }