Skip to content

Commit

Permalink
Remove manual fix for the collector
Browse files Browse the repository at this point in the history
The issue from #3 has been corrected by Marvel Snap Zone
  • Loading branch information
bagley2014 authored and vlmaier committed Jul 8, 2023
1 parent 08f838a commit fb6bfb8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scrapr.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def create_cards(cards):
"name": parse_name(card["name"]),
"cost": card["cost"],
"power": card["power"],
"ability": parse_ability(card["name"], card["ability"]),
"ability": parse_ability(card["ability"]),
"series": parse_source(card["source"]),
"imageUrl": card["url"],
}
Expand All @@ -125,17 +125,13 @@ def parse_name(name):
return name_mappings.get(name, name)


def parse_ability(name, ability):
def parse_ability(ability):
ability = ability.strip()

# Provide 'No ability' instead of empty string.
if not ability:
ability = "No ability"

# The Collector ability manual fix.
if name == "The Collector":
ability = "When a card enters your hand from anywhere (except your deck), +1 power."

# All following words should be shown in bold.
bold_candidates = [
"On Reveal",
Expand Down

0 comments on commit fb6bfb8

Please sign in to comment.