zijistark/EMF — pull request #162 by zijistark (2014-12-31 21:08:56+00:00)
Title: Dynamic levy optimizations

- dynlevy law is now only applied to the ruler's primary title rather than all primary-tier titles
- dynlevy law should properly copy to new primary title whenever the primary title changes (due to rank promotion, manual switch, or rank demotion)
- Code-generated ````realm_size```` search tree now uses the ````break = yes```` syntax to optimistically exit the search tree once the target ````realm_size```` range is found

Beware possible bugs, cosmetic or otherwise, that might result from no longer exhaustively resetting all primary-tier titles to the same dynlevy law or no longer forcing the appropriate dynlevy law upon primary-tier title creation. In particular, look for instances where it *appears* that multiple levy efficiency laws apply for a ruler (should just be cosmetic, but nevertheless) or where no levy efficiency law at all applies for a playable ruler.