diff --git a/Behaviours/SteamGiftPhysicsProp.cs b/Behaviours/SteamGiftPhysicsProp.cs index d1281a3..d7daf7e 100644 --- a/Behaviours/SteamGiftPhysicsProp.cs +++ b/Behaviours/SteamGiftPhysicsProp.cs @@ -8,7 +8,7 @@ private void ChangeTooltip() { if (base.IsOwner) { - HUDManager.Instance.ChangeControlTip(2, scrapValue <= 0 ? "ALREADY REDEEMED" : "Redeem : [ LMB ]"); + HUDManager.Instance.ChangeControlTip(2, scrapValue <= 0 ? "ALREADY REDEEMED" : "Redeem: [LMB]"); } } diff --git a/CustomScriptableObject/MyHeartItem.cs b/CustomScriptableObject/MyHeartItem.cs index 9ee4790..9f0ddc5 100644 --- a/CustomScriptableObject/MyHeartItem.cs +++ b/CustomScriptableObject/MyHeartItem.cs @@ -18,7 +18,7 @@ public static void Register() /// My Heart int rarity = 40; Item item = bundle.LoadAsset("Assets/DingusThings/Items/MyHeart.asset"); - item.toolTips = ["What she said : [ LMB ]"]; + item.toolTips = ["What she said: [LMB]"]; // add custom behavior MyHeartPhysicsProp myHeartProp = item.spawnPrefab.AddComponent(); myHeartProp.grabbable = true; diff --git a/CustomScriptableObject/SteamGiftCardItem.cs b/CustomScriptableObject/SteamGiftCardItem.cs index 7e38c40..d4229a0 100644 --- a/CustomScriptableObject/SteamGiftCardItem.cs +++ b/CustomScriptableObject/SteamGiftCardItem.cs @@ -21,7 +21,7 @@ public static void Register() Harmony.CreateAndPatchAll(typeof(SteamGiftPatch)); int rarity = 60; Item item = bundle.LoadAsset("Assets/DingusThings/Items/SteamGiftCard.asset"); - item.toolTips = ["Inspect : [ Z ]"]; + item.toolTips = ["Inspect: [Z]"]; SteamGiftPhysicsProp steamGiftPhysicsProp = item.spawnPrefab.AddComponent(); steamGiftPhysicsProp.grabbable = true; steamGiftPhysicsProp.grabbableToEnemies = true; diff --git a/Patches/SteamGiftPatch.cs b/Patches/SteamGiftPatch.cs index cf72bf0..4ea4c64 100644 --- a/Patches/SteamGiftPatch.cs +++ b/Patches/SteamGiftPatch.cs @@ -10,8 +10,11 @@ public static void GrabbableObject_EquipItem(GrabbableObject __instance) { if (__instance.itemProperties.itemName == "Steam Gift Card") { - // change tooltip on grab - HUDManager.Instance.ChangeControlTip(2, __instance.scrapValue <= 0 ? "ALREADY REDEEMED" : "Redeem : [ LMB ]"); + if (__instance.IsOwner) + { + // change tooltip on grab + HUDManager.Instance.ChangeControlTip(2, __instance.scrapValue <= 0 ? "ALREADY REDEEMED" : "Redeem: [LMB]"); + } } } }