Beispiel #1
0
    /// <summary>
    /// 武器升级
    /// </summary>
    /// <param name="id"></param>
    public void WeaponUpgrade(int id)
    {
        WeaponItem wi = GetWeaponItemById(id);

        if (wi != null)
        {
            if (wi.CanUpgrade())
            {
                Player.CurrentPlayer.UpgradeWeapon(wi.Id, wi.GetUpgradePrice());
                wi.Upgrade();
            }
        }
    }