• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Darian DelFord

Private
16 Badges
Apr 27, 2018
14
0
  • Pillars of Eternity
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris - Path to Destruction bundle
  • Knights of Honor
  • BATTLETECH
  • Age of Wonders III
  • BATTLETECH - Initiate of the Order
  • Stellaris: Apocalypse
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
  • Stellaris: Federations
I am attempting to mod stores to make equpment rarer and maybe more plentiful.

My question is how do I accomplish this. I have found the starsystem New Vandenberg )which is where I currently am) and tried to mod that JSON file however to no success..

Any ideas or help is welcome.
 
The json for each piece of equipment and 'mech will have the value "Rarity" about halfway down. This goes 0-5 normally, with 0 being common and 5 being very rare. Generally better stuff is higher rarity. Set this to taste if you like.

The shop jsons have two categories. "Inventory" is for things with no weight, which will always appear in that set of shops in infinite numbers. Normally this is stuff like SHS, stock weapons, &c. "Specials" is for rarer items which aren't guaranteed to appear and will only be present in limited numbers. Each entry will have a "Weight" value, this is (loosely) the likelihood of that particular thing being one of the rare items rolled when you load a new shop's stock. If all weights are the same (as in vanilla) there's an equal chance of any item appearing.

Shop inventories are generated when you travel to a system. Loading a save or exiting a contract mission will not refresh the shop.
 
So if I wanted to add a new weapon..... to the "default" inventory... giving it a rarity of 0 so it would be availiable at most worlds....

1. I would need to create the weapon in the Weapons Folder... this case a simple copy and paste with changing what I want to change and renaming the ID.

2. Copy that entry into the Shop Base JSON files...Base, 0 and 1?