Skip to content

Commit

Permalink
Changed some code around. It's been a night so I don't remember and I…
Browse files Browse the repository at this point in the history
… can't be asked to look it up. But things work so it's fine lol
  • Loading branch information
Casper1123 committed Jul 1, 2022
1 parent 7788186 commit b024952
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
5 changes: 2 additions & 3 deletions DRG Loadout Randomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
"""
Expand Down Expand Up @@ -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):
Expand All @@ -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"
Expand Down
35 changes: 30 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
# 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

0 comments on commit b024952

Please sign in to comment.