private void UpdateStats(bool resetHP)
    {
        Stats stats = ItemType.CalculateStats(items.Select(i => i.Type).ToArray());

        PlayerCombat playerCombat = GetComponent <PlayerCombat>();

        playerCombat.strength = stats.Damage;
        playerCombat.maxhp    = stats.HP;
        if (resetHP || playerCombat.hp > playerCombat.maxhp)
        {
            playerCombat.hp = playerCombat.maxhp;
        }

        PlayerInventory playerInventory = GetComponent <PlayerInventory>();

        playerInventory.collectingSpeed = stats.GatheringSpeed;

        PlayerController playerController = GetComponent <PlayerController>();

        playerController._speed = playerController._maxVelocityChange = 5.0f * stats.MovementSpeed;
    }