4,683
edits
mNo edit summary |
(Add data-sort-values) |
||
Line 7: | Line 7: | ||
let requirement = biome.abyssalTier > 0 ? game.township.abyssalTierRequirements[biome.abyssalTier] : game.township.populationForTier[biome.tier]; | let requirement = biome.abyssalTier > 0 ? game.township.abyssalTierRequirements[biome.abyssalTier] : game.township.populationForTier[biome.tier]; | ||
let skillType = biome.abyssalTier > 0 ? 'AbyssalSkill' : 'Skill'; | let skillType = biome.abyssalTier > 0 ? 'AbyssalSkill' : 'Skill'; | ||
let population = game.township.populationForTier[biome.tier].population; | |||
results += `\n|-\n| {{TownshipIcon|${biome.name}|notext=true}}` | results += `\n|-\n| {{TownshipIcon|${biome.name}|notext=true}}` | ||
results += `\n| ${biome.name}` | results += `\n| ${biome.name}` | ||
results += `\n| {{${skillType}|Township|notext=true}} ${requirement.level || requirement.abyssalLevel}` | results += `\n|data-sort-value=${requirement.level || (requirement.abyssalLevel + 120)}| {{${skillType}|Township|notext=true}} ${requirement.level || requirement.abyssalLevel}` | ||
results += `\n| ${numberWithCommas( | results += `\n|data-sort-value=${population}| ${numberWithCommas(population)}` | ||
results += `\n| ${requirement.fortification || 0}%` | results += `\n|data-sort-value=${requirement.fortification || 0}| ${requirement.fortification || 0}%` | ||
}); | }); | ||
results += '\n|}';console.log(results); | results += '\n|}';console.log(results); | ||
self.nw?.Clipboard.get().set ? self.nw?.Clipboard?.get().set(results, 'text') : copy(results); | self.nw?.Clipboard.get().set ? self.nw?.Clipboard?.get().set(results, 'text') : copy(results); | ||
</syntaxhighlight> | </syntaxhighlight> |