combine same-tile explosions in the same tick (#25664)

* combine same-tile explosions in the same tick

* !

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2024-03-29 23:46:05 +00:00
committed by GitHub
parent 28d05feea7
commit 355d00a0f2
3 changed files with 82 additions and 31 deletions

View File

@@ -77,6 +77,13 @@ public sealed partial class ExplosionPrototype : IPrototype
[DataField("smallSoundIterationThreshold")]
public int SmallSoundIterationThreshold = 6;
/// <summary>
/// How far away another explosion in the same tick can be and be combined.
/// Total intensity is added to the original queued explosion.
/// </summary>
[DataField]
public float MaxCombineDistance = 1f;
[DataField("sound")]
public SoundSpecifier Sound = new SoundCollectionSpecifier("Explosion");