Skip to content

Commit

Permalink
etcetc
Browse files Browse the repository at this point in the history
  • Loading branch information
aedenthorn committed Oct 18, 2023
1 parent 7d5a8a6 commit a9a7aa6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion BuildingRepair/BepInExPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace BuildingRepair
{
[BepInPlugin("aedenthorn.BuildingRepair", "Building Repair", "0.3.0")]
[BepInPlugin("aedenthorn.BuildingRepair", "Building Repair", "0.4.0")]
public class BepInExPlugin : BaseUnityPlugin
{
private static readonly bool isDebug = true;
Expand Down
4 changes: 2 additions & 2 deletions CombatMusic/BepInExPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace CombatMusic
{
[BepInPlugin("aedenthorn.CombatMusic", "Combat Music", "0.1.0")]
[BepInPlugin("aedenthorn.CombatMusic", "Combat Music", "0.2.0")]
public class BepInExPlugin: BaseUnityPlugin
{
private static BepInExPlugin context;
Expand All @@ -31,7 +31,7 @@ private void Awake()

modEnabled = Config.Bind<bool>("General", "Enabled", true, "Enable this mod");
isDebug = Config.Bind<bool>("General", "IsDebug", true, "Enable debug logs");
//nexusID = Config.Bind<int>("General", "NexusID", 758, "Nexus mod ID for updates");
nexusID = Config.Bind<int>("General", "NexusID", 3667, "Nexus mod ID for updates");

combatVolume = Config.Bind<float>("Options", "CombatVolume", 1f, "Combat music volume");

Expand Down
2 changes: 1 addition & 1 deletion CookingStationTweaks/BepInExPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace CookingStationTweaks
{
[BepInPlugin("aedenthorn.CookingStationTweaks", "CookingStationTweaks", "0.5.0")]
[BepInPlugin("aedenthorn.CookingStationTweaks", "CookingStationTweaks", "0.6.0")]
public class BepInExPlugin : BaseUnityPlugin
{
private static BepInExPlugin context;
Expand Down
3 changes: 2 additions & 1 deletion CustomItemInfoDisplay/BepInExPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace CustomItemInfoDisplay
{
[BepInPlugin("aedenthorn.CustomItemInfoDisplay", "Custom Item Info Display", "0.3.1")]
[BepInPlugin("aedenthorn.CustomItemInfoDisplay", "Custom Item Info Display", "0.4.0")]
public partial class BepInExPlugin : BaseUnityPlugin
{
private static BepInExPlugin context;
Expand Down Expand Up @@ -269,6 +269,7 @@ private static string ReplaceLine(ItemDrop.ItemData item, int qualityLevel, floa
return line
.Replace("{itemDescription}", item.m_shared.m_description)
.Replace("{itemSpawnName}", GetSpawnName(item))
.Replace("{itemID}", Utils.GetPrefabName(item.m_dropPrefab))
.Replace("{itemCrafterName}", item.m_crafterName.ToString())
.Replace("{itemValue}",item.GetValue().ToString())
.Replace("{itemBaseValue}", item.m_shared.m_value.ToString())
Expand Down
4 changes: 2 additions & 2 deletions MapPinExport/BepInExPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace MapPinExport
{
[BepInPlugin("aedenthorn.MapPinExport", "Map Pin Export", "0.3.0")]
[BepInPlugin("aedenthorn.MapPinExport", "Map Pin Export", "0.3.1")]
public class BepInExPlugin: BaseUnityPlugin
{
public static ConfigEntry<bool> isDebug;
Expand Down Expand Up @@ -120,7 +120,7 @@ static bool Prefix(Terminal __instance)

private static bool IsCustomPin(Minimap.PinData pin)
{
return pin.m_save && pin.m_type != Minimap.PinType.Death && pin.m_type != Minimap.PinType.Bed && pin.m_type != Minimap.PinType.Icon4 && pin.m_type != Minimap.PinType.Shout && pin.m_type != Minimap.PinType.None && pin.m_type != Minimap.PinType.Boss && pin.m_type != Minimap.PinType.Player && pin.m_type != Minimap.PinType.RandomEvent && pin.m_type != Minimap.PinType.Ping && pin.m_type != Minimap.PinType.EventArea;
return pin.m_save && pin.m_type != Minimap.PinType.Death && pin.m_type != Minimap.PinType.Bed && pin.m_type != Minimap.PinType.Icon4 && pin.m_type != Minimap.PinType.Shout && pin.m_type != Minimap.PinType.None && pin.m_type != Minimap.PinType.Boss && pin.m_type != Minimap.PinType.Player && pin.m_type != Minimap.PinType.RandomEvent && pin.m_type != Minimap.PinType.Ping && pin.m_type != Minimap.PinType.EventArea && pin.m_type != Minimap.PinType.Hildir1 && pin.m_type != Minimap.PinType.Hildir2 && pin.m_type != Minimap.PinType.Hildir3;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions NotificationTweaks/BepInExPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> inst
var codes = new List<CodeInstruction>(instructions);
for (var i = 0; i < codes.Count; i++)
{
if(codes[i].opcode == OpCodes.Ldc_R4 && (float)codes[i].operand == 4 && codes[i - 1].opcode == OpCodes.Ldc_R4)
if(i > 2 && codes[i].opcode == OpCodes.Ldc_R4 && (float)codes[i].operand == 4 && codes[i - 3].opcode == OpCodes.Ldc_R4)
{
codes[i].operand = (float)codes[i].operand / largeSpeedMultiplier.Value;
}
Expand Down Expand Up @@ -129,7 +129,7 @@ static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> inst
var codes = new List<CodeInstruction>(instructions);
for (var i = 0; i < codes.Count; i++)
{
if(codes[i].opcode == OpCodes.Ldc_R4 && (float)codes[i].operand == 4 && (codes[i - 1].opcode == OpCodes.Ldc_R4 || codes[i - 1].opcode == OpCodes.Ldfld))
if(i > 2 && codes[i].opcode == OpCodes.Ldc_R4 && (float)codes[i].operand == 4 && codes[i - 3].opcode == OpCodes.Ldc_R4)
{
codes[i].operand = (float)codes[i].operand / smallSpeedMultiplier.Value;
}
Expand Down

0 comments on commit a9a7aa6

Please sign in to comment.