Skip to content

Commit

Permalink
fix: rarity and remove lifebuoy patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanrk committed Jun 5, 2024
1 parent 89264be commit 39d1ad0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 45 deletions.
10 changes: 3 additions & 7 deletions CustomScriptableObject/LifebuoyBarSoapItem.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using DingusThings.Patches;
using HarmonyLib;
using LethalLib.Modules;
using System;
using System.Collections.Generic;
using System.Text;
using LethalLib.Modules;
using UnityEngine;

namespace DingusThings.CustomScriptableObject
Expand All @@ -20,7 +15,8 @@ public static void Register()
return;
}
/// Lifebuoy Bar Soap
int rarity = 10;
// higher value, more likely to spawn
int rarity = 100;
Item item = bundle.LoadAsset<Item>("Assets/DingusThings/Items/LifebuoyBarSoap.asset");
PhysicsProp lifebuoyBarSoapItemPhysicsProp = item.spawnPrefab.AddComponent<PhysicsProp>();
lifebuoyBarSoapItemPhysicsProp.grabbable = true;
Expand Down
2 changes: 1 addition & 1 deletion CustomScriptableObject/MyHeartItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static void Register()
return;
}
/// My Heart
int rarity = 50;
int rarity = 40;
Item item = bundle.LoadAsset<Item>("Assets/DingusThings/Items/MyHeart.asset");
item.toolTips = ["What she said : [ LMB ]"];
// add custom behavior
Expand Down
2 changes: 1 addition & 1 deletion CustomScriptableObject/SteamGiftCardItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static void Register()
}
/// Steam Gift Card
Harmony.CreateAndPatchAll(typeof(SteamGiftPatch));
int rarity = 30;
int rarity = 60;
Item item = bundle.LoadAsset<Item>("Assets/DingusThings/Items/SteamGiftCard.asset");
item.toolTips = ["Inspect : [ Z ]"];
SteamGiftPhysicsProp steamGiftPhysicsProp = item.spawnPrefab.AddComponent<SteamGiftPhysicsProp>();
Expand Down
34 changes: 0 additions & 34 deletions Patches/LifebuoyBarSoapPatch.cs

This file was deleted.

3 changes: 1 addition & 2 deletions Patches/SteamGiftPatch.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using DingusThings.Behaviours;
using HarmonyLib;
using HarmonyLib;

namespace DingusThings.Patches
{
Expand Down

0 comments on commit 39d1ad0

Please sign in to comment.