Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanrk committed Jun 2, 2024
1 parent 0a48d98 commit 300dcb4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Behaviours/MyHeartPhysicsProp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace DingusThings.Behaviours
{
internal class MyHeartPhysicsProp : PhysicsProp
{
private float cooldown = 1.1f;
private readonly float cooldown = 1.1f;

float _lastTriggeredTime;

Expand Down
3 changes: 2 additions & 1 deletion Behaviours/SteamGiftPhysicsProp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<AudioClip>("Assets/DingusThings/Sounds/steam_achievement.ogg");
AudioSource audioSource = GetComponent<AudioSource>();
audioSource.PlayOneShot(audioClip, 1F);
Expand Down
2 changes: 1 addition & 1 deletion DingusThings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private void Awake()
/// Steam Gift Card
int steamGiftRarity = 50;
Item steamGiftItem = Bundle.LoadAsset<Item>("Assets/DingusThings/Items/SteamGiftCard.asset");
steamGiftItem.toolTips = ["Redeem : [ LMB ]"];
steamGiftItem.toolTips = ["Zoom : [ Z ]", "Redeem : [ LMB ]"];
SteamGiftPhysicsProp steamGiftPhysicsProp = steamGiftItem.spawnPrefab.AddComponent<SteamGiftPhysicsProp>();
steamGiftPhysicsProp.grabbable = true;
steamGiftPhysicsProp.grabbableToEnemies = true;
Expand Down

0 comments on commit 300dcb4

Please sign in to comment.