Porting v0.5 plugins to v0.6
For most v0.5 plugins, upgrading is as simple as following these two steps:
- First, replace
plugin.register(new Plugin());(usually the last line of the v0.5 plugin) with
export default Plugin;.
In a few cases, you might have to alter a few more lines. Here is a (possibly incomplete) list of additional modifications you may have to make:
entityStore.planetCanUpgradeis now a static method; any instance of
df.entityStore.planetCanUpgrade(planet)should be replaced with