Skip to content

Commit a98fffa

Browse files
feildmasterclaude
andcommitted
fix: keep enchant names that have no description part
enchant-gathering-steam has no "|", so the split pushed undefined and JSON.stringify wrote null into keywords.json. Fall back to the whole string, and replace the existing null with "Gathering Steam". Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 867c9b4 commit a98fffa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["Magic","Dust","Charge","Haste","Armor","Disarmed","Candy","Turn start","Turn end","Future","Fatigue","Turbo","Support","Paralyze","Silence","Transparency","Invulnerable","Taunt","Dodge","Health","Draw","Swarm","Power","Ribbit","ChainMail","Experience","Reinforcement","Ambition","Prosperity","Preservation","Science","NetskieHat","Cat Bomb","Arcane Scepter","Spike Band","Power Band","Insider Info","Silver Watch","Sea Tea","Crab Apple","Cloudy Glasses","Torn Notebook","Genocide","Thorns","Burn","Parachutism","Doom","Collection","Wiggle","AbsorbAx","Noodles","Seedlings","Synergy","Save","Dark Fountain","Shock","Delay","Criticals","Evil Plan","Generated","Need","True Justice","Economics","Reverberation","Blue Ribbon","Seap","Loop","Program","IQ","Ultimate Fusion","Hail","Freedom","FREE KROMER","Switch","Endgame","Dealmaker","Puppet Scarf","Thorn Ring","Elite Soldiers","Seam's Seap","Glamburger","Generous Gifts","Toy Knife","Tough Glove","Ballet Shoes","Burnt Pan","Empty Gun","Worn Dagger","Brave Ax","Underground Army","Imminent Showdown","Catch","Bullseye","Unstable Serum","Wanted","Erase","Dark World","Darkspawn","Gachapon","Pack odds","Upgraded SOUL artifacts","Constricting Darkness","The Roaring","DARK ZONE","Odd Controller","Gold Widow","Underlined","Blue Bones","X-slot","A-slot","O-slot","Green Tile","Yellow Tile","Purple Tile","Orange Tile","The Flame","Stick","Scattering Dust","Incinerator","Electro Guitar","Pixel Camera","The Cure","Gerson's Hammer","Quest","Goal","Reward","Flowery Power","Turn","Hand","Deck","Gold","Petal Feather","Doki-Meter!","Power of Friendship","Soil","Susie's Apron","Shattered Rose","The Forbidden Path","Chasing Spears","Mold Spore","Ambushing Spears","Ambushing Spear","YOU'RE ALL FIRED!!!","Spear of Courage","Undying Soul","Respite",null,"Photo Shoot","Tems?","Dogs?","Amalgamates?","G Followers?","Lost Souls?","Frogs?","Molds?","Snails?","Bombs?","Plants?","Royal Guards?","Chaos Weapons?","Pieces?","Arachnids?","Royal Inventions?","Plugs?","Thrashing Parts?","Bargains?","Dances?","GIGA Attacks?","Rounds?","Packs?"]
1+
["Magic","Dust","Charge","Haste","Armor","Disarmed","Candy","Turn start","Turn end","Future","Fatigue","Turbo","Support","Paralyze","Silence","Transparency","Invulnerable","Taunt","Dodge","Health","Draw","Swarm","Power","Ribbit","ChainMail","Experience","Reinforcement","Ambition","Prosperity","Preservation","Science","NetskieHat","Cat Bomb","Arcane Scepter","Spike Band","Power Band","Insider Info","Silver Watch","Sea Tea","Crab Apple","Cloudy Glasses","Torn Notebook","Genocide","Thorns","Burn","Parachutism","Doom","Collection","Wiggle","AbsorbAx","Noodles","Seedlings","Synergy","Save","Dark Fountain","Shock","Delay","Criticals","Evil Plan","Generated","Need","True Justice","Economics","Reverberation","Blue Ribbon","Seap","Loop","Program","IQ","Ultimate Fusion","Hail","Freedom","FREE KROMER","Switch","Endgame","Dealmaker","Puppet Scarf","Thorn Ring","Elite Soldiers","Seam's Seap","Glamburger","Generous Gifts","Toy Knife","Tough Glove","Ballet Shoes","Burnt Pan","Empty Gun","Worn Dagger","Brave Ax","Underground Army","Imminent Showdown","Catch","Bullseye","Unstable Serum","Wanted","Erase","Dark World","Darkspawn","Gachapon","Pack odds","Upgraded SOUL artifacts","Constricting Darkness","The Roaring","DARK ZONE","Odd Controller","Gold Widow","Underlined","Blue Bones","X-slot","A-slot","O-slot","Green Tile","Yellow Tile","Purple Tile","Orange Tile","The Flame","Stick","Scattering Dust","Incinerator","Electro Guitar","Pixel Camera","The Cure","Gerson's Hammer","Quest","Goal","Reward","Flowery Power","Turn","Hand","Deck","Gold","Petal Feather","Doki-Meter!","Power of Friendship","Soil","Susie's Apron","Shattered Rose","The Forbidden Path","Chasing Spears","Mold Spore","Ambushing Spears","Ambushing Spear","YOU'RE ALL FIRED!!!","Spear of Courage","Undying Soul","Respite","Gathering Steam","Photo Shoot","Tems?","Dogs?","Amalgamates?","G Followers?","Lost Souls?","Frogs?","Molds?","Snails?","Bombs?","Plants?","Royal Guards?","Chaos Weapons?","Pieces?","Arachnids?","Royal Inventions?","Plugs?","Thrashing Parts?","Bargains?","Dances?","GIGA Attacks?","Rounds?","Packs?"]

‎scripts/downloadResources.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ fetch('https://undercards.net/translation/en.json')
3333
tribeKeys.push(key.substring(6));
3434
} else if (key.startsWith('enchant-')) {
3535
if (key.endsWith('-desc')) return;
36-
const [, text] = val.split('|');
37-
keywords.push(text);
36+
const [first, second = first] = val.split('|');
37+
keywords.push(second);
3838
}
3939
});
4040
})

0 commit comments

Comments
 (0)