38143 {
38147 Main.player[
owner].MatchItemTimeToItemAnimation();
38148 position.X = vector.X - (float)(
width / 2);
38149 position.Y = vector.Y - (float)(
height / 2);
38150 bool flag = Main.player[
owner].itemAnimation < Main.player[
owner].itemAnimationMax / 3;
38151 if (!Main.player[
owner].frozen)
38152 {
38154 {
38156 {
38159 }
38160 if (flag)
38161 {
38163 }
38164 else
38165 {
38167 }
38168 }
38169 else if (
type == 105)
38170 {
38172 {
38175 }
38176 if (flag)
38177 {
38179 }
38180 else
38181 {
38183 }
38184 }
38185 else if (
type == 367)
38186 {
38189 {
38192 }
38193 if (flag)
38194 {
38196 }
38197 else
38198 {
38200 }
38201 }
38202 else if (
type == 368)
38203 {
38206 {
38209 }
38210 if (flag)
38211 {
38213 }
38214 else
38215 {
38217 }
38218 }
38219 else if (
type == 222)
38220 {
38222 {
38225 }
38226 if (flag)
38227 {
38230 {
38233 }
38234 }
38235 else
38236 {
38238 }
38239 }
38240 else if (
type == 342)
38241 {
38243 {
38246 }
38247 if (flag)
38248 {
38251 {
38254 {
38256 }
38257 }
38258 }
38259 else
38260 {
38262 }
38263 }
38264 else if (
type == 47)
38265 {
38267 {
38270 }
38271 if (flag)
38272 {
38274 }
38275 else
38276 {
38278 }
38279 }
38280 else if (
type == 153)
38281 {
38284 {
38287 }
38288 if (flag)
38289 {
38291 }
38292 else
38293 {
38295 }
38296 }
38297 else if (
type == 49)
38298 {
38300 {
38303 }
38304 if (flag)
38305 {
38307 }
38308 else
38309 {
38311 }
38312 }
38313 else if (
type == 730)
38314 {
38317 {
38321 {
38325 }
38326 }
38327 if (flag)
38328 {
38330 }
38331 else
38332 {
38334 }
38335 }
38336 else if (
type == 64 ||
type == 215)
38337 {
38340 {
38343 }
38344 if (flag)
38345 {
38347 }
38348 else
38349 {
38351 }
38352 }
38354 {
38357 {
38360 }
38361 if (flag)
38362 {
38364 }
38365 else
38366 {
38368 }
38369 }
38370 else if (
type == 130)
38371 {
38374 {
38377 }
38378 if (flag)
38379 {
38381 }
38382 else
38383 {
38385 }
38386 }
38387 }
38390 {
38391 if (
ai[1] == 0f ||
ai[1] == 4f ||
ai[1] == 8f ||
ai[1] == 12f ||
ai[1] == 16f ||
ai[1] == 20f ||
ai[1] == 24f)
38392 {
38394 }
38396 }
38397 if (Main.player[
owner].itemAnimation == 0)
38398 {
38400 }
38403 {
38405 }
38407 {
38408 if (Main.rand.Next(5) == 0)
38409 {
38411 }
38413 Main.dust[num].noGravity = true;
38414 Main.dust[num].velocity.X /= 2f;
38415 Main.dust[num].velocity.Y /= 2f;
38417 Main.dust[num].velocity.X /= 5f;
38418 Main.dust[num].velocity.Y /= 5f;
38419 }
38421 {
38422 if (Main.rand.Next(5) == 0)
38423 {
38425 dust.noGravity = true;
38426 dust.velocity *= 1.4f;
38427 }
38428 if (Main.rand.Next(5) == 0)
38429 {
38431 }
38432 }
38433 else if (
type == 105)
38434 {
38435 if (Main.rand.Next(3) == 0)
38436 {
38439 Main.dust[
num2].velocity *= 0.2f;
38440 }
38441 if (Main.rand.Next(4) == 0)
38442 {
38445 Main.dust[
num3].velocity *= 0.5f;
38446 }
38447 }
38448 else if (
type == 153)
38449 {
38451 Main.dust[
num4].noGravity =
true;
38452 Main.dust[
num4].fadeIn = 1.25f;
38453 Main.dust[
num4].velocity *= 0.25f;
38454 }
38455 }
static double Atan2(double y, double x)
IEntitySource GetProjectileSource_FromThis()
static int NewProjectile(IEntitySource spawnSource, Vector2 position, Vector2 velocity, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)