update SPT 3.7.4
This commit is contained in:
10
ASS.csproj
10
ASS.csproj
@@ -9,9 +9,10 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>dvize.ASS</RootNamespace>
|
||||
<AssemblyName>dvize.ASS</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -23,14 +24,15 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>portable</DebugType>
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DefineConstants>
|
||||
</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<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 maxWeaponRepairableDurabilityBasedOnCap;
|
||||
private static float timeSinceLastHit = 0f;
|
||||
private static Slot tempSlot;
|
||||
|
||||
private static Dictionary<EquipmentSlot, List<Item>> equipmentSlotDictionary = new Dictionary<EquipmentSlot, List<Item>>
|
||||
{
|
||||
@@ -56,6 +57,7 @@ namespace armorMod
|
||||
{
|
||||
player = Singleton<GameWorld>.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)
|
||||
{
|
||||
|
@@ -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<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
|
||||
// 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")]
|
||||
|
Reference in New Issue
Block a user