Пример #1
0
    public void BuyUpgrade()
    {
        if (gamedata.money >= Cost())
        {
            gamedata.money           -= Cost();
            gamedata.dpsupgradelevel += 1;
            gamedata.tapdmg           = BigDouble.Ceiling(BigDouble.Multiply(0.5, gamedata.dpsupgradelevel) * dps_basedmg);
            dps_basedmg += 0.25;
        }

        UpdateUpgradePanelUI();
    }
Пример #2
0
 public void Hit()
 {
     gamedata.health -= gamedata.dps;
     if (gamedata.health <= 0)
     {
         gamedata.money += BigDouble.Multiply(BigDouble.Ceiling(BigDouble.Divide(gamedata.healthcap, 100)), gamedata.kills + 3);
         if (gamedata.stage == gamedata.stagemax)
         {
             gamedata.kills += 1;
             if (gamedata.kills >= gamedata.killsMax)
             {
                 gamedata.kills     = 0;
                 gamedata.stagemax += 1;
                 gamedata.stage     = gamedata.stagemax;
             }
         }
         IsBossChecker();
         gamedata.health = gamedata.healthcap;
     }
 }