Template:TownshipBiomeTable: Difference between revisions
From Melvor Idle
mNo edit summary |
(Add data-sort-values) |
||
Line 11: | Line 11: | ||
| {{TownshipIcon|Grasslands|notext=true}} | | {{TownshipIcon|Grasslands|notext=true}} | ||
| Grasslands | | Grasslands | ||
| {{Skill|Township|notext=true}} 1 | |data-sort-value=1| {{Skill|Township|notext=true}} 1 | ||
| 0 | |data-sort-value=0| 0 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Forest|notext=true}} | | {{TownshipIcon|Forest|notext=true}} | ||
| Forest | | Forest | ||
| {{Skill|Township|notext=true}} 1 | |data-sort-value=1| {{Skill|Township|notext=true}} 1 | ||
| 0 | |data-sort-value=0| 0 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Mountains|notext=true}} | | {{TownshipIcon|Mountains|notext=true}} | ||
| Mountains | | Mountains | ||
| {{Skill|Township|notext=true}} 1 | |data-sort-value=1| {{Skill|Township|notext=true}} 1 | ||
| 0 | |data-sort-value=0| 0 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Water|notext=true}} | | {{TownshipIcon|Water|notext=true}} | ||
| Water | | Water | ||
| {{Skill|Township|notext=true}} 1 | |data-sort-value=1| {{Skill|Township|notext=true}} 1 | ||
| 0 | |data-sort-value=0| 0 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Swamp|notext=true}} | | {{TownshipIcon|Swamp|notext=true}} | ||
| Swamp | | Swamp | ||
| {{Skill|Township|notext=true}} 15 | |data-sort-value=15| {{Skill|Township|notext=true}} 15 | ||
| 0 | |data-sort-value=0| 0 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Valley|notext=true}} | | {{TownshipIcon|Valley|notext=true}} | ||
| Valley | | Valley | ||
| {{Skill|Township|notext=true}} 15 | |data-sort-value=15| {{Skill|Township|notext=true}} 15 | ||
| 0 | |data-sort-value=0| 0 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Arid Plains|notext=true}} | | {{TownshipIcon|Arid Plains|notext=true}} | ||
| Arid Plains | | Arid Plains | ||
| {{Skill|Township|notext=true}} 15 | |data-sort-value=15| {{Skill|Township|notext=true}} 15 | ||
| 0 | |data-sort-value=0| 0 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Jungle|notext=true}} | | {{TownshipIcon|Jungle|notext=true}} | ||
| Jungle | | Jungle | ||
| {{Skill|Township|notext=true}} 35 | |data-sort-value=35| {{Skill|Township|notext=true}} 35 | ||
| 2,500 | |data-sort-value=2500| 2,500 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Desert|notext=true}} | | {{TownshipIcon|Desert|notext=true}} | ||
| Desert | | Desert | ||
| {{Skill|Township|notext=true}} 35 | |data-sort-value=35| {{Skill|Township|notext=true}} 35 | ||
| 2,500 | |data-sort-value=2500| 2,500 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Snowlands|notext=true}} | | {{TownshipIcon|Snowlands|notext=true}} | ||
| Snowlands | | Snowlands | ||
| {{Skill|Township|notext=true}} 35 | |data-sort-value=35| {{Skill|Township|notext=true}} 35 | ||
| 2,500 | |data-sort-value=2500| 2,500 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Abyssal Plains|notext=true}} | | {{TownshipIcon|Abyssal Plains|notext=true}} | ||
| Abyssal Plains | | Abyssal Plains | ||
| {{AbyssalSkill|Township|notext=true}} 1 | |data-sort-value=121| {{AbyssalSkill|Township|notext=true}} 1 | ||
| 80,000 | |data-sort-value=80000| 80,000 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Sulfuric Wastelands|notext=true}} | | {{TownshipIcon|Sulfuric Wastelands|notext=true}} | ||
| Sulfuric Wastelands | | Sulfuric Wastelands | ||
| {{AbyssalSkill|Township|notext=true}} 1 | |data-sort-value=121| {{AbyssalSkill|Township|notext=true}} 1 | ||
| 80,000 | |data-sort-value=80000| 80,000 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Obsidian Cliffs|notext=true}} | | {{TownshipIcon|Obsidian Cliffs|notext=true}} | ||
| Obsidian Cliffs | | Obsidian Cliffs | ||
| {{AbyssalSkill|Township|notext=true}} 1 | |data-sort-value=121| {{AbyssalSkill|Township|notext=true}} 1 | ||
| 80,000 | |data-sort-value=80000| 80,000 | ||
| 0% | |data-sort-value=0| 0% | ||
|- | |- | ||
| {{TownshipIcon|Ethereal Voids|notext=true}} | | {{TownshipIcon|Ethereal Voids|notext=true}} | ||
| Ethereal Voids | | Ethereal Voids | ||
| {{AbyssalSkill|Township|notext=true}} 30 | |data-sort-value=150| {{AbyssalSkill|Township|notext=true}} 30 | ||
| 80,000 | |data-sort-value=80000| 80,000 | ||
| 7.5% | |data-sort-value=7.5| 7.5% | ||
|} | |} |
Latest revision as of 07:49, 8 October 2024
A script is used to generate the following table. To use, open the game and paste the below into the console. The outputs will be copied to your clipboard automatically. After running the script, 'edit source' on Template:TownshipBiomeTable then Ctrl+A and Ctrl+V. Look over the contents to ensure everything looks fine.
let results = `<noinclude>{{/doc}}[[Category:Manual Tables]]</noinclude>\n{| class="wikitable sortable stickyHeader col-4-right col-5-right"\n|- class="headerRow-0"\n!rowspan="2" colspan="2"| Biome\n!colspan="3"| Requirements\n|- class="headerRow-1"\n! Level\n! {{TownshipIcon|Population}}\n! {{TownshipIcon|Fortification}}`;
game.township.biomes.forEach(biome => {
let requirement = biome.abyssalTier > 0 ? game.township.abyssalTierRequirements[biome.abyssalTier] : game.township.populationForTier[biome.tier];
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| ${biome.name}`
results += `\n|data-sort-value=${requirement.level || (requirement.abyssalLevel + 120)}| {{${skillType}|Township|notext=true}} ${requirement.level || requirement.abyssalLevel}`
results += `\n|data-sort-value=${population}| ${numberWithCommas(population)}`
results += `\n|data-sort-value=${requirement.fortification || 0}| ${requirement.fortification || 0}%`
});
results += '\n|}';console.log(results);
self.nw?.Clipboard.get().set ? self.nw?.Clipboard?.get().set(results, 'text') : copy(results);
Biome | Requirements | |||
---|---|---|---|---|
Level | Error creating thumbnail: File missing Population
|
Error creating thumbnail: File missing Fortification
| ||
Grasslands | Error creating thumbnail: File missing 1
|
0 | 0% | |
Forest | Error creating thumbnail: File missing 1
|
0 | 0% | |
Mountains | Error creating thumbnail: File missing 1
|
0 | 0% | |
Water | Error creating thumbnail: File missing 1
|
0 | 0% | |
Swamp | Error creating thumbnail: File missing 15
|
0 | 0% | |
Valley | Error creating thumbnail: File missing 15
|
0 | 0% | |
Arid Plains | Error creating thumbnail: File missing 15
|
0 | 0% | |
Jungle | Error creating thumbnail: File missing 35
|
2,500 | 0% | |
Desert | Error creating thumbnail: File missing 35
|
2,500 | 0% | |
Snowlands | Error creating thumbnail: File missing 35
|
2,500 | 0% | |
Error creating thumbnail: File missing
|
Abyssal Plains | 1 | 80,000 | 0% |
Error creating thumbnail: File missing
|
Sulfuric Wastelands | 1 | 80,000 | 0% |
Error creating thumbnail: File missing
|
Obsidian Cliffs | 1 | 80,000 | 0% |
Error creating thumbnail: File missing
|
Ethereal Voids | 30 | 80,000 | 7.5% |