diff --git a/Behaviours/MyHeartPhysicsProp.cs b/Behaviours/MyHeartPhysicsProp.cs index 3d56781..6b2cd93 100644 --- a/Behaviours/MyHeartPhysicsProp.cs +++ b/Behaviours/MyHeartPhysicsProp.cs @@ -4,7 +4,7 @@ namespace DingusThings.Behaviours { internal class MyHeartPhysicsProp : PhysicsProp { - private float cooldown = 1.1f; + private readonly float cooldown = 1.1f; float _lastTriggeredTime; diff --git a/Behaviours/SteamGiftPhysicsProp.cs b/Behaviours/SteamGiftPhysicsProp.cs index 56a75ed..9598afb 100644 --- a/Behaviours/SteamGiftPhysicsProp.cs +++ b/Behaviours/SteamGiftPhysicsProp.cs @@ -7,6 +7,7 @@ internal class SteamGiftPhysicsProp : PhysicsProp public override void ItemActivate(bool used, bool buttonDown = true) { base.ItemActivate(used, buttonDown); + if (buttonDown) { AssetBundle? bundle = DingusThings.Bundle; @@ -16,7 +17,7 @@ public override void ItemActivate(bool used, bool buttonDown = true) DingusThings.Logger.LogError($"{itemName}: Sound failed to play."); return; } - + AudioClip audioClip = bundle.LoadAsset("Assets/DingusThings/Sounds/steam_achievement.ogg"); AudioSource audioSource = GetComponent(); audioSource.PlayOneShot(audioClip, 1F); diff --git a/DingusThings.cs b/DingusThings.cs index 7af1f65..76a0af1 100644 --- a/DingusThings.cs +++ b/DingusThings.cs @@ -54,7 +54,7 @@ private void Awake() /// Steam Gift Card int steamGiftRarity = 50; Item steamGiftItem = Bundle.LoadAsset("Assets/DingusThings/Items/SteamGiftCard.asset"); - steamGiftItem.toolTips = ["Redeem : [ LMB ]"]; + steamGiftItem.toolTips = ["Zoom : [ Z ]", "Redeem : [ LMB ]"]; SteamGiftPhysicsProp steamGiftPhysicsProp = steamGiftItem.spawnPrefab.AddComponent(); steamGiftPhysicsProp.grabbable = true; steamGiftPhysicsProp.grabbableToEnemies = true;