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

◆ SetDefaults()

void Terraria.NPC.SetDefaults ( int Type,
[Optional] NPCSpawnParams spawnparams )
inline

Definition at line 1155 of file NPC.cs.

1156 {
1157 GameModeData gameModeData = spawnparams.gameModeData;
1158 int num;
1159 if (gameModeData == null)
1160 {
1161 if (gameModeData == null)
1162 {
1163 }
1164 num = 1;
1165 if (num == 0)
1166 {
1167 }
1169 }
1170 if (num == 0)
1171 {
1172 }
1173 if (num != 0)
1174 {
1175 return;
1176 }
1177 int num2 = 16000;
1179 float x = this.netOffset.X;
1180 float y = this.netOffset.Y;
1181 bool[] array = this.playerInteraction;
1182 int num3 = 16256;
1184 int num4;
1185 if (this.defDamage != 0)
1186 {
1187 num4 = 16256;
1189 }
1190 long num5 = 16256L;
1191 num4.m_value = (int)num5;
1192 if (num4 == 0)
1193 {
1194 }
1195 }
class f__AnonymousType0<< Count > j__TPar
Vector2 netOffset
Definition NPC.cs:11129
bool[] playerInteraction
Definition NPC.cs:11141
int defDamage
Definition NPC.cs:11411

References System.array, Terraria.NPC.defDamage, j__TPar, System.L, Terraria.NPC.netOffset, Terraria.NPC.playerInteraction, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.NPC.SetDefaults_ForNetId(), and Terraria.NPC.SetDefaultsFromNetId().