Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Mar 21, 2024
1 parent d502e87 commit aa70fcc
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 20 deletions.
5 changes: 2 additions & 3 deletions Content.Server/Backmen/Arachne/ArachneSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private void OnSpinWeb(SpinWebActionEvent args)
var ev = new ArachneWebDoAfterEvent(GetNetCoordinates(coords));
var doAfterArgs = new DoAfterArgs(EntityManager, args.Performer, arachne.WebDelay, ev, args.Performer)
{
BreakOnUserMove = true,
BreakOnMove = true,
};

_doAfter.TryStartDoAfter(doAfterArgs);
Expand All @@ -289,8 +289,7 @@ private void StartCocooning(EntityUid uid, ArachneComponent component, EntityUid

var args = new DoAfterArgs(EntityManager, uid, delay, ev, uid, target: target)
{
BreakOnUserMove = true,
BreakOnTargetMove = true,
BreakOnMove = true,
};

_doAfter.TryStartDoAfter(args);
Expand Down
3 changes: 1 addition & 2 deletions Content.Server/Backmen/Blob/NPC/BlobPod/BlobPodSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ public void StartZombify(EntityUid uid, EntityUid target, BlobPodComponent? comp
var ev = new BlobPodZombifyDoAfterEvent();
var args = new DoAfterArgs(EntityManager, uid, component.ZombifyDelay, ev, uid, target: target)
{
BreakOnTargetMove = true,
BreakOnUserMove = false,
BreakOnMove = true,
DistanceThreshold = 2f,
NeedHand = false
};
Expand Down
3 changes: 1 addition & 2 deletions Content.Server/Backmen/Chapel/SacrificialAltarSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ public void AttemptSacrifice(EntityUid agent, EntityUid patient, EntityUid altar
var args = new DoAfterArgs(EntityManager, agent, (float) component.SacrificeTime.TotalSeconds, ev, altar, target: patient, used: altar)
{
BreakOnDamage = true,
BreakOnTargetMove = true,
BreakOnUserMove = true,
BreakOnMove = true,
NeedHand = true
};

Expand Down
3 changes: 1 addition & 2 deletions Content.Server/Backmen/Economy/StoreBankSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ private void OnAfterInteract(EntityUid uid, BuyStoreBankComponent component, Aft
new RestockDoAfterEvent(), target,
target: target, used: uid)
{
BreakOnTargetMove = true,
BreakOnUserMove = true,
BreakOnMove = true,
BreakOnDamage = true,
NeedHand = true
};
Expand Down
3 changes: 1 addition & 2 deletions Content.Server/Backmen/Flesh/FleshCultistSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ private void OnDevourAction(EntityUid uid, FleshCultistComponent component, Fles
_doAfterSystem.TryStartDoAfter(new DoAfterArgs(EntityManager, uid, component.DevourTime,
new FleshCultistDevourDoAfterEvent(), uid, target: target, used: uid)
{
BreakOnTargetMove = true,
BreakOnUserMove = true,
BreakOnMove = true,
});
args.Handled = true;
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ public void StartLifeDrain(EntityUid uid, EntityUid target, GlimmerWispComponent
var ev = new GlimmerWispDrainDoAfterEvent();
var args = new DoAfterArgs(EntityManager ,uid, component.DrainDelay, ev, uid, target: target)
{
BreakOnTargetMove = true,
BreakOnUserMove = false,
BreakOnMove = true,
BreakOnDamage = true,
DistanceThreshold = 2f,
NeedHand = false
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Backmen/Spider/SpiderVampireSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private void OnActionEggUsed(EntityUid uid, SpiderVampireComponent component, Sp
_doAfterSystem.TryStartDoAfter(new DoAfterArgs(EntityManager, uid, component.UsingEggTime,
new SpiderVampireEggDoAfterEvent(), uid, used: uid)
{
BreakOnUserMove = true,
BreakOnMove = true,
BreakOnDamage = true,
});

Expand Down
3 changes: 1 addition & 2 deletions Content.Server/Backmen/Vampiric/BkmVampireLevelingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,11 @@ private void OnUseNewVamp(Entity<BkmVampireComponent> ent, ref InnateNewVampierA
_doAfterSystem.TryStartDoAfter(new DoAfterArgs(EntityManager, ent, TimeSpan.FromSeconds(10),
new InnateNewVampierDoAfterEvent(), ent, target: args.Target, used: ent)
{
BreakOnUserMove = true,
BreakOnDamage = true,
NeedHand = true,
RequireCanInteract = true,
BreakOnHandChange = true,
BreakOnTargetMove = true,
BreakOnMove = true,
BreakOnWeightlessMove = true
});

Expand Down
3 changes: 1 addition & 2 deletions Content.Server/Backmen/Vampiric/BloodSuckerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ public void StartSuccDoAfter(EntityUid bloodsucker, EntityUid victim, BloodSucke
var ev = new BloodSuckDoAfterEvent();
var args = new DoAfterArgs(EntityManager, bloodsucker, bloodSuckerComponent.SuccDelay, ev, bloodsucker, target: victim)
{
BreakOnTargetMove = true,
BreakOnUserMove = false,
BreakOnMove = true,
DistanceThreshold = 2f,
NeedHand = false
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ private void StartInsertDoAfter(EntityUid inserter, EntityUid toInsert, EntityUi
var ev = new PseudoItemInsertDoAfterEvent();
var args = new DoAfterArgs(EntityManager, inserter, 5f, ev, toInsert, target: toInsert, used: storageEntity)
{
BreakOnTargetMove = true,
BreakOnUserMove = true,
BreakOnMove = true,
NeedHand = true
};

Expand Down

0 comments on commit aa70fcc

Please sign in to comment.