terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ HitEffect()

void Terraria.NPC.HitEffect ( int hitDirection = 0,
double dmg = 10::0 )
inline

Definition at line 6931 of file NPC.cs.

6932 {
6933 if (!this.active)
6934 {
6935 return;
6936 }
6937 if (this.townNPC)
6938 {
6939 int num = this.life;
6940 bool flag = this.UsesPartyHat();
6942 int num2 = this.type;
6943 float x = this.position.X;
6944 float x2 = this.velocity.X;
6946 return;
6947 }
6948 if (this.daybreak)
6949 {
6950 int num3 = this.life;
6951 Rectangle hitbox = base.Hitbox;
6952 if (20 != 0)
6953 {
6954 Vector2 vector = hitbox.TopLeft();
6955 int width = this.width;
6956 bool wet = this.wet;
6957 return;
6958 }
6959 bool logicHost = Main.LogicHost;
6960 int num4;
6961 if (num4 == 0)
6962 {
6963 }
6964 if (num4 == 0 || num4 != 0 || num4 != 0 || num4 != 0 || num4 == 0)
6965 {
6966 }
6967 }
6968 int num5 = this.type;
6969 int num6 = this.life;
6970 Vector2 bottom = base.Bottom;
6971 if (!true)
6972 {
6973 }
6974 float num7 = this.rotation;
6975 Gore gore;
6976 float y = gore.velocity.Y;
6977 float x3 = gore.velocity.X;
6978 float num8;
6981 Vector2 bottom2 = base.Bottom;
6982 if (!true)
6983 {
6984 }
6985 float num9 = this.rotation;
6986 Gore gore2;
6987 float y2 = gore2.velocity.Y;
6988 float x4 = gore2.velocity.X;
6991 Vector2 bottom3 = base.Bottom;
6992 Vector2 velocity = this.velocity;
6993 int num10 = 680;
6994 this.Transform(num10);
6995 int num11 = 1;
6998 this.netUpdate = num11 != 0;
6999 if (num11 == 0)
7000 {
7001 }
7002 bool netHost = Main.NetHost;
7003 int num12 = this.life;
7004 float[] array = this.ai;
7005 Vector2 bottom4 = base.Bottom;
7006 if (!true)
7007 {
7008 }
7009 float num13 = this.rotation;
7010 Gore gore3;
7011 float y3 = gore3.velocity.Y;
7012 float x5 = gore3.velocity.X;
7015 Vector2 bottom5 = base.Bottom;
7016 if (!true)
7017 {
7018 }
7019 float num14 = this.rotation;
7020 Gore gore4;
7021 float y4 = gore4.velocity.Y;
7022 float x6 = gore4.velocity.X;
7026 if (npc != null)
7027 {
7028 float[] array2 = npc.ai;
7029 float y5 = npc.position.Y;
7030 int num15 = 1;
7031 npc.netUpdate = num15 != 0;
7033 }
7034 int num16 = this.life;
7035 int num17 = this.lifeMax;
7036 int num18;
7037 if (num18 == 0)
7038 {
7039 int num19 = 255;
7040 float num20;
7041 Color color = Main.hslToRgb(num20, num8, num20, (byte)num19);
7042 float x7 = this.position.X;
7043 float y6 = this.position.Y;
7044 int width2 = this.width;
7045 bool wet2 = this.wet;
7046 Vector2 center = base.Center;
7047 int width3 = this.width;
7048 bool wet3 = this.wet;
7049 Vector2 center2 = base.Center;
7050 return;
7051 }
7052 int num21 = this.lifeMax;
7053 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
int lifeMax
Definition NPC.cs:11432
float[] ai
Definition NPC.cs:11384
Color color
Definition NPC.cs:11444
float rotation
Definition NPC.cs:11465
bool UsesPartyHat()
Definition NPC.cs:4384
bool IsShimmerVariant
Definition NPC.cs:280
void Transform(int newType)
Definition NPC.cs:6764
bool daybreak
Definition NPC.cs:11309
NPC AI_113_WindyBalloon_GetSlaveNPC()
Definition NPC.cs:2913
bool townNPC
Definition NPC.cs:11519

References Terraria.Entity.active, Terraria.NPC.ai, Terraria.NPC.AI_113_WindyBalloon_GetSlaveNPC(), System.array, Terraria.NPC.color, Terraria.NPC.daybreak, Terraria.Main.hslToRgb(), Terraria.NPC.IsShimmerVariant, j__TPar, Terraria.NPC.life, Terraria.NPC.lifeMax, Terraria.Main.LogicHost, Terraria.Main.NetHost, Terraria.Entity.position, Terraria.NPC.rotation, Terraria.NPC.townNPC, Terraria.NPC.Transform(), Terraria.NPC.type, Terraria.NPC.UsesPartyHat(), Terraria.Entity.velocity, Terraria.Gore.velocity, Terraria.Entity.wet, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.NPC.AI_037_Destroyer().