45142 {
45143
45144
45145
45146
45147
45148
45149
45150
45151
45152
45153
45154
45155
45156
45157
45158
45159
45160
45161
45162
45163
45164
45169 float num9 = -0.4f;
45171 float num10 = 0.4f;
45174 {
45177 {
45178 rectangle.X = (int)(
base.Center.X + (
float)(160 *
direction));
45179 }
45180 }
45184 {
45186 }
45190 {
45194 }
45196 {
45197 velocity.X *= 0.9f;
45198 if ((
double)velocity.X > -0.1 && (double)
velocity.X < 0.1)
45199 {
45201 }
45202 }
45203 else
45204 {
45207 }
45211 Vector2
vector =
default(Vector2);
45214 bool flag3 = vector.Y + (float)
num3 < (
float)(rectangle.Y + rectangle.Height - 16);
45221 {
45223 }
45225 {
45227 }
45229 {
45231 }
45233 {
45235 }
45237 {
45238 velocity.Y = 0
f -
num5;
45240 }
45241 else
45242 {
45244 }
45245 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
float Distance(Vector2 Other)
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.
float[] localAI
Acts like F:Terraria.NPC.ai, but does not sync to the server. Many vanilla T:Terraria....
int lifeMax
The maximum life of this NPC.
NPCAimedTarget GetTargetData(bool ignorePlayerTankPets=true)
float[] ai
An array with 4 slots used for any sort of data storage, which is occasionally synced from the server...
int life
The current life of the NPC. Automatically set to the value of F:Terraria.NPC.lifeMax at the end of S...