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

◆ GetNearbyResidentNPCs()

List< NPC > Terraria.GameContent.ShopHelper.GetNearbyResidentNPCs ( NPC npc,
[Out] int npcsWithinHouse,
[Out] int npcsWithinVillage )
inlineprivate

Definition at line 260 of file ShopHelper.cs.

261 {
262 int whoAmI;
263 do
264 {
265 int homeTileX = npc.homeTileX;
266 int homeTileY = npc.homeTileY;
267 if (npc.homeless)
268 {
269 Vector2 center = npc.Center;
270 }
271 whoAmI = npc.whoAmI;
272 if (whoAmI == 0)
273 {
274 }
275 }
276 while (whoAmI == 0 || whoAmI == 0);
277 if (whoAmI == 0)
278 {
279 }
280 if (whoAmI != 0)
281 {
282 if (whoAmI == 0)
283 {
284 }
285 }
286 if (whoAmI == 0)
287 {
288 return;
289 }
290 }

References Terraria.Entity.Center, Terraria.NPC.homeless, Terraria.NPC.homeTileX, Terraria.NPC.homeTileY, and Terraria.Entity.whoAmI.