37093 {
37094
37095
37096
37097
37098
37100 if (
type == 917 && (!player.active || player.dead))
37101 {
37102 player.coolWhipBuff = false;
37104 return;
37105 }
37106 if (
type == 917 && player.coolWhipBuff)
37107 {
37109 }
37111 {
37114 {
37119 }
37122 {
37123 activeSound.Position =
base.Center;
37124 activeSound.Volume = 1f -
Math.
Max(
ai[1] - 555f, 0f) / 15f;
37125 }
37126 else
37127 {
37131 }
37134 {
37136 }
37138 {
37140 }
37141 float num = 555f;
37142 for (
int i = 0;
i < 1000;
i++)
37143 {
37144 if (i !=
whoAmI && Main.projectile[i].active && Main.projectile[i].owner ==
owner && Main.projectile[i].type ==
type &&
timeLeft > Main.projectile[i].timeLeft && Main.projectile[i].ai[1] < num)
37145 {
37146 Main.projectile[
i].ai[1] = num;
37147 Main.projectile[
i].netUpdate =
true;
37148 }
37149 }
37150 }
37151 int num2 = (int)
ai[0] - 1;
37153 {
37156 }
37158 {
37161 {
37163 }
37166 {
37170 }
37171 }
37176 {
37180 }
37182 {
37186 {
37188 }
37191 {
37193 }
37194 }
37195 else if (
type == 969)
37196 {
37199 {
37201 }
37202 }
37203 else
37204 {
37206 }
37208 {
37211 {
37215 {
37217 }
37218 }
37220 {
37222 Main.dust[
num6].noGravity =
true;
37223 Main.dust[
num6].fadeIn = 0.9f;
37224 Main.dust[
num6].velocity = Main.rand.NextVector2Circular(2f, 2f) +
new Vector2(0f, -2f) +
velocity * 0.75f;
37225 for (
int j = 0;
j < 2;
j++)
37226 {
37228 dust.noGravity = true;
37229 dust.fadeIn = 0.7f;
37230 dust.velocity = Main.rand.NextVector2Circular(2f, 2f) * 0.2f +
new Vector2(0f, -0.4f) +
velocity * 1.5f;
37232 }
37233 }
37234 }
37235 else
37236 {
37238 if (Main.rand.Next(3) == 0)
37239 {
37242 dust2.position = base.Center +
vector3 * 10f;
37244 }
37245 }
37246 }
static float Lerp(float value1, float value2, float amount)
static double Abs(double value)
static byte Max(byte val1, byte val2)
static SlotId PlayTrackedSound(SoundStyle style, Vector2 position)
static ActiveSound GetActiveSound(SlotId id)
float Distance(Vector2 Other)
Vector2 DirectionTo(Vector2 Destination)
static readonly LegacySoundStyle DD2_BookStaffTwisterLoop
NPC FindTargetWithinRange(float maxRange, bool checkCanHit=false)
static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount)
static readonly SlotId Invalid
static SlotId FromFloat(float value)