Skip to content

Instantly share code, notes, and snippets.

@JkktBkkt
JkktBkkt / adapter.py
Last active May 25, 2025 13:12
bl2_v7.json (name preserved for now as logic in helper can't handle it yet)
# Integrate changes from mopi's LootRandomizer/Mod/../vX.py into bl2_vX.json for Loot-Rando-Helper
# Usage: edit the new_tag - new_option and json names, run this file
import json
from math import log
new_tag = "Tag.Freebie" #dirty hack to keep options above
new_option = "Freebie"
oldjson = 'bl2_v2.json'
newjson = 'bl2_v7.json'