Fix status effect prediction (#8475)

This commit is contained in:
Leon Friedrich
2022-09-05 05:21:21 +12:00
committed by GitHub
parent 1b00f70dcc
commit e3d9d4df02
4 changed files with 50 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
using Robust.Shared.GameStates;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
namespace Content.Shared.StatusEffect
@@ -53,6 +53,13 @@ namespace Content.Shared.StatusEffect
CooldownRefresh = refresh;
RelevantComponent = relevantComponent;
}
public StatusEffectState(StatusEffectState toCopy)
{
Cooldown = (toCopy.Cooldown.Item1, toCopy.Cooldown.Item2);
CooldownRefresh = toCopy.CooldownRefresh;
RelevantComponent = toCopy.RelevantComponent;
}
}
[Serializable, NetSerializable]