Ejemplo n.º 1
0
 public void AddExp()
 {
     MdlPlayer.AddCash(-FloorDataManager.GetFloorNextExpUpgradeCost(this));
     Exp++;
     if (Exp >= FloorDataManager.FLOOR_MAX_EXP)
     {
         AddLvl();
         Exp = 0;
     }
 }
Ejemplo n.º 2
0
    private void CalculateMultipliedCash()
    {
        var baseCash      = FloorDataManager.BaseCashOfFloor(_floor.Id);
        var lvlMultiplier = FloorDataManager.MultiplierOfLevel(_floor.Level);
        var expMultiplier = _floor.Level != 1 ? _floor.Level * FloorDataManager.FLOOR_MAX_EXP + _floor.Exp : _floor.Exp;

        var cash = baseCash * lvlMultiplier * expMultiplier;

        MdlPlayer.AddCash(cash);
        _owner.RebuildWidgets();
        //RebuildWidget();
    }