equal
deleted
inserted
replaced
1530 end |
1530 end |
1531 if params['mutate'] ~= nil then |
1531 if params['mutate'] ~= nil then |
1532 useVariantHats = params['mutate'] |
1532 useVariantHats = params['mutate'] |
1533 end |
1533 end |
1534 |
1534 |
1535 if params['strength'] ~= nil and tonumber(params['strength']) > 0 then |
1535 if params['strength'] ~= nil and tonumber(params['strength']) ~= nil and tonumber(params['strength']) > 0 then |
1536 strength = tonumber(params['strength']) |
1536 strength = tonumber(params['strength']) |
1537 -- Highland |
1537 -- Highland |
1538 if mode == 'highland' then |
1538 if mode == 'highland' then |
1539 highPickupCount = highPickupCount * strength |
1539 highPickupCount = highPickupCount * strength |
1540 highPickupSDCount = highPickupSDCount * strength |
1540 highPickupSDCount = highPickupSDCount * strength |
1559 variants[name]["helperLimit"] = variants[name]["helperLimit"] * strength |
1559 variants[name]["helperLimit"] = variants[name]["helperLimit"] * strength |
1560 end |
1560 end |
1561 end |
1561 end |
1562 end |
1562 end |
1563 |
1563 |
1564 if params['luck'] ~= nil and tonumber(params['luck']) > 0 then |
1564 if params['luck'] ~= nil and tonumber(params['luck']) and tonumber(params['luck']) > 0 then |
1565 luck = tonumber(params['luck']) |
1565 luck = tonumber(params['luck']) |
1566 |
1566 |
1567 healthCrateChance = div(healthCrateChance * luck, 100) |
1567 healthCrateChance = div(healthCrateChance * luck, 100) |
1568 utilCrateChance = div(utilCrateChance * luck, 100) |
1568 utilCrateChance = div(utilCrateChance * luck, 100) |
1569 weaponCrateChance = div(weaponCrateChance * luck, 100) |
1569 weaponCrateChance = div(weaponCrateChance * luck, 100) |