internal void PreUpdateMovementHandleAura() { AuraAppearance aura = GetAura(); if (Aura != aura) { Aura = aura; } if (Aura == null) { return; } AuraFrameTimer += Aura.GetTicksPerFrameTimerTick(this); if (AuraFrameTimer >= Aura.Information.FramesTimer) { AuraFrameTimer = 0; AuraFrameIndex++; } if (AuraFrameIndex >= Aura.Information.FramesCount) { AuraFrameIndex = 0; } float[] rgbLightingRadiuses = aura.Lighting.GetRGBLightingRadiuses(this); Lighting.AddLight(player.Center + player.velocity * 8f, rgbLightingRadiuses[0], rgbLightingRadiuses[1], rgbLightingRadiuses[2]); }
protected TransformationAppearance(AuraAppearance aura, HairAppearance hair, Color?generalColor) { Aura = aura; Hair = hair; GeneralColor = generalColor; }
protected TransformationAppearance(AuraAppearance aura, HairAppearance hair, Color?generalColor, Color?eyeColor, TransformationAppearance manualFur = null) { Aura = aura; Hair = hair; EyeColor = eyeColor; GeneralColor = generalColor; ManualFur = manualFur; }