byte-vortex commited on
Commit
10fc637
·
verified ·
1 Parent(s): 64485fd

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. game/engine.py +8 -8
game/engine.py CHANGED
@@ -540,14 +540,14 @@ def discover_mushroom(catalog):
540
 
541
  # We fill EVERY possible key that dex_markdown or status bars might read
542
  active_mushrooms.append({
543
- "name": mushroom.name,
544
- "rarity": mushroom.rarity,
545
- "habitat": getattr(mushroom, "habitat", "Glow Undergrowth"),
546
- "lore": getattr(mushroom, "lore", "A rapid micro-sprout spawned during a bloom."),
547
- "edible": getattr(mushroom, "edible", "Unknown"),
548
- "magic": getattr(mushroom, "magic", "Unknown"),
549
- "danger": getattr(mushroom, "danger", "Unknown"),
550
- "poison": "Yes" if mushroom.name in POISONOUS_MUSHROOM_NAMES else "No",
551
  "mush_x": mush_x,
552
  "mush_y": mush_y,
553
  "picked": "No",
 
540
 
541
  # We fill EVERY possible key that dex_markdown or status bars might read
542
  active_mushrooms.append({
543
+ "name": mushroom.get("name", "Unknown"),
544
+ "rarity": mushroom.get("rarity", "Common"),
545
+ "habitat": mushroom.get("habitat", "Glow Undergrowth"),
546
+ "lore": mushroom.get("lore", "A rapid micro-sprout spawned during a bloom."),
547
+ "edible": mushroom.get("edible", "Unknown"),
548
+ "magic": mushroom.get("magic", "Unknown"),
549
+ "danger": mushroom.get("danger", "Unknown"),
550
+ "poison": "Yes" if mushroom.get("name") in POISONOUS_MUSHROOM_NAMES else "No",
551
  "mush_x": mush_x,
552
  "mush_y": mush_y,
553
  "picked": "No",