Bunkers & Badasses

The Borderlands TTRPG

Bunkers & Badasses is the official tabletop roleplaying game based on the Borderlands video game franchise. Published by Nerdvana Games, it brings the chaotic loot-driven mayhem of Pandora to the tabletop with explosive combat, procedurally generated guns, and the iconic humor of the series.

B&B Loot Generator

Automated Loot Card Generator for Bunkers & Badasses

LootGenerator is a Python desktop application for generating loot cards in Bunkers & Badasses. Built with PyQt5, it automates the gun rolling tables from the sourcebook and produces printable PDF cards complete with gun art pulled from the Borderlands games.

Beyond guns, the application supports generating shields, grenades, relics, potions, and melee weapons — all with proper stat calculations and visual cards. It also includes FoundryVTT integration for direct JSON export to Eronth's B&B system.

Gun Card Front
Fig 1. Front view of the 2-Sided Gun Card.
Gun Card Back
Fig 2. Back/Details view of the 2-Sided Gun Card.
Printed Cards
Fig 3. Front/Back of a printed card.
FoundryVTT Import
Fig 4. Process of importing items into FoundryVTT.

Getting Started

Installation & Running

Option 1: Executable (Windows)

Download the latest release from GitHub and run BnB-LootGenerator.exe directly. No Python installation required.

Note: Some antivirus software may flag PyInstaller executables. This is a false positive - see the false positive reporting guide.

Option 2: Python (All Platforms)

Clone the repository and run from command line:

git clone https://github.com/qu-gg/BnB-LootGenerator.git
cd BnB-LootGenerator
pip install -r requirements.txt
python main.py

PDF Viewer Note

Generated PDFs use form fields for text. You'll need a PDF viewer that supports form rendering:

  • Works: Acrobat Reader DC
  • Doesn't Work: Foxit (Safe Mode), Browser PDFs, macOS Preview

Custom Parts

Extend with Homebrew Content

LootGenerator dynamically parses JSON files at runtime, making it easy to add custom content. Simply edit the files in the resources/ folder to add your own:

  • Elements — New damage types and rolling tiers
  • Guilds — Custom weapon manufacturers with unique bonuses
  • Gun Types — Additional weapon categories
  • Gun Prefixes — Named modifiers with stat effects
  • Red Text Mods — Legendary weapon effects
  • Gun Images — Custom artwork URLs

Alternative damage balancing tables from community members (McCoby's, RobMWJ's) are also included as optional presets.

Resources