Skip to content

Commit

Permalink
Merge pull request #890 from EmmaRamirez/release/1.12.0
Browse files Browse the repository at this point in the history
Release: 1.12.0
  • Loading branch information
EmmaRamirez authored Feb 5, 2023
2 parents 0e7386a + e28281e commit 94ee411
Show file tree
Hide file tree
Showing 71 changed files with 160 additions and 22 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ npm install
npm run serve
```

Node 16 is recommended.

Note: closing the command prompt will stop the server!

You can also click the `Clone or Download` button and select to download it as a zip file. You'll then want to use the `cd` command to navigate to the nuzlocke-generator folder. I'm available on Discord (emma#4085) or through Github issues if you have any questions.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuzlocke-generator",
"version": "1.11.0",
"version": "1.12.0",
"description": "A tool for generating nuzlocke team pics from data",
"main": "dist/bundle.js",
"scripts": {
Expand Down
Binary file modified src/assets/icons/.DS_Store
Binary file not shown.
Binary file added src/assets/icons/hold-item/ability-shield.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/auspicious-armor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/big-bamboo-shoot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/booster-energy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/clear-amulet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/covert-cloak.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/leaders-crest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/loaded-dice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/punching-glove.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/scroll-of-darkness.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/scroll-of-waters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/hold-item/tiny-bamboo-shoot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/bug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/dragon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/electric.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/fairy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/fighting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/flying.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/ghost.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/grass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/ground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/ice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tera/normal.png
Binary file added src/assets/icons/tera/poison.png
Binary file added src/assets/icons/tera/psychic.png
Binary file added src/assets/icons/tera/rock.png
Binary file added src/assets/icons/tera/steel.png
Binary file added src/assets/icons/tera/water.png
36 changes: 18 additions & 18 deletions src/components/Credits/credits.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,35 +573,35 @@
"link": "https://www.deviantart.com/erroring/art/totally-tubular-938472137"
},
{
"role": "",
"name": "",
"link": ""
"role": "Orthworm",
"name": "Hypertomi Art",
"link": "https://www.pillowfort.social/posts/3101087"
},
{
"role": "",
"name": "",
"link": ""
"role": "Enamorus",
"name": "LordCayy",
"link": "https://twitter.com/lordcayy"
},
{
"role": "",
"name": "",
"link": ""
"role": "Enamorus-Therian",
"name": "Hivemind Coroika",
"link": "https://www.tumblr.com/hivemindcoroika"
},
{
"role": "",
"name": "",
"link": ""
"role": "Landorus-Therian",
"name": "Salanchu",
"link": "https://www.deviantart.com/salanchu"
},

{
"role": "",
"name": "",
"link": ""
"role": "Torandus-Therian",
"name": "hwy",
"link": "https://www.pinterest.ph/pin/297800594081702545/"
},
{
"role": "",
"name": "",
"link": ""
"role": "Thundurus-Therian",
"name": "ewokakuaaede",
"link": "https://danbooru.donmai.us/posts?tags=ewokakukaede&z=1"
},
{
"role": "",
Expand Down
12 changes: 10 additions & 2 deletions src/components/PokemonEditor/CurrentPokemonEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ CurrentPokemonEditState

private toggleDialog = () => this.setState({ isMoveEditorOpen: !this.state.isMoveEditorOpen });

private getTypes() {
private getTypes(includeShadow = true) {
const { customTypes, editor } = this.props;
return getListOfTypes(customTypes, editor.temtemMode);
return getListOfTypes(customTypes, editor.temtemMode).filter(type => includeShadow ? true : type !== 'Shadow');
}

public moreInputs(currentPokemon: Pokemon) {
Expand Down Expand Up @@ -384,6 +384,14 @@ CurrentPokemonEditState
options={listOfGames}
key={this.state.selectedId + 'goo'}
/>
<CurrentPokemonInput
labelName="Tera Type"
inputName="teraType"
value={currentPokemon.teraType}
type="select"
options={this.getTypes(false)}
key={this.state.selectedId + 'teraType'}
/>
</CurrentPokemonLayoutItem>
<CurrentPokemonLayoutItem>
<CurrentPokemonInput
Expand Down
3 changes: 3 additions & 0 deletions src/components/TeamPokemon/TeamPokemon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ export class TeamPokemonInfo extends React.PureComponent<TeamPokemonInfoProps> {
? ` @ ${pokemon.item}`
: null}
</span>
{Boolean(pokemon.teraType) && <span className="pokemon-teratype">
<img alt={`Tera: ${pokemon.teraType}`} style={{ height: '1rem' }} src={`icons/tera/${pokemon.teraType}.png`} />
</span>}
{GenderElement(pokemon.gender)}
{pokemon.level ? (
<span className="pokemon-level">lv. {pokemon.level}</span>
Expand Down
Binary file added src/img/checkpoints/paldea-champion-ribbon.png
Binary file added src/img/checkpoints/paldea/bug-badge.png
Binary file added src/img/checkpoints/paldea/dark-badge.png
Binary file added src/img/checkpoints/paldea/dragon-badge.png
Binary file added src/img/checkpoints/paldea/electric-badge.png
Binary file added src/img/checkpoints/paldea/fairy-badge.png
Binary file added src/img/checkpoints/paldea/fighting-badge.png
Binary file added src/img/checkpoints/paldea/fire-badge.png
Binary file added src/img/checkpoints/paldea/flying-badge.png
Binary file added src/img/checkpoints/paldea/ghost-badge.png
Binary file added src/img/checkpoints/paldea/grass-badge.png
Binary file added src/img/checkpoints/paldea/ground-badge.png
Binary file added src/img/checkpoints/paldea/ice-badge.png
Binary file added src/img/checkpoints/paldea/normal-badge.png
Binary file added src/img/checkpoints/paldea/poison-badge.png
Binary file added src/img/checkpoints/paldea/psychic-badge.png
Binary file added src/img/checkpoints/paldea/rock-badge.png
Binary file added src/img/checkpoints/paldea/steel-badge.png
Binary file added src/img/checkpoints/paldea/water-badge.png
Binary file added src/img/enamorus-therian.jpg
Binary file added src/img/enamorus.jpg
Binary file added src/img/landorus-therian.jpg
Binary file added src/img/orthworm.jpg
Binary file added src/img/thundurus-therian.jpg
Binary file added src/img/tornadus-therian.jpg
2 changes: 2 additions & 0 deletions src/models/Pokemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface Pokemon {
forme?: Forme;
item?: string;
types?: [Types, Types];
teraType?: Types;
customImage?: string;
customIcon?: string;
customItemImage?: string;
Expand Down Expand Up @@ -59,6 +60,7 @@ export const PokemonKeys: Pokemon = {
forme: 'Normal' as Forme,
item: '',
types: [Types.Normal, Types.Normal],
teraType: Types.Normal,
customImage: '',
customIcon: '',
customItemImage: '',
Expand Down
2 changes: 2 additions & 0 deletions src/utils/Forme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@ export enum Forme {

School = 'school',
Pirouette = 'pirouette',

Therian = 'therian',
}
2 changes: 2 additions & 0 deletions src/utils/addForme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ export const addForme = (species: string | undefined, forme?: keyof typeof Forme

'School',
'Pirouette',

'Therian'
].includes(forme)
) {
return `${species}-${forme.replace(/\s/g, '-').replace(/\'/g, '-').toLowerCase()}`;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/getAdditionalFormes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const getAdditionalFormes = (species: string | undefined): string[] => {
if (s === 'deerling' || s === 'sawsbuck') {
return ['Spring', 'Summer', 'Autumn', 'Winter'];
}
if (s === 'tornadus' || s === 'thundurus' || s === 'landorus') {
if (s === 'tornadus' || s === 'thundurus' || s === 'landorus' || s === 'enamorus') {
return ['Incarnate', 'Therian'];
}
if (s === 'kyurem') {
Expand Down
24 changes: 24 additions & 0 deletions src/utils/getBadges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,28 @@ export function getBadges(name: Game): Badge[] {
];
}

if (name === 'Scarlet' || name === 'Violet') {
return [
{ name: 'Cortondo Gym', image: 'paldea/bug-badge' },
{ name: 'Stony Cliff Titan', image: 'paldea/rock-badge' },
{ name: 'Artazon Gym', image: 'paldea/grass-badge' },
{ name: 'Team Star Dark', image: 'paldea/dark-badge' },
{ name: 'Levincia Gym', image: 'paldea/electric-badge' },
{ name: 'Team Star Fire', image: 'paldea/fire-badge' },
{ name: 'Lurking Steel Titan', image: 'paldea/steel-badge' },
{ name: 'Cascarrafa Gym', image: 'paldea/water-badge' },
{ name: 'Team Star Poison', image: 'paldea/poison-badge' },
{ name: 'Medali Gym', image: 'paldea/normal-badge' },
{ name: 'Montenevera Gym', image: 'paldea/ghost-badge' },
{ name: 'Quaking Earth Titan', image: 'paldea/ground-badge' },
{ name: 'Alfornada Gym', image: 'paldea/psychic-badge' },
{ name: 'Glaseado Gym', image: 'paldea/ice-badge' },
{ name: 'Team Star Fairy', image: 'paldea/fairy-badge'},
{ name: 'False Dragon Titan', image: 'paldea/dragon-badge' },
{ name: 'Team Star Fighting', image: 'paldea/fighting-badge' },
];
}

return [];
}

Expand All @@ -204,6 +226,8 @@ export function getAllBadges() {
...getBadges('Sword'),
{ name: 'Ghost Badge', image: 'ghost-badge' },
{ name: 'Ice Badge', image: 'ice-badge' },
...getBadges('Violet'),
{ name: 'Paldea Champion', image: 'paldea-champion-ribbon' },
{ name: 'Empty Badge', image: 'unknown' },
];
}
31 changes: 31 additions & 0 deletions src/utils/listOfAbilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ export const listOfAbilities = [
'Air Lock',
'Analytic',
'Anger Point',
'Anger Shell',
'Anticipation',
'Arena Trap',
'Armor Tail',
'Aroma Veil',
'As One',
'Aura Break',
Expand All @@ -15,6 +17,7 @@ export const listOfAbilities = [
'Battery',
'Battle Armor',
'Battle Bond',
'Beads of Ruin',
'Beast Boost',
'Berserk',
'Big Pecks',
Expand All @@ -28,11 +31,14 @@ export const listOfAbilities = [
'Cloud Nine',
'Color Change',
'Comatose',
'Commander',
'Competitive',
'Compound Eyes',
'Contrary',
'Corrosion',
'Costar',
'Cotton Down',
'Cud Chew',
'Curious Medicine',
'Cursed Body',
'Cute Charm',
Expand All @@ -52,8 +58,10 @@ export const listOfAbilities = [
'Drought',
'Dry Skin',
'Early Bird',
'Earth Eater',
'Effect Spore',
'Electric Surge',
'Electromorphosis',
'Emergency Exit',
'Fairy Aura',
'Filter',
Expand All @@ -72,13 +80,16 @@ export const listOfAbilities = [
'Gale Wings',
'Galvanize',
'Gluttony',
'Good as Gold',
'Gooey',
'Gorilla Tactics',
'Grass Pelt',
'Grassy Surge',
'Grim Neigh',
'Guard Dog',
'Gulp Missile',
'Guts',
'Hadron Engine',
'Harvest',
'Healer',
'Heatproof',
Expand Down Expand Up @@ -113,6 +124,7 @@ export const listOfAbilities = [
'Light Metal',
'Lightning Rod',
'Limber',
'Lingering Aroma',
'Liquid Ooze',
'Liquid Voice',
'Long Reach',
Expand All @@ -135,12 +147,15 @@ export const listOfAbilities = [
'Multiscale',
'Multitype',
'Mummy',
'Mycelium Might',
'Natural Cure',
'Neuroforce',
'Neutralizing Gas',
'No Guard',
'Normalize',
'Oblivious',
'Opportunist',
'Orichalcum Pulse',
'Overcoat',
'Overgrow',
'Own Tempo',
Expand All @@ -163,9 +178,12 @@ export const listOfAbilities = [
'Prism Armor',
'Propeller Tail',
'Protean',
'Protosynthesis',
'Psychic Surge',
'Punk Rock',
'Pure Power',
'Purifying Salt',
'Quark Drive',
'Queenly Majesty',
'Quick Draw',
'Quick Feet',
Expand All @@ -179,6 +197,7 @@ export const listOfAbilities = [
'Rivalry',
'RKS System',
'Rock Head',
'Rocky Payload',
'Rough Skin',
'Run Away',
'Sand Force',
Expand All @@ -190,9 +209,11 @@ export const listOfAbilities = [
'Schooling',
'Scrappy',
'Screen Cleaner',
'Seed Sower',
'Serene Grace',
'Shadow Shield',
'Shadow Tag',
'Sharpness',
'Shed Skin',
'Sheer Force',
'Shell Armor',
Expand Down Expand Up @@ -227,22 +248,27 @@ export const listOfAbilities = [
'Sturdy',
'Suction Cups',
'Super Luck',
'Supreme Overlord',
'Surge Surfer',
'Swarm',
'Sweet Veil',
'Swift Swim',
'Sword of Ruin',
'Symbiosis',
'Synchronize',
'Tablets of Ruin',
'Tangled Feet',
'Tangling Hair',
'Technician',
'Telepathy',
'Teravolt',
'Thermal Exchange',
'Thick Fat',
'Tinted Lens',
'Torrent',
'Tough Claws',
'Toxic Boost',
'Toxic Debris',
'Trace',
'Transistor',
'Triage',
Expand All @@ -252,6 +278,7 @@ export const listOfAbilities = [
'Unburden',
'Unnerve',
'Unseen Fist',
'Vessel of Ruin',
'Victory Star',
'Vital Spirit',
'Volt Absorb',
Expand All @@ -261,9 +288,13 @@ export const listOfAbilities = [
'Water Compaction',
'Water Veil',
'Weak Armor',
'Well-Baked Body',
'White Smoke',
'Wimp Out',
'Wind Power',
'Wind Rider',
'Wonder Guard',
'Wonder Skin',
'Zen Mode',
'Zero to Hero',
];
15 changes: 15 additions & 0 deletions src/utils/listOfItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,4 +423,19 @@ export const listOfItems = [
'Exp. Charm',
'Armorite Ore',
'Mark Charm',

'Mirror Herb',
'Covert Cloak',
'Loaded Dice',
'Tiny Bamboo Shoot',
'Big Bamboo Shoot',
'Scroll of Darkness',
'Scroll of Waters',
'Booster Energy',
'Ability Shield',
'Clear Amulet',
'Punching Glove',
'Auspicious Armor',
'Malicious Armor',
'Leader\'s Crest',
];
1 change: 1 addition & 0 deletions src/utils/listOfLocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,5 +683,6 @@ export const listOfLocations = [
...locations.Kalos,
...locations.Alola,
...locations.Galar,
...locations.Paldea,
...locations.Misc,
];
Loading

0 comments on commit 94ee411

Please sign in to comment.