mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
Status Effect Alerts and Time Bugfixes (#39529)
* Bugefix * Clean up --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
committed by
Vanessa
co-authored by
Princess Cheeseballs
parent
6ff6cf47be
commit
9854d4c564
@@ -69,7 +69,7 @@ public sealed partial class StatusEffectsSystem
|
||||
if (!TryGetStatusEffect(target, effectProto, out statusEffect))
|
||||
return TryAddStatusEffect(target, effectProto, out statusEffect, duration);
|
||||
|
||||
SetStatusEffectTime(statusEffect.Value, duration);
|
||||
SetStatusEffectEndTime(statusEffect.Value, duration);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -291,7 +291,7 @@ public sealed partial class StatusEffectsSystem
|
||||
var meta = MetaData(effect);
|
||||
if (meta.EntityPrototype is not null && meta.EntityPrototype == effectProto)
|
||||
{
|
||||
SetStatusEffectTime(effect, time);
|
||||
SetStatusEffectEndTime(effect, time);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user