59346 {
59348 {
59351 {
59353 }
59355 {
59357 }
59358 ai[0] = ((
num == 0) ? 20 : Main.rand.Next(20, 20 +
num));
59359 ai[1] = 200 + Main.rand.Next(300);
59360 if (
ai[0] == 20
f &&
type == 637)
59361 {
59362 ai[1] = 500 + Main.rand.Next(200);
59363 }
59364 if (
ai[0] == 21
f &&
type == 638)
59365 {
59366 ai[1] = 100 + Main.rand.Next(100);
59367 }
59368 if (
ai[0] == 22
f &&
type == 656)
59369 {
59370 ai[1] = 200 + Main.rand.Next(200);
59371 }
59373 {
59374 ai[1] = 180 + Main.rand.Next(240);
59375 }
59379 }
59380 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
static bool[] IsTownSlime
If true for a given NPC type (F:Terraria.NPC.type), then that NPC is categorized as a town slime....
float[] localAI
Acts like F:Terraria.NPC.ai, but does not sync to the server. Many vanilla T:Terraria....
float[] ai
An array with 4 slots used for any sort of data storage, which is occasionally synced from the server...
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....