Esword stuff (#329)
* - fix: Fix black RGB. * - add: Toy sword update. * - add: FlipOnHitSystem. * - tweak: Price reduction.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user