# Engineering Cost Algorithm

The cost of upgrading an item's rarity is based on a few factors:

• T = Item Type Factor
• R = Item Rarity Factor
• D = Item Durability

Item Type Factor:

• Weapon = 6
• Armor = 5
• Storage = 4
• Engine = 10
• Computer = 6
• Harvester = 8
• Special = 10

Item Rarity Factor:

• Uncommon = 2
• Rare = 3
• Ultra-Rare = 4
• Legendary = 5
• Precursor = 6

Base Cost (B) = R^4 * T * 110

Upgrade Cost (C) = B / 25 + D * B / 90

• Example: Rare Storage 50% --> Ultra-Rare Storage 50%
• B = 3^4 * 4 * 110 = 35640
• C = 35640 / 25 + 50 * 35640 / 90 = 1425 + 19800 = 21,225

## Change Rank

The cost of changing an item's rank is based on a few factors:

• T = Item Type Factor
• R = Item Rarity Factor
• D = Item Durability

Item Type Factor:

• Weapon = 22
• Armor = 18
• Storage = 14

Item Rarity Factor:

• Uncommon = 2
• Rare = 3
• Ultra-Rare = 4
• Legendary = 5
• Precursor = 6
• Ultimate = 7

Base Cost (B) = R * T * 30

Change Rank Cost (C) = B / 25 + D * B / 90

• Example: Legendary Weapon Rank IV 75% --> Legendary Weapon Rank V 75%
• B = 5 * 22 * 30 = 3300
• C = 3300 / 25 + 75 * 3300 / 90 = 132 + 2750 = 2,882

## Repair Item Durability

The cost of repairing an item's durability is based on a few factors:

• T = Item Type Factor
• R = Item Rarity Factor

Item Type Factor:

• Weapon = 6
• Armor = 5
• Storage = 4
• Engine = 10
• Computer = 6
• Harvester = 8
• Special = 10

Item Rarity Factor:

• Uncommon = 2
• Rare = 3
• Ultra-Rare = 4
• Legendary = 5
• Precursor = 6

Base Cost (B) = R^4 * T * 110

Repair Cost (C) = (B / 20 + 100 * B / 80) / 8

• Example: Uncommon Armor
• B = 2^4 * 5 * 110 = 8800
• C = (8800 / 20 + 100 * 8800 / 80) = (100 * 8800 / 80 ) / 8 = 1,430