Enchanted Sword Shrine



An Enchanted Sword Shrine is a terrain feature that generates as a small cave below the surface layer. There is a chance that it will have a 1 tile wide shaft leading down to the top of the cave. The cave's background is made of Flower Walls and it features a small hill with pools of water on either side. Atop the hill rests a breakable background sword sprite. They generate in the surface or underground layer on dirt or stone terrain.

The world is not guaranteed to generate any shrine and larger worlds have a slight increased chance to generate more. They generate within 30% of the world edges with a 33% chance of generating a 1 tile wide shaft leading up to the surface. The sprite has a 90% chance of dropping the Enchanted Sword and a 10% chance of dropping the Terragrim.

There will always be 1 shrine in small worlds, 3 shrines in medium worlds, and 4 shrines in large worlds. They generate at least 20% of the map width away from the world's center in the surface or underground layer. The sprite has a 67% chance of being a fake sword and a 33% chance of being a real sword. Real sword sprites then have a 90% chance of dropping the Enchanted Sword and a 10% chance of dropping the Arkhalis.

Generation chance
The world will attempt to generate 1 to 2 shrines in small worlds, 1 to 3 shrines in medium worlds, and 2 to 4 shrines in large worlds, with each shrine having a 25% chance of being placed. The following tables represent the odds of having a certain amount of shrines generate in a world, depending on its size.

Tips

 * The shaft can be revealed by light particles that fall downwards through blocks. There are many weapons which spawn projectiles of this kind, for instance, the Dark Lance, Starfury, Jester's Arrow, Meteor Staff, Solar Eruption, Zenith or Flying Dragon. Some enemy projectiles can also reveal the shaft, e.g. those fired from the Goblin Sorcerer.
 * The sprite will generate an Enchanted Sword or Terragrim / Arkhalis  upon its destruction. The player can save the game when the shrine is found and force the game to close upon receiving the Enchanted Sword, and can continue doing this until they get the desired Terragrim  / Arkhalis

Trivia

 * Although practically guaranteed in normal gameplay, the shaft can only generate with a height of up to 1000 tiles.

History
Tombeau de l'épée envoûtée 附魔剑冢