aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock/fairysouls.ts
blob: 11bbc9e70789b2fd0d975a88c0121ff71e1882a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export interface FairySouls {
	total: number
	/** The number of fairy souls that haven't been exchanged yet */
	unexchanged: number
	exchanges: number
}

export function cleanFairySouls(data: any): FairySouls {
	return {
		total: data?.fairy_souls_collected ?? 0,
		unexchanged: data?.fairy_souls ?? 0,
		exchanges: data?.fairy_exchanges ?? 0,
	}
}