One of the new systems in Mystery Dungeon: Shiren the Wanderer 3
allows you to imbue items with elemental (or other) attributes at certain locations around the dungeon. When you happen upon a spot marked with (for instance) a lightning icon, you can set an item down and allow it to "grow" a lightning attribute.
This is done by first setting the item down in the right spot, then using scrolls to create a barrier around the item. After a few turns, the barrier will break down and the item will be ready! And you'll probably be dead anyway, but the item will be there just in case you aren't.
Famitsu has screens showing off this process, as Shiren turns his sword into a Dark sword. It looks just like it did, but, it's got like a different icon on it in the menu.