Skip to content

Commit

Permalink
footprintsteps
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainSqrBeard committed Nov 30, 2024
1 parent 7adfc50 commit 69278fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Content.Server/Fluids/EntitySystems/PuddleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ private void OnSolutionUpdate(Entity<PuddleComponent> entity, ref SolutionContai

_deletionQueue.Remove(entity);
UpdateSlip(entity, entity.Comp, args.Solution);
UpdateSlow(entity, args.Solution, entity.Comp); // Corvax-Next-Footsteps
UpdateSlow(entity, args.Solution, entity.Comp); // Corvax-Next-Footprints
UpdateEvaporation(entity, args.Solution);
UpdateAppearance(entity, entity.Comp);
}
Expand Down Expand Up @@ -421,12 +421,12 @@ private void UpdateSlip(EntityUid entityUid, PuddleComponent component, Solution
}
}

private void UpdateSlow(EntityUid uid, Solution solution, PuddleComponent component) // Corvax-Next-Footsteps
private void UpdateSlow(EntityUid uid, Solution solution, PuddleComponent component) // Corvax-Next-Footprints
{
// Corvax-Next-Footsteps-Start
// Corvax-Next-Footprints-Start
if (!component.ViscosityAffectsMovement)
return;
// Corvax-Next-Footsteps-End
// Corvax-Next-Footprints-End

var maxViscosity = 0f;
foreach (var (reagent, _) in solution.Contents)
Expand Down
4 changes: 2 additions & 2 deletions Content.Shared/Fluids/Components/PuddleComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public sealed partial class PuddleComponent : Component
[DataField("solutionRef")]
public Entity<SolutionComponent>? Solution;

// Corvax-Next-Footsteps-Start
// Corvax-Next-Footprints-Start
[DataField]
public bool ViscosityAffectsMovement = true;
// Corvax-Next-Footsteps-End
// Corvax-Next-Footprints-End
}
}

0 comments on commit 69278fc

Please sign in to comment.