mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
## Mirror of PR #26135: [Convert "IgnoreWeatherComponent" into "BlockWeatherComponent"](https://github.com/space-wizards/space-station-14/pull/26135) from <img src="https://avatars.githubusercontent.com/u/10567778?v=4" alt="space-wizards" width="22"/> [space-wizards](https://github.com/space-wizards)/[space-station-14](https://github.com/space-wizards/space-station-14) ###### `4aa72af574cc7a3370085fb70831fbde1df29077` PR opened by <img src="https://avatars.githubusercontent.com/u/96445749?v=4" width="16"/><a href="https://github.com/TheShuEd"> TheShuEd</a> at 2024-03-15 09:30:10 UTC --- PR changed 10 files with 12 additions and 11 deletions. The PR had the following labels: --- <details open="true"><summary><h1>Original Body</h1></summary> > ## About the PR > inverting the logic of the component. Now inversely, tagging an entity with this component will cause it to block weather if it is attached to the floor. Previously, this conversely excluded the entity from weather checking, and only applied to trees on planets. > > It now blocks rain on walls, windows, airlocks. > > ## Why / Balance > 95% of the structures in the game should not block weather. Railings, tables, chairs, fences all logically allow water to pass through. We're making a map under rainy skies, and it's annoying. >  >  >  > > this will also be useful for the visual part of expeditions or something with planets when weather is added there in the future </details> Co-authored-by: SimpleStation14 <Unknown>
13 lines
274 B
C#
13 lines
274 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Weather;
|
|
|
|
/// <summary>
|
|
/// This entity will block the weather if it's anchored to the floor.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class BlockWeatherComponent : Component
|
|
{
|
|
|
|
}
|