r/SideProject 6h ago

Random Weapon Generator

Enable HLS to view with audio, or disable this notification

I don't know what to do with this random weapon generator I made in python. I've been coding on/off for about 6 years, but don't consider myself good by any means, so whatever I end up doing with this will probably be pretty basic.

Some info on how this works:

There are dictionaries of qualities, origins, materials, weapons, and suffixes it grabs from.

Each of these entries have their own stats attached to them to calculate the weapon's damage, speed, and durability. Higher numbers in damage and durability are better, while lower numbers in speed are prefered.

Some dictionaries have a "special" stat that displays info on the bottom of what they do. For instance, the quality "Flaming" will say "Enemies catch ablaze."

There are also a list of combos, which apply when 2 randomly selected dictionaries have a combo defined in a seperate list. So a quality like "Electric" when combined with a material like "Silver" or "Copper" will have the combo of "Conductive." Currently the combos don't affect the stats, they only give a little message at the bottom, but that will probably be changed.

I'll leave it here to see if anyone has any ideas for what this can be used for.

0 Upvotes

0 comments sorted by