Gear, Troops & Research

Chief Charm converter

The exchange rates of the Chief Charm material converter, for turning one charm material into another.

For example, you can turn Charm Guides into Charm Secrets. The module holds 4 conversions. The materials are the same ones that Chief Charm upgrades use.


Type

ItemConversion

FieldTypeDescription
idstringStable identifier, such as charm-guide-to-charm-secrets
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

The shared type also has an optional weeklyLimit. These conversions never set it.


Factory

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

chiefCharmConverter() // all 4 conversions
chiefCharmConverter(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 { chiefCharmConverter } from 'whiteout-survival-data'

// Every way to spend Charm Guides
chiefCharmConverter().byFromItem('charm-guide').count() // 2

// Every way to get Charm Secrets
chiefCharmConverter().byToItem('charm-secrets').count() // 2

// One rate: 40 Charm Guides give 1 Charm Secrets
const rate = chiefCharmConverter().find('charm-guide-to-charm-secrets')
rate?.fromQuantity // 40
rate?.toQuantity // 1

Notes

These conversions have no weeklyLimit. The Chief Gear converter does have one.


Next steps

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