7yl4r / the-oregon-trajectory

:rocket: The Oregon Trail -- in SPAAACE!
http://7yl4r.github.io/the-oregon-trajectory/
GNU Affero General Public License v3.0
17 stars 6 forks source link

situation.choose should better handle function for "next" #124

Closed 7yl4r closed 9 years ago

7yl4r commented 9 years ago

Current implementation of situation parser executes function and then stops. This means that situations are text-only until the final step, which can execute a function. Instead, the choose method should check the return value of the function. If the function returns a valid node name, that should be the next node. This little fix makes solutions for #123, #15, and #72 trivial.

7yl4r commented 9 years ago

closed by ca9bff1570b6437f42a8afb0394a6b478789decb