Alliance

Prestige buildings

The prestige buildings that an alliance can build in its territory after it does well in an event, with the bonus that each one gives.

Use it to see which event gives each building and what it grants. The module has 6 entries.


Types

AlliancePrestigeBuilding

FieldTypeDescription
idstringStable identifier, such as battle-horn
namestringDisplay name
sourceAlliancePrestigeSourceThe event that gives the building
levelsAlliancePrestigeLevel[]The 4 tiers of the building

AlliancePrestigeSource

FieldTypeDescription
eventstringName of the event
eventIdstring?Id of the event in events(). Left out when the package has no data for the event
requirementstring?What the alliance must reach in the event

AlliancePrestigeLevel

FieldTypeDescription
namestringTier name, such as Silver
bonusesAlliancePrestigeBonus[]Bonuses of the tier

AlliancePrestigeBonus

FieldTypeDescription
statstringStat name, such as Resource Gathering Speed
statKeystringStat name in lowercase kebab case
valuestringText of the bonus, such as +10%
amountnumberParsed value
unit'percent' | 'flat'Unit of amount

Factory

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

alliancePrestige() // all 6 buildings
alliancePrestige(source) // wrap a pre-filtered array

Filters

This module has no filters or sorts of its own. Use the terminal methods.


Terminal methods

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

Examples

import { alliancePrestige, events } from 'whiteout-survival-data'

const statue = alliancePrestige().find('championship-statue')
statue?.source
// { event: 'Alliance Championship', eventId: 'alliance-championship', requirement: 'Reach Silver III' }

// The bonus of one tier of the Championship Statue. It applies to all four resources.
const ultimate = statue?.levels.find((level) => level.name === 'Ultimate')
ultimate?.bonuses.map((b) => `${b.stat} ${b.value}`)
// ['Resource Gathering Speed +10%']

// The event that gives a building, when the package has it
const horn = alliancePrestige().find('battle-horn')
horn?.source.eventId && events().find(horn.source.eventId)?.name // 'Alliance Showdown'

alliancePrestige().count() // 6

Notes

The 6 buildings and the event that gives each one:

BuildingEventRequirement
Championship StatueAlliance ChampionshipReach Silver III
GuardianAlliance MobilizationReach Senior Tier
Foundry RewardsFoundry BattleS-rated
Battle HornAlliance Showdown5-Star
Weapons MasterTundra Arms LeagueAdvance to Championships
Siege HeraldWinter SiegeReach Pioneer Tier

Each building has 4 tiers. Each tier has one bonus, Resource Gathering Speed, which applies to all four resources: meat, wood, coal, and iron. The bonus of a tier is +3%, +5%, +7%, and +10%, in the order of the tiers.

The Championship Statue gives its bonus to the members in the territory of the alliance. Its tiers are Silver, Gold, Diamond, and Ultimate.

Known gaps

The tiers of the other five buildings are named Tier 1 to Tier 4, because the names of their tiers are not known. The package has no Winter Siege event, so Siege Herald has no eventId.

The cost to build a prestige building is not in the data.


Next steps

Previous
Fortresses
Next
Events