15162 {
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15178 {
15179 return;
15180 }
15185 {
15186 case 987:
15190 break;
15191 case 988:
15195 break;
15196 case 989:
15200 break;
15201 case 990:
15205 break;
15206 case 991:
15210 break;
15211 case 992:
15215 break;
15216 case 993:
15217 num *= (float)Main.DiscoR / 255
f;
15218 num2 *= (float)Main.DiscoG / 255
f;
15219 num3 *= (float)Main.DiscoB / 255
f;
15220 break;
15221 }
15223 {
15226 }
15227 else if (
type == 493 ||
type == 494)
15228 {
15230 }
15231 else if (
type == 876)
15232 {
15236 }
15237 else if (
type == 867)
15238 {
15239 float num4 = (float)Main.rand.Next(28, 42) * 0.005f;
15240 num4 += (float)(270 - Main.mouseTextColor) / 500
f;
15244 }
15245 else if (
type == 1000)
15246 {
15247 float num5 = (float)Main.rand.Next(28, 42) * 0.005f;
15248 num5 += (float)(270 - Main.mouseTextColor) / 500
f;
15252 }
15253 else if (
type == 332)
15254 {
15257 }
15258 else if (
type == 259)
15259 {
15261 if (Main.getGoodWorld)
15262 {
15266 }
15267 }
15268 else if (
type == 329)
15269 {
15272 }
15274 {
15277 }
15278 else if (
type == 172)
15279 {
15282 }
15283 else if (
type == 308)
15284 {
15287 }
15288 else if (
type == 304)
15289 {
15292 }
15293 else if (
type == 263)
15294 {
15297 }
15298 else if (
type == 274)
15299 {
15302 }
15303 else if (
type == 254)
15304 {
15306 }
15307 else if (
type == 94)
15308 {
15311 }
15313 {
15317 }
15318 else if (
type == 4)
15319 {
15322 }
15323 else if (
type == 257)
15324 {
15327 }
15328 else if (
type == 9)
15329 {
15332 }
15333 else if (
type == 488)
15334 {
15338 }
15339 else if (
type == 92)
15340 {
15343 }
15344 else if (
type == 93)
15345 {
15349 }
15350 else if (
type == 12 ||
type == 955)
15351 {
15355 }
15357 {
15360 }
15361 else if (
type == 981)
15362 {
15365 }
15366 else if (
type == 15)
15367 {
15371 }
15372 else if (
type == 16)
15373 {
15377 }
15378 else if (
type == 18)
15379 {
15382 }
15383 else if (
type == 19)
15384 {
15387 }
15388 else if (
type == 20)
15389 {
15392 }
15393 else if (
type == 22)
15394 {
15397 }
15398 else if (
type == 27)
15399 {
15403 }
15404 else if (
type == 34)
15405 {
15408 }
15409 else if (
type == 36)
15410 {
15414 }
15415 else if (
type == 41)
15416 {
15419 }
15420 else if (
type == 44 ||
type == 45)
15421 {
15425 }
15426 else if (
type == 50)
15427 {
15430 }
15431 else if (
type == 515)
15432 {
15435 }
15436 else if (
type == 870)
15437 {
15440 }
15441 else if (
type == 53)
15442 {
15445 }
15446 else if (
type == 473)
15447 {
15451 }
15452 else if (
type == 72)
15453 {
15457 }
15458 else if (
type == 86)
15459 {
15463 }
15464 else if (
type == 87)
15465 {
15469 }
15470 else if (
type == 73)
15471 {
15475 }
15476 else if (
type == 74)
15477 {
15481 }
15482 else if (
type == 284)
15483 {
15487 }
15488 else if (
type == 285)
15489 {
15493 }
15494 else if (
type == 286)
15495 {
15499 }
15500 else if (
type == 287)
15501 {
15505 }
15506 else if (
type == 283)
15507 {
15510 }
15512 {
15516 }
15517 else if (
type == 79)
15518 {
15519 num = (float)Main.DiscoR / 255
f;
15520 num2 = (float)Main.DiscoG / 255
f;
15521 num3 = (float)Main.DiscoB / 255
f;
15522 }
15523 else if (
type == 80)
15524 {
15528 }
15529 else if (
type == 83 ||
type == 88)
15530 {
15534 }
15535 else if (
type == 100)
15536 {
15540 }
15541 else if (
type == 84 ||
type == 389)
15542 {
15546 }
15547 else if (
type == 89 ||
type == 90)
15548 {
15552 }
15553 else if (
type == 106)
15554 {
15558 }
15559 else if (
type == 113)
15560 {
15564 }
15565 else if (
type == 114 ||
type == 115)
15566 {
15570 }
15571 else if (
type == 116)
15572 {
15574 }
15575 else if (
type == 131)
15576 {
15579 }
15580 else if (
type == 132 ||
type == 157)
15581 {
15584 }
15585 else if (
type == 156)
15586 {
15590 }
15591 else if (
type == 173)
15592 {
15596 }
15597 else if (
type == 207)
15598 {
15601 }
15602 else if (
type == 253)
15603 {
15606 }
15607 else if (
type == 211)
15608 {
15613 {
15615 }
15616 else
15617 {
15619 }
15620 }
15621 else if (
type == 209)
15622 {
15630 }
15631 else if (
type == 226 || ((
type == 221) | (
type == 229)))
15632 {
15636 }
15637 else if (
type == 251)
15638 {
15639 num = (float)Main.DiscoR / 255
f;
15640 num2 = (float)Main.DiscoG / 255
f;
15641 num3 = (float)Main.DiscoB / 255
f;
15648 }
15649 else if (
type == 278 ||
type == 279)
15650 {
15654 }
15656 {
15657 Vector3
rgb = (DelegateMethods.v3_1 =
new Vector3(
num,
num2,
num3));
15658 Point
p =
base.Center.ToTileCoordinates();
15659 DelegateMethods.v2_1 =
p.ToVector2();
15660 DelegateMethods.f_1 = 4.5f;
15661 Utils.PlotTileArea(
p.X,
p.Y, DelegateMethods.SpreadLightOpen_StopForSolids);
15662 Lighting.AddLight(
base.Center,
rgb);
15663 }
15664 else
15665 {
15667 }
15668 }
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
int alpha
How transparent to draw this projectile. 0 to 255. 255 is completely transparent. ExampleBulletsets...
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
float light
Set to a value above 0f to make this projectile emit a white light (higher number: more intensive lig...