13286 {
13289 {
13291 }
13293 {
13295 }
13297 {
13300 {
13302 }
13304 {
13306 }
13308 {
13310 }
13313 }
13315 {
13320 {
13322 {
13324 break;
13325 }
13327 }
13328 }
13330 {
13333 }
13335 {
13337 }
13339 {
13342 }
13344 {
13347 }
13349 {
13351 }
13353 {
13356 }
13357 else if (
type == 36)
13358 {
13361 }
13363 {
13366 }
13368 {
13372 }
13373 else if (
type == 115)
13374 {
13377 {
13379 }
13381 {
13383 }
13385 }
13386 else if (
type == 116)
13387 {
13390 {
13392 }
13394 {
13396 }
13397 }
13399 {
13401 }
13403 {
13405 }
13407 {
13409 }
13411 {
13414 {
13416 }
13418 {
13420 }
13422 {
13424 }
13426 }
13427 else if (
type == 139)
13428 {
13432 }
13434 {
13437 }
13439 {
13442 }
13444 {
13447 }
13448 else if (
type == 264)
13449 {
13452 }
13454 {
13457 }
13459 {
13462 }
13464 {
13467 }
13469 {
13471 {
13473 }
13475 }
13477 {
13479 {
13481 }
13483 }
13485 {
13488 }
13490 {
13493 }
13495 {
13499 }
13502 {
13503 case 305:
13504 case 306:
13505 case 307:
13506 case 308:
13507 case 309:
13508 case 310:
13509 case 311:
13510 case 312:
13511 case 313:
13512 case 314:
13513 case 326:
13514 case 329:
13515 case 330:
13518 break;
13519 case 315:
13520 case 325:
13521 case 327:
13524 break;
13525 }
13527 {
13528 case 338:
13529 case 339:
13530 case 340:
13531 case 341:
13532 case 342:
13533 case 343:
13534 case 347:
13535 case 348:
13536 case 349:
13537 case 350:
13538 case 351:
13539 case 352:
13542 break;
13543 case 344:
13544 case 345:
13545 case 346:
13548 break;
13549 }
13550 if (Main.getGoodWorld)
13551 {
13553 {
13556 }
13558 {
13561 }
13563 {
13566 }
13567 }
13572 }
static bool[] BelongsToInvasionOldOnesArmy
If true for a given NPC type (F:Terraria.NPC.type), then that NPC belongs to the Old One's Army event...
static void ApplyDifficultyAndPlayerScaling(NPC npc, int numPlayers, float balance, float bossAdjustment)
This serves as the central class from which NPC-related functions are carried out....
int defense
How resistant to damage this NPC is. The List of NPCs wiki pagecan be useful for finding appropriat...
int damage
The amount of contact damage this NPC deals. Changing this WILL NOT change the amount of damage done...
int lifeMax
The maximum life of this NPC.
int defDefense
Stores the value of F:Terraria.NPC.defense at the end of SetDefaults. Useful for scaling defense in A...
float knockBackResist
How much of the knockback it receives will actually apply. 1f: full knockback; 0f: no knockback....
float scale
Makes the NPC bigger or smaller. Bigger than 1f is bigger. Defaults to 1f.
static bool AnyNPCs(int Type)
Returns true if there are any active NPC in the world of the given NPC type (F:Terraria....
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
int defDamage
Stores the value of F:Terraria.NPC.damage at the end of SetDefaults. Useful for scaling damage in AI ...
int life
The current life of the NPC. Automatically set to the value of F:Terraria.NPC.lifeMax at the end of S...