private void ApplyBonus(string pickupname) { switch (pickupname) { case "SummonPlus2": if (statl.GetDetrizideBank() < 30000) { GetComponent <AudioSource>().PlayOneShot(sl.GetSummonUpgrade()); } altar.SetResCost(altar.GetResCost() + resIncreaseFactor); altar.SetResMax(altar.GetResMax() + 2); break; case "Scythes": if (statl.GetDetrizideBank() < 30000) { GetComponent <AudioSource>().PlayOneShot(sl.GetScythe()); } //replace bonebag with upgraded bonebag if (player.GetPlayerOwnedWeapons().Contains(sc.provideGameObject("Snubnose"))) { player.AnimateSwapWeapon(player.GetCurrentWeapon(), "Snubnose"); } else { player.AnimateSwapWeapon(player.GetCurrentWeapon(), "BoneBag"); } sc.SetBoneBag(newBonebag); break; case "Health": Unit unit = player.GetComponent <Unit>(); unit.SetMaxHealth(unit.GetMaxHealth() * 2); unit.SetHealth(unit.GetMaxHealth()); break; } }