From b0249523484a1a2b03bc9e0ac6f1bf6bd68a77a7 Mon Sep 17 00:00:00 2001 From: Casper1123 <42973822+Casper1123@users.noreply.github.com> Date: Fri, 1 Jul 2022 10:43:42 +0200 Subject: [PATCH] Changed some code around. It's been a night so I don't remember and I can't be asked to look it up. But things work so it's fine lol --- DRG Loadout Randomizer.py | 5 ++--- README.md | 35 ++++++++++++++++++++++++++++++----- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/DRG Loadout Randomizer.py b/DRG Loadout Randomizer.py index 80dc561..5056535 100644 --- a/DRG Loadout Randomizer.py +++ b/DRG Loadout Randomizer.py @@ -53,7 +53,7 @@ If using my_ocs.json: dict[classnum] gives the following: [ - dict[weaponnum], # Primaries dict that gives list of stored OC's + dict[weaponnum], # Primaries dict that gives lists of stored OC's dict[weaponnum], # Secondaris dict that does the same ] """ @@ -183,7 +183,6 @@ def my_overclocks_list() -> str: output = "\nYour saved 'obtained Overclocks':\n" # Preps output string # for class and then weapon, make string for classt in range(1, 5): # I did not know that it does not include the second number in here. Anyhow, 1-4 for each class. - print(classt) output = f"{output}" \ f"{class_dict[classt]}:\n" # Adds class indicator for weapont in range(1, 6): @@ -210,7 +209,7 @@ def remove_from_list(container: list, content) -> list: def settings_loop(): while True: print( - f"\nSettings: Grenades, Weapons, Classes, No-overclock, Upgrades, All-overclocks, My-Overclocks, Information, Save to file, Back/Exit\n" + f"\nSettings: Grenades, Weapons, Class, No-overclock, Upgrades, All-overclocks, My-Overclocks, Information, Save to file, Back/Exit\n" f"Current settings:\n" f"Grenades - {settings()[grenades_str]}\n" f"Weapons - {weapons_dict[settings()[weapons_str]]}\n" diff --git a/README.md b/README.md index bcc54f2..9e62360 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,30 @@ -Alright. So.\ -I was bored and decided to make this in my free time. -We don't worry about anything done here, I just wanted to use some simple code to try make a makeshift app. \ -I have not a lot to say besides welcome and enjoy the absolute buffoonery for the time being, while I learn the ropes.\ -If you like this, then cool :) it really isn't that complex though lol. \ No newline at end of file +# Randomised loadout creator for Deep Rock Galactic +Because I was bored. + +# Introduction: +This is a WIP project I wanted to make in my free time because I was bored and wanted to make the game fresh again for myself.\ +This tool allows you to do the same! (I hope)\ +With some settings you can tweak it to your liking and generate a random loadout. You'll still have to create it ingame yourself, as this just uses options that are available ingame and picks stuff out of them, but it works well and makes the game a blast! +Though of course DRG in itself is already bloody amazing. + +# Usage +This is currently still a console application that only runs on python. If you want to test it, install Python 3.9 or higher. +The batch file quickly and easily opens a command prompt running the py file for you, though if you are on other operating systems you've got to figure that out for yourself for now. + + # Settings +This program has some settings you can choose out of. This has some information about them. +> Grenades: True/False - toggles if a line containing grenade choice is present in the output.\ +> Weapons: Primary/Secondary/Both - changes output to reflect selected weapons to be generated.\ +> Class: Driller/Engineer/Gunner/Scout/Random - selects what class(es) to be generated in output.\ +> No-Overclock: True/False - allows the program to generate 'No overclock' as an Overclock option.\ +> Upgrades: True/False - allows the program to generate a weapon upgrade loadout string (EX: 32132).\ +> Save to file: True/False - allows the program to save the generated output to a text file.\ +> My-Overclocks; Enable - makes the program use your selected and stored Overclocks or all Overclocks available in the game. + +# Work in progress +Here are a couple things I hope to get working in the future: +- Generate all classes at the same time +- Make this into an exe-file with zip download on this repo page +- Turn it from a console app to an application with window + +With that first one being the simplest of all for me. I will most likely have to re-write all of the code once I get a window working though.. But that's half the fun of it :D \ No newline at end of file