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

◆ IsLocked() [2/2]

static bool Terraria.Chest.IsLocked ( Tile t)
inlinestatic

Definition at line 240 of file Chest.cs.

241 {
242 if (t == null)
243 {
244 return true;
245 }
246 if (t.type == 21 && ((t.frameX >= 72 && t.frameX <= 106) || (t.frameX >= 144 && t.frameX <= 178) || (t.frameX >= 828 && t.frameX <= 1006) || (t.frameX >= 1296 && t.frameX <= 1330) || (t.frameX >= 1368 && t.frameX <= 1402) || (t.frameX >= 1440 && t.frameX <= 1474)))
247 {
248 return true;
249 }
250 if (t.type == 467)
251 {
252 return t.frameX / 36 == 13;
253 }
254 return false;
255 }

References Terraria.Tile.frameX, and Terraria.Tile.type.