Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetCurrentlyOpenChests()

static List< int > Terraria.Chest.GetCurrentlyOpenChests ( )
inlinestatic

Definition at line 222 of file Chest.cs.

223 {
224 List<int> list = new List<int>();
225 for (int i = 0; i < 255; i++)
226 {
227 if (Main.player[i].chest > -1)
228 {
229 list.Add(Main.player[i].chest);
230 }
231 }
232 return list;
233 }

References Terraria.Main.player.

Referenced by Terraria.GameContent.Events.DD2Event.ClearAllDD2EnergyCrystalsInChests().