Gear, Troops & Research

Chief Gear converter

The exchange rates of the Chief Gear material converter, for turning one gear material into another.

For example, you can turn Design Plans into Hardened Alloy. The module holds 7 conversions. The materials are the same ones that Chief Gear upgrades use.


Type

ItemConversion

FieldTypeDescription
idstringStable identifier, such as design-plans-to-lunar-amber
namestringDisplay name
fromItemIdstringId from items() of the material spent
fromQuantitynumberAmount of the material spent
toItemIdstringId from items() of the material received
toQuantitynumberAmount of the material received
weeklyLimitnumber?Maximum uses of the conversion in one week

Factory

import { chiefGearConverter } from 'whiteout-survival-data'

chiefGearConverter() // all 7 conversions
chiefGearConverter(source) // wrap a pre-filtered array

Filters

MethodSignatureDescription
byFromItem(itemId)byFromItem(itemId: string)Conversions that consume the item
byToItem(itemId)byToItem(itemId: string)Conversions that produce the item

Terminal methods

MethodReturnsDescription
.get()ItemConversion[]All results
.first()ItemConversion | undefinedFirst result
.find(id)ItemConversion | undefinedFind by id
.findByName(name)ItemConversion | undefinedCase-insensitive exact name match
.search(query)ItemConversion[]Case-insensitive partial name match
.count()numberNumber of results

Examples

import { chiefGearConverter } from 'whiteout-survival-data'

// Every way to spend Design Plans
chiefGearConverter().byFromItem('design-plans').count() // 3

// Every way to get Hardened Alloy
chiefGearConverter().byToItem('hardened-alloy').count() // 2

// One rate: 10 Design Plans give 1 Lunar Amber, up to 500 times per week
const rate = chiefGearConverter().find('design-plans-to-lunar-amber')
rate?.fromQuantity // 10
rate?.toQuantity // 1
rate?.weeklyLimit // 500

Notes

weeklyLimit is the maximum number of times that an exchange can be used in one week. The Chief Charm converter does not have this field.


Next steps

  • See Chief Gear for the upgrade steps that use these materials
  • Look up the material icons in Items
Previous
Chief Charm