Files
wwdpublic/Content.Shared/Footprint/PuddleFootPrintsComponent.cs
VMSolidus dbe1453e9c Tweak Footprints (#1867)
# Description

This PR reduces the number of footprints generated per puddle by a
factor of 5, primarily by significantly increasing the amount of fluid
reagents "Consumed" from puddles in order to create the footprints. A
single puddle shouldn't be creating thousands of footprints. While there
are better solutions to footprint lag, I'm on a time constraint, and
need to fix MANY issues, I simply don't have the time available to
dedicate to rewriting the entire footprint system.

# Changelog

🆑
- tweak: Significantly increased the amount of reagents "Consumed" by
walking over puddles. This should result in substantially less footprint
spam, since puddles are more rapidly consumed by people walking over
them and making footprints.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Adjusted footprint orientation calculations to ensure consistent
directional behavior.
- **New Features**
- Increased the reagent capacity for footprint entities, allowing for
more substantial chemical interactions.
- Enhanced the balance between footprint amounts and puddle transfer
ratios for improved reaction dynamics.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

(cherry picked from commit 63f1f7f9ffc58273b813b57603659f5c041eed30)
2025-03-08 14:31:26 +03:00

15 lines
381 B
C#

using Content.Shared.FixedPoint;
namespace Content.Shared.FootPrint;
[RegisterComponent]
public sealed partial class PuddleFootPrintsComponent : Component
{
/// <summary>
/// Ratio between puddle volume and the amount of reagents that can be transferred from it.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public FixedPoint2 SizeRatio = 0.75f;
}