Alliance

Fortresses

The castle, the 4 strongholds, and the 12 fortresses on the alliance map, with their coordinates and the reward of each phase.

The module has 17 entries. The castle is at (597, 597).


Types

AllianceFortress

FieldTypeDescription
idstringStable identifier, such as stronghold-1
namestringDisplay name
kindAllianceFortressKindcastle, stronghold, or fortress
xnumberMap x coordinate
ynumberMap y coordinate
rewardsAllianceFortressReward[]One reward for each phase. Empty for the castle

AllianceFortressReward

FieldTypeDescription
phasenumberPhase number, 1 to 8
rewardstringReward for the phase

Factory

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

allianceFortress() // all 17 entries
allianceFortress(source) // wrap a pre-filtered array

Filters

MethodSignatureDescription
ofKind(k)ofKind(kind: AllianceFortressKind)Keeps one kind: castle, stronghold, or fortress.

Terminal methods

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

Examples

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

// The 4 strongholds with their map coordinates
allianceFortress()
  .ofKind('stronghold')
  .get()
  .map((s) => [s.name, s.x, s.y])
// [['Stronghold 1', 597, 800], ['Stronghold 2', 400, 597], ...]

// Phase 1 reward of one stronghold
allianceFortress().find('stronghold-1')?.rewards[0]
// { phase: 1, reward: 'Shards' }

// Number of fortresses
allianceFortress().ofKind('fortress').count() // 12

Notes

Each stronghold and fortress has 8 rewards, one for each phase.

The castle has no rewards

The rewards of the castle are not documented, so its rewards array is empty.


Next steps

Previous
Alliance facilities