Thank you to The Dictator and Thoth19 for the majority of the code. Without The Dictator's ProfitTracking.ash and DicsLibrary.ash and Thoth19's TimeTracking.ash this script would not exist.
This script functions as a CLI wrapper of their profit trackers to allow you to add breakpoints, keep a daily list of today's breakpoints, and compare breakpoints in order to track profits.
To install, run
git checkout https://github.com/Prusias-kol/pTrack main
Type ptrack help
in the gCLI to see available commands.
To add a breakpoint, type ptrack add <breakpoint name>
To list today's breakpoints (or yesterdays if you haven't yet set a breakpoint today), type ptrack list
To compare two breakpoints (from today or yesterday if you haven't yet set a breakpoint today), type ptrack compare <bp1> <bp2>
. Replace the command with dcompare for a breakdown of your item profits/losses.
To compare all breakpoints on ptrack list, type ptrack recap
If you want to make sure your breakfast profits are also kept track of, instead of running mafia breakfast, run ptrack breakfast
! If it's your first time running the script today it'll add a breakpoint before running your breakfast.
Bonus tip, if you have your mafia configured to run breakfast when logging in, and still want mafia to do that but with ptrack instead:
Untick breakfast on the Mafia login window.
Then, on the top left, KolMafia -> Preferences -> Automation
In the On Login section, paste ptrack breakfast
- View previous days (to help compare progress across days)
- Exclude an item from profit comparison in case of outliers
- Compare across days?