示例#1
0
    public void RemovePerk(PerkData perk)
    {
        //revert modifiers
        if (perk.speedMod > 0.0f)
        {
            _playerSpeed.speedMultiplier = 1.0f;
        }

        _playerWeapons.RevertBuff(perk.fireRateMod, perk.damageMod, perk.reloadMod);

        _perks.Remove(perk.type);
        _perkEnding.Remove(perk.type);
    }