Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- 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":
|
| 546 |
-
"lore":
|
| 547 |
-
"edible":
|
| 548 |
-
"magic":
|
| 549 |
-
"danger":
|
| 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",
|