mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
TypeScript 4.8+ supports Lowercase for lowercase strings, which isn't exactly what ID is, but can be used to type IDs in object keys and data entries that previously required string. I'm calling it IDEntry in places where it should be an ID but TypeScript doesn't support that. Very conveniently, no additional casts will be needed when using ID where IDEntry is expected. It's caught at least a few bugs, which is also why I'm PRing: I didn't write the code for the bugs it found, and don't know if it's the right way to fix them. This ballooned into several other type refactors.
118 lines
1.5 KiB
TypeScript
118 lines
1.5 KiB
TypeScript
export const Natures: import('../sim/dex-data').NatureDataTable = {
|
|
adamant: {
|
|
name: "Adamant",
|
|
plus: 'atk',
|
|
minus: 'spa',
|
|
},
|
|
bashful: {
|
|
name: "Bashful",
|
|
},
|
|
bold: {
|
|
name: "Bold",
|
|
plus: 'def',
|
|
minus: 'atk',
|
|
},
|
|
brave: {
|
|
name: "Brave",
|
|
plus: 'atk',
|
|
minus: 'spe',
|
|
},
|
|
calm: {
|
|
name: "Calm",
|
|
plus: 'spd',
|
|
minus: 'atk',
|
|
},
|
|
careful: {
|
|
name: "Careful",
|
|
plus: 'spd',
|
|
minus: 'spa',
|
|
},
|
|
docile: {
|
|
name: "Docile",
|
|
},
|
|
gentle: {
|
|
name: "Gentle",
|
|
plus: 'spd',
|
|
minus: 'def',
|
|
},
|
|
hardy: {
|
|
name: "Hardy",
|
|
},
|
|
hasty: {
|
|
name: "Hasty",
|
|
plus: 'spe',
|
|
minus: 'def',
|
|
},
|
|
impish: {
|
|
name: "Impish",
|
|
plus: 'def',
|
|
minus: 'spa',
|
|
},
|
|
jolly: {
|
|
name: "Jolly",
|
|
plus: 'spe',
|
|
minus: 'spa',
|
|
},
|
|
lax: {
|
|
name: "Lax",
|
|
plus: 'def',
|
|
minus: 'spd',
|
|
},
|
|
lonely: {
|
|
name: "Lonely",
|
|
plus: 'atk',
|
|
minus: 'def',
|
|
},
|
|
mild: {
|
|
name: "Mild",
|
|
plus: 'spa',
|
|
minus: 'def',
|
|
},
|
|
modest: {
|
|
name: "Modest",
|
|
plus: 'spa',
|
|
minus: 'atk',
|
|
},
|
|
naive: {
|
|
name: "Naive",
|
|
plus: 'spe',
|
|
minus: 'spd',
|
|
},
|
|
naughty: {
|
|
name: "Naughty",
|
|
plus: 'atk',
|
|
minus: 'spd',
|
|
},
|
|
quiet: {
|
|
name: "Quiet",
|
|
plus: 'spa',
|
|
minus: 'spe',
|
|
},
|
|
quirky: {
|
|
name: "Quirky",
|
|
},
|
|
rash: {
|
|
name: "Rash",
|
|
plus: 'spa',
|
|
minus: 'spd',
|
|
},
|
|
relaxed: {
|
|
name: "Relaxed",
|
|
plus: 'def',
|
|
minus: 'spe',
|
|
},
|
|
sassy: {
|
|
name: "Sassy",
|
|
plus: 'spd',
|
|
minus: 'spe',
|
|
},
|
|
serious: {
|
|
name: "Serious",
|
|
},
|
|
timid: {
|
|
name: "Timid",
|
|
plus: 'spe',
|
|
minus: 'atk',
|
|
},
|
|
};
|