87093 {
87096 {
87097 return;
87098 }
87100 {
87102 }
87103 else if (Main.netMode == 2)
87104 {
87106 }
87107 else if (Main.multiplayerNPCSmoothingRange <= 0)
87108 {
87110 }
87112 {
87114 {
87116 }
87118 {
87120 }
87121 else
87122 {
87123 float num = 2f;
87124 float num2 = Main.multiplayerNPCSmoothingRange;
87127 {
87131 }
87138 {
87140 }
87142 {
87144 {
87146 }
87148 {
87150 }
87151 }
87152 }
87153 }
87156 {
87158 }
87159 if (Main.netMode != 2)
87160 {
87162 }
87166 if (
aiStyle == 7 &&
position.
Y > Main.bottomWorld - 640f + (
float)
height && Main.netMode != 1 && !Main.xMas)
87167 {
87169 if (Main.netMode == 2)
87170 {
87171 NetMessage.SendData(28, -1, -1,
null,
whoAmI, 9999f);
87172 }
87173 }
87174 if (Main.netMode == 1)
87175 {
87176 bool flag = false;
87179 try
87180 {
87182 {
87183 if (Main.tile[
num4,
num5] ==
null)
87184 {
87185 flag = true;
87186 }
87187 else if (Main.tile[
num4 - 3,
num5] ==
null)
87188 {
87189 flag = true;
87190 }
87191 else if (Main.tile[
num4 + 3,
num5] ==
null)
87192 {
87193 flag = true;
87194 }
87195 else if (Main.tile[
num4,
num5 - 3] ==
null)
87196 {
87197 flag = true;
87198 }
87199 else if (Main.tile[
num4,
num5 + 3] ==
null)
87200 {
87201 flag = true;
87202 }
87203 }
87204 }
87205 catch
87206 {
87207 flag = true;
87208 }
87209 if (flag)
87210 {
87211 return;
87212 }
87213 }
87223 {
87225 }
87227 {
87232 return;
87233 }
87239 {
87242 {
87244 }
87245 }
87247 {
87250 {
87252 }
87253 }
87255 {
87257 }
87259 {
87261 }
87267 {
87271 {
87274 }
87276 {
87279 }
87281 {
87284 }
87285 if (Main.rand.Next((
int)
num8) == 0)
87286 {
87289 Main.dust[
num9].velocity *= 0.1f;
87291 }
87292 }
87293 for (
int j = 0;
j < 256;
j++)
87294 {
87296 {
87298 }
87299 }
87301 {
87305 {
87307 velocity.X = 0f;
87308 velocity.Y = 0f;
87309 }
87310 }
87312 {
87315 {
87316 velocity.Y = maxFallSpeed;
87317 }
87318 }
87319 if ((
double)velocity.X < 0.005 && (double)
velocity.
X > -0.005)
87320 {
87321 velocity.X = 0f;
87322 }
87324 {
87326 {
87328 }
87331 }
87333 {
87335 }
87337 {
87339 }
87340 else
87341 {
87346 {
87348 {
87350 {
87352 }
87353 }
87354 }
87355 }
87357 {
87361 }
87368 }
static double Abs(double value)
static bool[] TakesDamageFromHostilesWithoutBeingFriendly
static bool[] NoMultiplayerSmoothingByType
static bool[] NoMultiplayerSmoothingByAI
static bool[] HurtingBees
void UpdateNPC_CritterSounds()
void UpdateNPC_BuffApplyDOTs()
void UpdateNPC_BuffSetFlags(bool lowerBuffTime=true)
static readonly int maxBuffs
void UpdateNPC_BuffApplyVFX()
void UpdateNPC_CastLights()
void UpdateNPC_BuffFlagsReset()
void UpdateNetworkCode(int i)
void UpdateNPC_UpdateTrails()
double StrikeNPCNoInteraction(int Damage, float knockBack, int hitDirection, bool crit=false, bool noEffect=false, bool fromNet=false)
void DelBuff(int buffIndex)
void SubAI_HandleTemporaryCatchableNPCPlayerInvulnerability()
static int offSetDelayTime
void UpdateNPC_UpdateGravity(out float maxFallSpeed)
void TrySyncingUniqueTownNPCData(int npcIndex)
void GetHurtByOtherNPCs(bool[] acceptableNPCIDs)
static bool[] npcsFoundForCheckActive
void UpdateNPC_BloodMoonTransformations()
void UpdateNPC_BuffClearExpiredBuffs()
void UpdateNPC_SoulDrainDebuff()
void UpdateNPC_TeleportVisuals()
static float Distance(Vector2 value1, Vector2 value2)