This mod is an overkill, producing bugs and just doing things the wrong way. Really the only file to change for a legendary paradise is TreasureTable.txt - last tables there describe "lucky find" chances and loot, and can be easily modified to find a ton of legendaries (and whatever else) in EVERY game container in every location, except quest containers with special quest items. One file to do the right thing. That file also describes merchant inventories and enemy drops, all of those can be changed by modifying some basic templates for item types at the beginning of file.
Lucky find-based generation is also better than setting loot table because when someone or something other than PC destroys the container, its contents aren't generated and don't spam the whole screen with labels.
Also ItemType.txt can be modified to make legendaries ten times more legendary, each item containing maximum of possible upgrades of every type for that item type and level. Legendary legendaries, everywhere. Yes, gets boring fast, definitely not for first playthrough... but better than reloading game for billion times trying to get a suitable item from every boss and ornate chest.

The easiest and least buggy way to do all this is to unpack your game with lstools somewhere, modify txt files with any text editor and place them in appropriate folders under public/main, no need in Engine Toolkit or making a mod (unless you play with other ppl).

Some things worth noting:
1. every game container can contain up to 80 items
2. legendary modifiers to weapons are exclusive, so even with 30 boosts of every type in itemtype.txt weapons will be a bit different
3. every container has level parameter that defines level of generated items, containers in same location may have different item levels
4. the game isn't designed for characters to wear full legendary swag

("the end of my treasuretable.txt")
new treasuretable "_Luck"
new treasuretable "Luck1"
new subtable "-10"
object category "T_ST_RingOrAmuletLegendary",25,100,0,0,0,0,0,0
new subtable "-10"
object category "T_ST_SecGearLegendary",25,100,0,0,0,0,0,0
new subtable "-10"
object category "T_ST_ArmorLegendary",25,100,0,0,0,0,0,0
new subtable "-10"
object category "T_ST_WeaponLegendary",25,100,0,0,0,0,0,0
new subtable "-8"
object category "T_ST_Skillbook",100,100,0,0,0,0,0,0
new subtable "-10"
object category "Precious",33,100,0,0,0,0,0,0
object category "Arrow",33,100,0,0,0,0,0,0
object category "Scroll",33,100,0,0,0,0,0,0
new subtable "-8"
object category "T_ST_RareIngredient",100,100,0,0,0,0,0,0
new subtable "-8"
object category "Ingredient",100,100,0,0,0,0,0,0
new treasuretable "Luck2"
new subtable "-1"
object category "T_Luck1",100,100,0,0,0,0,0,0
new treasuretable "Luck3"
new subtable "-1"
object category "T_Luck1",100,100,0,0,0,0,0,0
new treasuretable "Luck4"
new subtable "-1"
object category "T_Luck1",100,100,0,0,0,0,0,0
new treasuretable "Luck5"
new subtable "-1"
object category "T_Luck1",100,100,0,0,0,0,0,0
new treasuretable "Luck6"
new subtable "-1"
object category "T_Luck1",100,100,0,0,0,0,0,0

Last edited by random bypasser; 26/08/14 08:56 PM.