35 float num =
Utils.
MultiLerp(percent, 0f, 0f, 16f, 20f, 20f, 16f, 0f, 0f);
36 float num2 =
Utils.
MultiLerp(percent2, 0f, 0f, 0.25f, 0.25f, 0.5f, 0.5f, 0.75f, 0.75f, 1f, 1f);
37 proj.position.Y -= num;
38 proj.rotation = (float)
Math.
PI * 2f * num2;
50 proj.position.X += 6f;
59 proj.position.Y -=
Utils.
MultiLerp(percent, 0f, 0f, 16f, 20f, 20f, 16f, 0f, 0f);
65 float num = -0.3985988f;
66 Vector2 vector = (Vector2.UnitY * 2f).RotatedBy(num);
71 num2 = proj.oldPos.Length - 30;
84 vector = vector.RotatedBy(-0.05235987901687622);
86 proj.rotation = vector.ToRotation() + (float)
Math.
PI / 10f + (
float)
Math.
PI;
89 proj.rotation += (float)
Math.
PI / 8f;
93 proj.rotation += (float)
Math.
PI / 2f;
102 proj.rotation = (float)
Math.
PI * 2f * ((
float)Main.timeForVisualEffects % 20f / 20f);
112 Float(proj, walking);
120 proj.position.Y += 0f - num + (float)(
Math.
Cos(num2 * ((
float)
Math.
PI * 2f) * 2f) * (double)(num * 2f));
127 proj.rotation = (float)
Math.
PI / 6f;
201 Player.fartKartCloudDelay = 20;
206 Vector2 vector2 = Player.velocity * 0.1f;
207 if (vector2.
Length() > 2f)
209 vector2 = vector2.SafeNormalize(
Vector2.
Zero) * 2f;
213 Main.
gore[num2].velocity += vector2;
214 Main.
gore[num2].velocity.Y *= 0.75f;
217 Main.
gore[num2].velocity += vector2;
218 Main.
gore[num2].velocity.Y *= 0.75f;
221 Main.
gore[num2].velocity += vector2;
222 Main.
gore[num2].velocity.Y *= 0.75f;
228 for (
int i = 0; i < 15; i++)
230 Dust dust =
Dust.
NewDustPerfect(vector3 +
new Vector2(0f - num3 + num3 * 2f *
Main.
rand.NextFloat(), num4 *
Main.
rand.NextFloat()), 107,
Vector2.
Zero, 100,
Color.
Lerp(
new Color(64, 220, 96),
Color.
White,
Main.
rand.NextFloat() * 0.3f), 0.6f);
231 dust.velocity *= (float)
Main.
rand.Next(15, 51) * 0.01f;
232 dust.velocity.X *= (float)
Main.
rand.Next(25, 101) * 0.01f;
233 dust.velocity.Y -= (float)
Main.
rand.Next(15, 31) * 0.1f;
234 dust.velocity += vector2;
235 dust.velocity.Y *= 0.75f;
236 dust.fadeIn = 0.2f +
Main.
rand.NextFloat() * 0.1f;
237 dust.noGravity =
Main.
rand.Next(3) == 0;
238 dust.noLightEmittence =
true;
266 int num =
Dust.
NewDust(dustPosition, 1, 1, 211,
Main.
rand.Next(-2, 3),
Main.
rand.Next(-2, 3), 50,
default(
Color), 0.8f);
291 int num =
Dust.
NewDust(dustPosition, 1, 1, 107,
Main.
rand.Next(-2, 3),
Main.
rand.Next(-2, 3), 100,
Color.
Lerp(
new Color(64, 220, 96),
Color.
White,
Main.
rand.NextFloat() * 0.3f), 0.8f);
300 Main.
dust[num].noLightEmittence =
true;
356 public static float f_1 = 0f;
408 for (
int i = 0; i < 3; i++)
411 dust.noGravity =
true;
412 dust.velocity.Y -= 1.2f;
415 dust2.velocity.Y -= 1.2f;
416 dust2.velocity *= 2f;
436 for (
int j = x - 1; j <= x + 1; j++)
438 for (
int k = y - 1; k <= y + 1; k++)
446 for (
int l = j - 1; l <= j + 1; l++)
448 for (
int m = k - 1; m <= k + 1; m++)
479 return tile2.type == 380;
494 for (
int i = 0; i < 3; i++)
497 dust.noGravity =
true;
498 dust.velocity.Y -= 1.2f;
501 dust2.velocity.Y -= 1.2f;
502 dust2.velocity *= 4f;
519 for (
int i = 0; i < 3; i++)
522 dust.velocity.Y -= 1.2f;
525 dust2.velocity.Y -= 1.2f;
526 dust2.velocity *= 4f;
543 for (
int i = 0; i < 3; i++)
563 for (
int i = 0; i < 3; i++)
566 dust.noGravity =
true;
789 origin = frame.Size() / 2f;
793 distCovered = frame.Height;
794 origin =
new Vector2(frame.Width / 2, 0f);
799 origin =
new Vector2(frame.Width / 2, 1f);
818 origin = frame.Size() / 2f;
824 frame =
new Rectangle(0, 22 * (num + 1), 22, 20);
825 distCovered = frame.Height - 1;
826 origin =
new Vector2(frame.Width / 2, 0f);
831 distCovered = frame.Height;
832 origin =
new Vector2(frame.Width / 2, 1f);
851 origin = frame.Size() / 2f;
855 distCovered = frame.Height;
856 origin =
new Vector2(frame.Width / 2, 0f);
861 origin =
new Vector2(frame.Width / 2, 2f);
874 return b.
Y.CompareTo(a.
Y);
static float Lerp(float value1, float value2, float amount)
static double Cos(double d)
static void PlaySound(int type, Vector2 position, int style=1)
static void EtsyPet(Projectile proj, bool walking)
static void BerniePet(Projectile proj, bool walking)
static void SlimePet(Projectile proj, bool walking)
static void WormPet(Projectile proj, bool walking)
static void FloatAndRotateForwardWhenWalking(Projectile proj, bool walking)
static void RotateForwardWhenWalking(Projectile proj, bool walking)
static void Float(Projectile proj, bool walking)
static void CompanionCubePet(Projectile proj, bool walking)
static void FloatAndSpinWhenWalking(Projectile proj, bool walking)
static void LandingSoundFart(Player Player, Vector2 Position, int Width, int Height)
static void JumpingSoundFart(Player Player, Vector2 Position, int Width, int Height)
static void SparksMech(Vector2 dustPosition)
static void SparksFart(Vector2 dustPosition)
static void LandingSound(Player Player, Vector2 Position, int Width, int Height)
static Vector2 rotationOrigin
static void SparksTerraFart(Vector2 dustPosition)
static void SparksMeow(Vector2 dustPosition)
static void BumperSound(Player Player, Vector2 Position, int Width, int Height)
static void Sparks(Vector2 dustPosition)
static void BumperSoundFart(Player Player, Vector2 Position, int Width, int Height)
static void SpawnFartCloud(Player Player, Vector2 Position, int Width, int Height, bool useDelay=true)
static void JumpingSound(Player Player, Vector2 Position, int Width, int Height)
static bool WolfMouthPosition(Player player, out Vector2? position)
static bool NoHandPosition(Player player, out Vector2? position)
static bool SpreadWater(int x, int y)
static bool CheckStopForSolids(int x, int y)
static bool CastLightOpen_StopForSolids_ScaleWithDistance(int x, int y)
static bool SpreadLightOpen_StopForSolids(int x, int y)
static void LightningLaserDraw(int stage, Vector2 currentPosition, float distanceLeft, Rectangle lastFrame, out float distCovered, out Rectangle frame, out Vector2 origin, out Color color)
static Color ColorLerp_HSL_S(float percent)
static bool SpreadLava(int x, int y)
static bool SpreadDry(int x, int y)
static Color ColorLerp_BlackToWhite(float percent)
static Color ColorLerp_HSL_H(float percent)
static bool CastLightOpen_StopForSolids(int x, int y)
static Color ColorLerp_HSL_L(float percent)
static int CompareYReverse(Point a, Point b)
static bool SpreadTest(int x, int y)
static TileCuttingContext tilecut_0
static bool SearchAvoidedByNPCs(int x, int y)
static bool CutTiles(int x, int y)
static bool SpreadDirt(int x, int y)
static void RainbowLaserDraw(int stage, Vector2 currentPosition, float distanceLeft, Rectangle lastFrame, out float distCovered, out Rectangle frame, out Vector2 origin, out Color color)
static bool NotDoorStand(int x, int y)
static bool EmitGolfCartDust_StopForSolids(int x, int y)
static bool SpreadHoney(int x, int y)
static bool TestDust(int x, int y)
static Color ColorLerp_HSL_O(float percent)
static bool CastLight(int x, int y)
static bool[] tileCutIgnore
static bool CheckResultOut
static bool CastLightOpen(int x, int y)
static void TurretLaserDraw(int stage, Vector2 currentPosition, float distanceLeft, Rectangle lastFrame, out float distCovered, out Rectangle frame, out Vector2 origin, out Color color)
static int CompareDrawSorterByYScale(DrawData a, DrawData b)
static int NewDust(Vector2 Position, int Width, int Height, int Type, float SpeedX=0f, float SpeedY=0f, int Alpha=0, Color newColor=default(Color), float Scale=1f)
static Dust NewDustPerfect(Vector2 Position, int Type, Vector2? Velocity=null, int Alpha=0, Color newColor=default(Color), float Scale=1f)
static Dust NewDustDirect(Vector2 Position, int Width, int Height, int Type, float SpeedX=0f, float SpeedY=0f, int Alpha=0, Color newColor=default(Color), float Scale=1f)
static int NewGore(Vector2 Position, Vector2 Velocity, int Type, float Scale=1f)
static ArmorShaderDataSet Armor
static readonly LegacySoundStyle Item16
static readonly LegacySoundStyle Item53
static readonly LegacySoundStyle Item56
static bool[] AvoidedByNPCs
static readonly ushort Count
static void AddLight(Vector2 position, Vector3 rgb)
static bool[] tileSolidTop
static double timeForVisualEffects
static UnifiedRandom rand
static Microsoft.Xna.Framework.Color hslToRgb(Vector3 hslVector)
static void SendData(int msgType, int remoteClient=-1, int ignoreClient=-1, NetworkText text=null, int number=0, float number2=0f, float number3=0f, float number4=0f, int number5=0, int number6=0, int number7=0)
Vector2 RotatedRelativePoint(Vector2 pos, bool reverseRotation=false, bool addGfxOffY=true)
static float MultiLerp(float percent, params float[] floats)
static bool PlaceLiquid(int x, int y, byte liquidType, byte amount)
static bool SolidTile(Tile testTile)
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)
static bool TryKillingReplaceableTile(int x, int y, int tileType)
static bool SlopeTile(int i, int j, int slope=0, bool noEffects=false)
static bool EmptyLiquid(int x, int y)
static bool InWorld(int x, int y, int fluff=0)
static bool CanCutTile(int x, int y, TileCuttingContext context)
static Color Lerp(Color value1, Color value2, float amount)
static float Distance(Vector2 value1, Vector2 value2)