diff --git a/ASS.csproj b/ASS.csproj
index c44019b..2f3c33e 100644
--- a/ASS.csproj
+++ b/ASS.csproj
@@ -9,9 +9,10 @@
Properties
dvize.ASS
dvize.ASS
- v4.7.2
+ v4.8.1
512
true
+
true
@@ -23,14 +24,15 @@
4
- portable
+ none
true
bin\Release\
- TRACE
+
+
prompt
4
x64
- true
+ false
diff --git a/Component.cs b/Component.cs
index de436b6..cb3e6d8 100644
--- a/Component.cs
+++ b/Component.cs
@@ -24,6 +24,7 @@ namespace armorMod
private static float maxRepairableDurabilityBasedOnCap;
private static float maxWeaponRepairableDurabilityBasedOnCap;
private static float timeSinceLastHit = 0f;
+ private static Slot tempSlot;
private static Dictionary> equipmentSlotDictionary = new Dictionary>
{
@@ -56,6 +57,7 @@ namespace armorMod
{
player = Singleton.Instance.MainPlayer;
player.BeingHitAction += Player_BeingHitAction;
+ timeSinceLastHit = 0;
}
internal static void Enable()
{
@@ -85,7 +87,6 @@ namespace armorMod
}
-
private void RepairArmor()
{
newRepairRate = AssPlugin.ArmorRepairRateOverTime.Value * Time.deltaTime;
@@ -93,7 +94,7 @@ namespace armorMod
foreach (EquipmentSlot slot in equipmentSlotDictionary.Keys.ToArray())
{
- Slot tempSlot = getEquipSlot(slot);
+ tempSlot = getEquipSlot(slot);
if (tempSlot == null || tempSlot.ContainedItem == null)
{
@@ -161,7 +162,7 @@ namespace armorMod
foreach (EquipmentSlot slot in weaponSlotDictionary.Keys.ToArray())
{
- Slot tempSlot = getEquipSlot(slot);
+ tempSlot = getEquipSlot(slot);
if (tempSlot == null || tempSlot.ContainedItem == null)
{
diff --git a/Plugin.cs b/Plugin.cs
index e1c0aad..6eee6f1 100644
--- a/Plugin.cs
+++ b/Plugin.cs
@@ -7,8 +7,8 @@ using EFT;
namespace armorMod
{
- [BepInPlugin("com.dvize.ASS", "dvize.ASS", "1.5.0")]
- [BepInDependency("com.spt-aki.core", "3.7.0")]
+ [BepInPlugin("com.dvize.ASS", "dvize.ASS", "1.5.2")]
+ [BepInDependency("com.spt-aki.core", "3.7.4")]
public class AssPlugin : BaseUnityPlugin
{
internal static ConfigEntry ArmorServiceMode
diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs
index 397f24c..a07819a 100644
--- a/Properties/AssemblyInfo.cs
+++ b/Properties/AssemblyInfo.cs
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.5.0.0")]
-[assembly: AssemblyFileVersion("1.5.0.0")]
+[assembly: AssemblyVersion("1.5.2.0")]
+[assembly: AssemblyFileVersion("1.5.2.0")]