Pokemon generation custom map to use with PoracleJS
New Method (August 2021):
The version built into PoracleJS now supports regional forms correctly. Thank you Jabes.
Monster & Raid DTS
{{generation}} - Gen Number (1, 2, 3, 4, 5, 6, 7, 8)
{{generationName}} - Gen Name (Kanto, Johto, Hoenn, Sinnoh, Unova, Kalos, Alola, Galar)
{{generationRoman}} - Gen Number Roman Numeral (I, II, III, IV, V, VI, VII, VIII)
Example:
Gen {{generation}} {{generationName}} Region
Result:
Gen 6 Kalos Region
Old Method (For Reference Only):
Current files to put in your config/customMaps folder: generation.json
Monster & Raid DTS
{{#if (map 'generation' pokemonId)}}{{#map 'generation' pokemonId}}\nGen {{genNumber}} {{genName}} Region{{/map}}{{/if}}{{#if (map 'generation' (concat pokemonId '_' formId))}}{{#map 'generation' (concat pokemonId '_' formId)}}\nGen {{genNumber}} {{genName}} Region{{/map}}{{/if}}
Only one custom map will be applicable for each Pokemon. If the Pokemon doesn't have any forms or all forms are from the same generation the customMap will pick up the first part of the DTS: {{#map 'generation' pokemonId}}\nGen {{genNumber}} {{genName}} Region{{/map}}{{/if}}
and the second part will be blank. And if the Pokemon has multiple forms and some of them are from different generations the first part of the DTS will be blank and it will pick up the second part: {{#map 'generation' (concat pokemonId '_' formId)}}\nGen {{genNumber}} {{genName}} Region{{/map}}