Weaponsmith

The **Weaponsmith** is an NPC that can be encountered during a run.

He can make an attachment for the player's weapon, or upgrade the weapon.

## Making Attachments

In this case, he can be found in small rooms indicated by an exclamation mark  on the mini map, while sitting in front of a giant wrench board. He may also appear from a cage.

Once the player pays him gold (the minimum basic cost is 15), he will make an attachment that's compatible with the current weapon the player is holding. He can only make one attachment each time the player encounters him in a run.

* In the following cases he will be unable to make attachments:
	+ If the player has no weapon at hand.
	+ If the weapon in question is a Red/Legendary weapon.
	+ If the weapon in question is a fishing-only weapon or a fishing pole.
* If he is rescued from a cage, he will make a free attachment.

Making or equipping an attachment only check the main weapon carried by the player.

## Weapon Enhance

### In Origin Legacy

In The Origin (Legacy), he is found on the left side of the enclosed area at the top.

* The weaponsmith spawned by Summoner will only make one attachment.

Weapon upgrades cost gold, though there's no limit as to how much can one be upgraded as long as he can be paid.

Each upgrade increases the weapon's damage by 10% of its original damage. The final damage is rounded down. For example, this is the damage of the Laser Shotgun in the first 10 levels:

Upgraded weapons will have a " +X" after their names, indicating that it has been upgraded X times, or its damage is increased by X\*10% of their original damage.

The upgrade cost of Weaponsmith depends on the rarity of the weapon, such that White/Common weapons cost least to upgrade, while Red/Legendary weapon cost most. The upgrade cost also increases as the player clears more waves.

If the player picked buffs that increase the weapon's base damage, the buffed damage will become the original damage when upgraded. For example, Laser Shotgun with Laser Buff for the first 10 levels:

Weapons or items that deal no damage (such as Trekking Pole, Staff of Anubis, Blindage, Hologram Turret, etc) can be upgraded, although this has no effect on their performance.

Certain weapons, notably Portable Bomber and Qian-Kun Punch (which is upgraded by the player’s skill level), cannot be upgraded. This also applies to turrets provided by the Mechanical Engineer.

If a follower is using an upgraded weapon, then its stats will also scale to that of the upgraded ones.

### In Origin (current)

The weaponsmith becomes available after he is rescued from a cage in the Volcano biome, providing a free attachment before he returns to the Shrine Backroom.

Weapon upgrade mechanics:

* Weapon upgrades cost gold, the value of which is somewhat inconsistent.
* The maximum upgrade level is +18。
* Chance of upgrade failure increases with weapon level, though it does not have other consequences.
* Each upgrade adds an unspecified amount of improvement to weapons, unless it doesn't have any meaningful scaling effects.

## Quotes

* When the player interacts, showing the cost:
	+ *""Enhance current weapon?"*
* When the player buys an attachment/upgrade weapon:
	+ *""Done"*
* If the player is holding an invalid weapon:
	+ *""No attachments can be forged"*
* When the player does not have enough money to buy an attachment/upgrade weapon:
	+ *"Babe, money?"*
* When the player does not hold a weapon in The Origin:
	+ *"Babe, your weapon?"*
* In Level Mode, he won't do anything and the prompt to pay him won't disappear either.

??

* When rescued from a cage:
	+ *""Babe, so nice to see you again. It's been a lifetime!"*
* When weapon enhancement fails in The Orgin:
	+ *""What a pity."*
* When attempting to enhance an un-upgradable weapon or turret:
	+ *""I can't enhance this weapon. Find someone else."*