Delivery random multipliers (#36918)

* init

* review

* init

* teehee
This commit is contained in:
ScarKy0
2025-04-26 23:42:27 +02:00
committed by GitHub
parent 8f35bc76c2
commit f0472b2173
6 changed files with 98 additions and 20 deletions

View File

@@ -135,20 +135,6 @@ public sealed partial class DeliverySystem : SharedDeliverySystem
DirtyField(ent.Owner, ent.Comp, nameof(DeliveryComponent.WasPenalized));
}
/// <summary>
/// Gathers the total multiplier for a delivery.
/// This is done by components having subscribed to GetDeliveryMultiplierEvent and having added onto it.
/// </summary>
/// <param name="ent">The delivery for which to get the multiplier.</param>
/// <returns>Total multiplier.</returns>
private float GetDeliveryMultiplier(Entity<DeliveryComponent> ent)
{
var ev = new GetDeliveryMultiplierEvent();
RaiseLocalEvent(ent, ref ev);
return ev.Multiplier;
}
public override void Update(float frameTime)
{
base.Update(frameTime);