scrom / Experiments

a NodeJS text adventure - deliberately coded badly to re-experience the pain of legacy code
http://mvta.herokuapp.com/
2 stars 0 forks source link

Missions should support multiple parents #455

Closed scrom closed 8 years ago

scrom commented 8 years ago

These should either be 'and' or 'or' parents. Clearparent should clear all or parents if any one is completed. Clearparent should only clear a single anded parent on completion

This will support merging of plot branches which will improve some areas of the game

scrom commented 8 years ago

Tested and working with issue #456 :dancer: - this case is an "and" example - an array of parent missions.

There's no mission yet that has an object for parents ("or" missions) - that will need extra tests

scrom commented 8 years ago

So although it seemed like touching a lot of areas, this change was much less invasive than expected and the changes are backwards compatible with existing data too.

scrom commented 8 years ago

"or" and "and" mission parent support now implemented and has automated tests to verify \o/