Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getPartById(partId) {
- for (var i in user.data.characters[0].constructions.shield.parts) {
- var otherPart = user.data.characters[0].constructions.shield.parts[i].part;
- if (otherPart.id === partId) {
- return otherPart;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement