-
Notifications
You must be signed in to change notification settings - Fork 592
Let them Flourish #5923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: starlight-dev
Are you sure you want to change the base?
Let them Flourish #5923
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| [RegisterComponent] | ||
| public sealed partial class BloomingComponent : Component | ||
|
Check failure on line 2 in Content.Shared/_Starlight/Blooming/BloomingComponent.cs
|
||
| { | ||
| [DataField] | ||
| public List<string> Pollen = new(); | ||
|
|
||
| [DataField] | ||
| public float BloomInterval = 10f; | ||
|
|
||
| public float BloomAccumulator; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
|
|
||
| using Robust.Shared.GameObjects; | ||
|
|
||
| namespace Content.Server._Starlight.Blooming; | ||
|
Check failure on line 4 in Content.Shared/_Starlight/Blooming/BloomingSystem.cs
|
||
|
|
||
| public sealed class BloomingSystem : EntitySystem | ||
| { | ||
| public override void Update(float frameTime) | ||
| { | ||
| base.Update(frameTime); | ||
|
|
||
| var query = EntityQueryEnumerator<BloomingComponent>(); | ||
|
|
||
| while (query.MoveNext(out var uid, out var comp)) | ||
| { | ||
| comp.BloomAccumulator += frameTime; | ||
|
|
||
| if (comp.BloomAccumulator < comp.BloomInterval) | ||
| continue; | ||
|
|
||
| comp.BloomAccumulator -= comp.BloomInterval; | ||
|
|
||
| Bloom(uid, comp); | ||
| } | ||
| } | ||
|
|
||
| private void Bloom(EntityUid uid, BloomingComponent comp) | ||
|
Check warning on line 27 in Content.Shared/_Starlight/Blooming/BloomingSystem.cs
|
||
| { | ||
| // TODO: Emit pollen scent. | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
Repository: ss14Starlight/space-station-14
Length of output: 1646
🏁 Script executed:
Repository: ss14Starlight/space-station-14
Length of output: 35640
🏁 Script executed:
Repository: ss14Starlight/space-station-14
Length of output: 6007
Implement
Bloombefore releasing the feature.UpdateinvokesBloom, but the method only contains a TODO. Entities withBloomingComponenttherefore receive no bloom effect, andBloomingComponent.Pollenis never consumed.🤖 Prompt for AI Agents