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

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. game/engine.py +9 -9
game/engine.py CHANGED
@@ -540,21 +540,21 @@ 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.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",
554
  "clue": "Harvested instantly!",
555
  "studied": "No"
556
  })
557
-
558
  # Build a current state dictionary packed with fallback HUD variables
559
  current = {
560
  "name": "Mushroom Patch",
 
540
 
541
  # We fill EVERY possible key that dex_markdown or status bars might read
542
  active_mushrooms.append({
543
+ "name": name,
544
+ "rarity": field(mushroom, "rarity", "Common"),
545
+ "habitat": field(mushroom, "habitat", "Glow Undergrowth"),
546
+ "lore": field(mushroom, "lore", "A rapid micro-sprout spawned during a bloom."),
547
+ "edible": field(mushroom, "edible", "Unknown"),
548
+ "magic": field(mushroom, "magic", "Unknown"),
549
+ "danger": field(mushroom, "danger", "Unknown"),
550
+ "poison": "Yes" if name in POISONOUS_MUSHROOM_NAMES else "No",
551
  "mush_x": mush_x,
552
  "mush_y": mush_y,
553
  "picked": "No",
554
  "clue": "Harvested instantly!",
555
  "studied": "No"
556
  })
557
+
558
  # Build a current state dictionary packed with fallback HUD variables
559
  current = {
560
  "name": "Mushroom Patch",