Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Updated PlayerEffects events
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlOfDuty committed Jul 25, 2022
1 parent 8960706 commit c385972
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Smod2/EventSystem/Events/PlayerEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1097,13 +1097,13 @@ public class EarlyStatusEffectChangeEvent : PlayerEvent
{
public bool Allow { get; set; }
public PlayerEffect PlayerEffect { get; }
public float NewValue { get; set; }
public float NewDuration { get; set; }

public EarlyStatusEffectChangeEvent(Player player, PlayerEffect effect, float newValue, bool allow = true) : base(player)
public EarlyStatusEffectChangeEvent(Player player, PlayerEffect effect, float newDuration, bool allow = true) : base(player)
{
PlayerEffect = effect;
Allow = allow;
NewValue = newValue;
NewDuration = newDuration;
}

public override void ExecuteHandler(IEventHandler handler)
Expand All @@ -1115,12 +1115,12 @@ public override void ExecuteHandler(IEventHandler handler)
public class LateStatusEffectChangeEvent : PlayerEvent
{
public PlayerEffect PlayerEffect { get; }
public float NewValue { get; set; }
public float OldDuration { get; set; }

public LateStatusEffectChangeEvent(Player player, PlayerEffect effect, float newValue) : base(player)
public LateStatusEffectChangeEvent(Player player, PlayerEffect effect, float oldDuration) : base(player)
{
PlayerEffect = effect;
NewValue = newValue;
OldDuration = oldDuration;
}

public override void ExecuteHandler(IEventHandler handler)
Expand Down
4 changes: 2 additions & 2 deletions Smod2/PluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public class PluginManager
{
public static readonly int SMOD_MAJOR = 3;
public static readonly int SMOD_MINOR = 10;
public static readonly int SMOD_REVISION = 2;
public static readonly int SMOD_REVISION = 5;

public static readonly string SMOD_BUILD = "A";
/// <summary> Used by AssemblyInfo.cs, needs to be a const. </summary>
internal const string AssemblyVersion = "3.10.2.0";
internal const string AssemblyVersion = "3.10.5.0";

public static readonly string DEPENDENCY_FOLDER = "dependencies";

Expand Down

0 comments on commit c385972

Please sign in to comment.