Hemario / Ovale_TankScripts

Custom tank scripts for Ovale (wow)
2 stars 3 forks source link

Apply DRY principle to script files and handle changes in Ovale API. #31

Closed johnnylam88 closed 3 years ago

johnnylam88 commented 3 years ago

Instead of doing a lookup of the Ovale scripts module in each script file, do the lookup once and stash it in the addon table to be reused. This makes it easier to adapt to changes to the Ovale API in future releases.

Gracefully interoperate with older versions of Ovale so that this addon will work even if someone forcibly installs an older version of Ovale.

johnnylam88 commented 3 years ago

This change should allow Ovale_TankScripts to be usable with either the existing released version 9.0.43 of Ovale and the current Ovale from its master branch.