Alliance

Territory banners

The build-cost table for the Alliance Territory banner, by level range. Use it to find what a banner level costs in resources.

The module has 37 entries, one per level range. The first range, Level 0-10, has an empty cost.


Type

AllianceBannerLevel

FieldTypeDescription
idstringStable identifier, such as level-11-15
namestringDisplay name, such as Level 11-15
minLevelnumberFirst banner level in the range
maxLevelnumberLast banner level in the range
costAllianceBannerCost[]Resources to build a banner at a level in the range

AllianceBannerCost

FieldTypeDescription
itemIdstringAn id from items()
amountnumberAmount needed

Factory

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

allianceBanner() // all 37 level ranges
allianceBanner(source) // wrap a pre-filtered array

Filters

MethodSignatureDescription
atLevel(n)atLevel(level: number)Keeps the range where minLevel <= n <= maxLevel.

Terminal methods

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

Examples

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

// The range that contains banner level 14
allianceBanner().atLevel(14).first()?.name // 'Level 11-15'

// Cost to build a banner at level 125
allianceBanner().atLevel(125).first()?.cost
// [
//   { itemId: 'meat', amount: 49500 },
//   { itemId: 'wood', amount: 49500 },
//   { itemId: 'coal', amount: 10000 },
// ]

// All ranges
allianceBanner().count() // 37

Notes

Banners are built and leveled within level ranges, and every level in a range costs the same. For this reason the type stores minLevel and maxLevel and not a single level.

Meat and Wood are always required in equal amounts. Coal is added from Level 121-130, and Iron from Level 146-150. The last range is Level 276-285.


Next steps

  • See Alliance tech for the alliance technology tree
  • See Fortresses for the strongholds and fortresses on the alliance map
  • Look up resource icons in Items
Previous
Research tree