Esword stuff (#329)

* - fix: Fix black RGB.

* - add: Toy sword update.

* - add: FlipOnHitSystem.

* - tweak: Price reduction.
This commit is contained in:
Aviu00
2024-06-05 14:31:21 +00:00
committed by GitHub
parent 4827bd5701
commit 2978834228
11 changed files with 181 additions and 9 deletions

View File

@@ -207,6 +207,8 @@ namespace Content.Client.Light
public static Color GetCurrentRgbColor(TimeSpan curTime, TimeSpan offset, Entity<RgbLightControllerComponent> rgb)
{
offset = TimeSpan.Zero; // WD EDIT, Fix black RGB
return Color.FromHsv(new Vector4(
(float) (((curTime.TotalSeconds - offset.TotalSeconds) * rgb.Comp.CycleRate + Math.Abs(rgb.Owner.Id * 0.1)) % 1),
1.0f,