This is an RP Calculator made by me for League of Legends. It helps you calculate the number of RP purchases needed to reach a desired RP goal.
- Python 3.x
lcu-driver
library (Install withpip install lcu-driver
)rich
library (Install withpip install rich
)
raw_store.json
: Contains the raw data retrieved from the League of Legends client usinglcu-driver
. This file needs to be updated periodically as the LoL store changes.parsed_store.json
: Contains the parsed data extracted fromraw_store.json
.
- If you want to retrieve your current store, make sure you are logged into League of Legends.
- Run
main.py
and choose whether to retrieve the current LoL store. This will be asked if you havelcu-driver
installed. - Enter your current RP amount and the desired RP goal.
- Optionally, specify the number of times you want to purchase RP.
- The script will calculate the path to reach the goal and display the RP amounts and categories involved.
- You can ignore specific RP costs by entering the corresponding numbers. Example, to ignore 975 RP costs, type '-975'.
- The script will continue recalculating the path until the goal is reached or no path is found.
- Avoiding Specific Costs: You can specify costs (e.g., -975) to be avoided in the RP calculation.
- Viewing Sample Purchases: The script displays sample purchases for each RP amount involved in the path.
- Auto-Update Store Data: The
raw_store.json
file can be updated by retrieving the current store data from the League of Legends client. - Path Optimization: The script finds the shortest path by considering the number of RP purchases needed and the available RP options.
The script uses a graph traversal algorithm to find the shortest path from the current RP amount to the desired RP goal. It considers RP purchase options and their associated costs. The raw_store.json
file is used to retrieve the purchasable RP options from the League of Legends client.
- Add the ability to avoid specific categories during the RP calculation (e.g. boosts).
- Separate some of the code into files for improved legibility.
- Add Blue Essence calculator.
- Improve the display of sample purchases to make it easier to view and understand.
- Implement a command-line interface (CLI) with user-friendly prompts and options.
- Add error handling and input validation for user inputs.
- Implement unit tests to ensure the correctness of calculations and functionality.
- Optimize the RP path calculation algorithm for efficiency.
- Support multiple regions and currencies for RP calculations. Currently only supports NA
- Create a graphical user interface (GUI) for easier interaction. Could be turned into a website, but I would need to periodically update the json file. This would also not be custom for each user, for example, it will suggest to purchase something a user already owns.
I showed that I have 1234 RP and I want to reach 0 RP. This tells me that I should purchase Gangplank the Betrayer for 944 RP, then purchase something worth 290 RP which could be a chroma(RECOLOR) or XP Boost.