Refactor inventory to remove dulplicated code.
Refactor inventory to remove dulplicated code.

yeerkkiller1/buildblast,crazy2be/buildblast,yeerkkiller1/buildblast,crazy2be/buildblast,yeerkkiller1/buildblast,crazy2be/buildblast,crazy2be/buildblast,yeerkkiller1/buildblast,yeerkkiller1/buildblast,crazy2be/buildblast