update SPT 3.7.4
This commit is contained in:
10
ASS.csproj
10
ASS.csproj
@@ -9,9 +9,10 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>dvize.ASS</RootNamespace>
|
<RootNamespace>dvize.ASS</RootNamespace>
|
||||||
<AssemblyName>dvize.ASS</AssemblyName>
|
<AssemblyName>dvize.ASS</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
@@ -23,14 +24,15 @@
|
|||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>portable</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>
|
||||||
|
</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>false</DebugSymbols>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="0Harmony, Version=2.9.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="0Harmony, Version=2.9.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
@@ -24,6 +24,7 @@ namespace armorMod
|
|||||||
private static float maxRepairableDurabilityBasedOnCap;
|
private static float maxRepairableDurabilityBasedOnCap;
|
||||||
private static float maxWeaponRepairableDurabilityBasedOnCap;
|
private static float maxWeaponRepairableDurabilityBasedOnCap;
|
||||||
private static float timeSinceLastHit = 0f;
|
private static float timeSinceLastHit = 0f;
|
||||||
|
private static Slot tempSlot;
|
||||||
|
|
||||||
private static Dictionary<EquipmentSlot, List<Item>> equipmentSlotDictionary = new Dictionary<EquipmentSlot, List<Item>>
|
private static Dictionary<EquipmentSlot, List<Item>> equipmentSlotDictionary = new Dictionary<EquipmentSlot, List<Item>>
|
||||||
{
|
{
|
||||||
@@ -56,6 +57,7 @@ namespace armorMod
|
|||||||
{
|
{
|
||||||
player = Singleton<GameWorld>.Instance.MainPlayer;
|
player = Singleton<GameWorld>.Instance.MainPlayer;
|
||||||
player.BeingHitAction += Player_BeingHitAction;
|
player.BeingHitAction += Player_BeingHitAction;
|
||||||
|
timeSinceLastHit = 0;
|
||||||
}
|
}
|
||||||
internal static void Enable()
|
internal static void Enable()
|
||||||
{
|
{
|
||||||
@@ -85,7 +87,6 @@ namespace armorMod
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void RepairArmor()
|
private void RepairArmor()
|
||||||
{
|
{
|
||||||
newRepairRate = AssPlugin.ArmorRepairRateOverTime.Value * Time.deltaTime;
|
newRepairRate = AssPlugin.ArmorRepairRateOverTime.Value * Time.deltaTime;
|
||||||
@@ -93,7 +94,7 @@ namespace armorMod
|
|||||||
|
|
||||||
foreach (EquipmentSlot slot in equipmentSlotDictionary.Keys.ToArray())
|
foreach (EquipmentSlot slot in equipmentSlotDictionary.Keys.ToArray())
|
||||||
{
|
{
|
||||||
Slot tempSlot = getEquipSlot(slot);
|
tempSlot = getEquipSlot(slot);
|
||||||
|
|
||||||
if (tempSlot == null || tempSlot.ContainedItem == null)
|
if (tempSlot == null || tempSlot.ContainedItem == null)
|
||||||
{
|
{
|
||||||
@@ -161,7 +162,7 @@ namespace armorMod
|
|||||||
|
|
||||||
foreach (EquipmentSlot slot in weaponSlotDictionary.Keys.ToArray())
|
foreach (EquipmentSlot slot in weaponSlotDictionary.Keys.ToArray())
|
||||||
{
|
{
|
||||||
Slot tempSlot = getEquipSlot(slot);
|
tempSlot = getEquipSlot(slot);
|
||||||
|
|
||||||
if (tempSlot == null || tempSlot.ContainedItem == null)
|
if (tempSlot == null || tempSlot.ContainedItem == null)
|
||||||
{
|
{
|
||||||
|
@@ -7,8 +7,8 @@ using EFT;
|
|||||||
|
|
||||||
namespace armorMod
|
namespace armorMod
|
||||||
{
|
{
|
||||||
[BepInPlugin("com.dvize.ASS", "dvize.ASS", "1.5.0")]
|
[BepInPlugin("com.dvize.ASS", "dvize.ASS", "1.5.2")]
|
||||||
[BepInDependency("com.spt-aki.core", "3.7.0")]
|
[BepInDependency("com.spt-aki.core", "3.7.4")]
|
||||||
public class AssPlugin : BaseUnityPlugin
|
public class AssPlugin : BaseUnityPlugin
|
||||||
{
|
{
|
||||||
internal static ConfigEntry<Boolean> ArmorServiceMode
|
internal static ConfigEntry<Boolean> ArmorServiceMode
|
||||||
|
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.5.0.0")]
|
[assembly: AssemblyVersion("1.5.2.0")]
|
||||||
[assembly: AssemblyFileVersion("1.5.0.0")]
|
[assembly: AssemblyFileVersion("1.5.2.0")]
|
||||||
|
Reference in New Issue
Block a user