Skip to content

Commit

Permalink
comments/clean
Browse files Browse the repository at this point in the history
  • Loading branch information
HellCatten committed Sep 13, 2024
1 parent 4b6c7ed commit f9aa5be
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public sealed partial class StepTriggerComponent : Component
/// <summary>
/// If TriggerGroups is specified, it will check StepTriggerImmunityComponent to have the same TriggerType to activate immunity
/// </summary>
// WD EDIT
[DataField]
public StepTriggerGroup? TriggerGroups;
}
Expand Down
7 changes: 4 additions & 3 deletions Content.Shared/StepTrigger/Prototypes/StepTriggerGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
namespace Content.Shared.StepTrigger.Prototypes
{
/// <summary>
///A group of <see cref="StepTriggerTypePrototype">
///Used to determine StepTriggerTypes like Tags.
///Used for better work with Immunity
/// A group of <see cref="StepTriggerTypePrototype">
/// Used to determine StepTriggerTypes like Tags.
/// Used for better work with Immunity.
/// WD EDIT
/// </summary>
/// <code>
/// stepTriggerGroup:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

namespace Content.Shared.StepTrigger.Prototypes
{
/// <summary>
/// Prototype representing a StepTriggerType in YAML.
/// Meant to only have an ID property, as that is the only thing that
/// gets saved in StepTriggerGroup.
/// </summary>
// WD EDIT
[Prototype("StepTriggerType")]
public sealed partial class StepTriggerTypePrototype : IPrototype
{
Expand Down
9 changes: 2 additions & 7 deletions Content.Shared/StepTrigger/Systems/StepTriggerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,7 @@ private void UpdateColliding(EntityUid uid, StepTriggerComponent component, Tran

private bool CanTrigger(EntityUid uid, EntityUid otherUid, StepTriggerComponent component)
{
/*
if (HasComp<StepTriggerImmuneComponent>(otherUid)
|| !component.Active
|| component.CurrentlySteppedOn.Contains(otherUid))
return false;
*/

// WD EDIT START
if (!component.Active
|| component.CurrentlySteppedOn.Contains(otherUid))
return false;
Expand All @@ -142,6 +136,7 @@ private bool CanTrigger(EntityUid uid, EntityUid otherUid, StepTriggerComponent
}
}
}
// WD EDIT END

// Can't trigger if we don't ignore weightless entities
// and the entity is flying or currently weightless
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Effects/chemistry_effects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
animationState: foam-dissolve
- type: Slippery
- type: StepTrigger
triggerGroups:
triggerGroups: # WD EDIT
types:
- Liquid
# disabled until foam reagent duplication is fixed
Expand Down Expand Up @@ -138,7 +138,7 @@
- type: RCDDeconstructable
cost: 2
delay: 2
fx: EffectRCDDeconstruct2
fx: EffectRCDDeconstruct2
- type: Clickable
- type: InteractionOutline
- type: Sprite
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/ipc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
- type: OfferItem
- type: LayingDown
- type: Carriable
- type: StepTriggerImmune
- type: StepTriggerImmune #WD EDIT
whitelist:
types:
- Shard
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Species/harpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
- GalacticCommon
- SolCommon
- type: StepTriggerImmune
whitelist:
whitelist: # WD EDIT
types:
- Shard
- Liquid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- type: StepTrigger
intersectRatio: 0.2
requiredTriggeredSpeed: 0
triggerGroups:
triggerGroups: # WD EDIT
types:
- Mousetrap
- type: Mousetrap
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Objects/Devices/pda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
paralyzeTime: 4
launchForwardsMultiplier: 1.5
- type: StepTrigger
triggerGroups:
triggerGroups: # WD EDIT
types:
- Soap
- type: CollisionWake
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Objects/Materials/shards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: StepTrigger
triggerGroups:
triggerGroups: # WD EDIT
types:
- Shard
intersectRatio: 0.2
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Objects/Misc/land_mine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
params:
maxDistance: 10
- type: StepTrigger
triggerGroups:
triggerGroups: # WD EDIT
types:
- Landmine
requiredTriggeredSpeed: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
paralyzeTime: 2
launchForwardsMultiplier: 1.5
- type: StepTrigger
triggerGroups:
triggerGroups: # WD EDIT
types:
- Soap
intersectRatio: 0.2
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Tiles/bananium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
paralyzeTime: 2
launchForwardsMultiplier: 1.5
- type: StepTrigger
triggerGroups:
triggerGroups: # WD EDIT
types:
- Banana
intersectRatio: 0.2
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Tiles/chasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
blacklist:
tags:
- Catwalk
triggerGroup:
triggerGroup: # WD EDIT
types:
- Chasm
- type: Transform
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Tiles/lava.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
blacklist:
tags:
- Catwalk
triggerGroups:
triggerGroups: # WD EDIT
types:
- Lava
- type: Lava
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Tiles/liquid_plasma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
blacklist:
tags:
- Catwalk
triggerGroups:
triggerGroups: # WD EDIT
types:
- Liquid
- type: Lava
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
stripTimeReduction: 0
stripTimeMultiplier: 0.667
- type: StepTriggerImmune
whitelist:
whitelist: # WD EDIT
types:
- Shard
- Liquid
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Traits/skills.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
points: -3
components:
- type: StepTriggerImmune
whitelist:
whitelist: # WD EDIT
types:
- Shard
- Liquid
Expand Down

0 comments on commit f9aa5be

Please sign in to comment.