toconnell / kdm-manager

An interactive campaign manager for the game "Monster", by Kingdom Death. Development blog and release notes at https://blog.kdm-manager.com This project has no affiliation with Kingdom Death and is a totally independent, fan-maintained project.
http://kdm-manager.com
Other
26 stars 11 forks source link

Innovation Deck: add Petal Spiral if a Flower Knight is in Defeated Monsters list #508

Closed toconnell closed 6 years ago

toconnell commented 6 years ago

From email:

Petal Spiral does not add to the innovation deck upon defeating the Flower Knight.

Story checks out:

issue_508

toconnell commented 6 years ago

Added an available_if similar to the one for the Manhunter to innovations.py:

diff --git a/v2/api/assets/innovations.py b/v2/api/assets/innovations.py
index 47ff928..7c7d69b 100644
--- a/v2/api/assets/innovations.py
+++ b/v2/api/assets/innovations.py
@@ -462,6 +462,11 @@ expansion = {
         "innovation_type": "music",
         "expansion": "flower_knight",
         "endeavors": ['petal_spiral_trace_petals'],
+        "available_if": [
+            ("Flower Knight Lvl 1","defeated_monsters"),
+            ("Flower Knight Lvl 2","defeated_monsters"),
+            ("Flower Knight Lvl 3","defeated_monsters"),
+        ],
     },