Free and open source margonem scripts under GNU AGPLv3.
Goals:
- No 3-party links to other sites, all code in user script
- No code obfuscation and minification
- Clear license
Heals after every battle. Adds new addon in game addons tab. Implements Greedy algorithm, first using equally (whichever fits better) normal and percentage potions, only then full potions.
Feel free to use this code under LICENSE.
To add new addon:
- create new file, use
autoheal.ts
as a base. - new addon should implement
Addon
interface (noteInstall
andUninstall
) and be created withAddonCreate(...)
at some point in main script function inindex.ts
, it should be generic enough. npm run build
creates files in public folder which is gitignored, try running those.