1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-05 15:05:57 +02:00
This commit is contained in:
Matthew Heguy 2019-02-26 14:25:19 -05:00
parent 09ef833dd2
commit 95ebb4a239
9 changed files with 43 additions and 43 deletions

View File

@ -218,8 +218,8 @@ local item_pool = {
{name = 'land-mine', count = 100, weight = 250},
{name = 'shotgun-shell', count = 200, weight = 1250},
{name = 'piercing-rounds-magazine', count = 200, weight = 833.3333},
{name = 'science-pack-1', count = 200, weight = 100},
{name = 'science-pack-2', count = 200, weight = 100},
{name = 'automation-science-pack', count = 200, weight = 100},
{name = 'logistic-science-pack', count = 200, weight = 100},
{name = 'grenade', count = 100, weight = 500},
{name = 'defender-capsule', count = 50, weight = 500},
{name = 'railgun-dart', count = 100, weight = 500},
@ -233,7 +233,7 @@ local item_pool = {
{name = 'railgun', count = 1, weight = 100},
{name = 'flamethrower-ammo', count = 50, weight = 100},
{name = 'military-science-pack', count = 200, weight = 100},
{name = 'science-pack-3', count = 200, weight = 100},
{name = 'chemical-science-pack', count = 200, weight = 100},
{name = 'explosive-rocket', count = 100, weight = 100},
{name = 'explosive-cannon-shell', count = 100, weight = 100},
{name = 'cluster-grenade', count = 100, weight = 100},

View File

@ -707,10 +707,10 @@ local function init()
{name = 'coal', price = 1.25},
{name = 'raw-fish', price = 4},
{name = 'firearm-magazine', price = 5},
{name = 'science-pack-1', price = 10},
{name = 'science-pack-2', price = 25},
{name = 'automation-science-pack', price = 10},
{name = 'logistic-science-pack', price = 25},
{name = 'military-science-pack', price = 50},
{name = 'science-pack-3', price = 75},
{name = 'chemical-science-pack', price = 75},
{name = 'production-science-pack', price = 100},
{name = 'high-tech-science-pack', price = 125},
{

View File

@ -4,10 +4,10 @@ local Token = require 'utils.token'
local loot = {
{weight = 10},
{stack = {name = 'coin', count = 250, distance_factor = 1 / 20}, weight = 5},
{stack = {name = 'science-pack-1', count = 200, distance_factor = 1 / 10}, weight = 2},
{stack = {name = 'science-pack-2', count = 100, distance_factor = 1 / 10}, weight = 2},
{stack = {name = 'automation-science-pack', count = 200, distance_factor = 1 / 10}, weight = 2},
{stack = {name = 'logistic-science-pack', count = 100, distance_factor = 1 / 10}, weight = 2},
{stack = {name = 'military-science-pack', count = 75, distance_factor = 1 / 10}, weight = 3},
{stack = {name = 'science-pack-3', count = 75, distance_factor = 1 / 10}, weight = 3},
{stack = {name = 'chemical-science-pack', count = 75, distance_factor = 1 / 10}, weight = 3},
{stack = {name = 'production-science-pack', count = 50, distance_factor = 1 / 10}, weight = 5},
{stack = {name = 'high-tech-science-pack', count = 50, distance_factor = 1 / 10}, weight = 5}
}
@ -45,13 +45,13 @@ local market = {
upgrade_base_cost = 500,
upgrade_cost_base = 2,
{
name = 'science-pack-1',
name = 'automation-science-pack',
price = 10,
distance_factor = 5 / 512,
min_price = 1
},
{
name = 'science-pack-2',
name = 'logistic-science-pack',
price = 20,
distance_factor = 10 / 512,
min_price = 2
@ -63,7 +63,7 @@ local market = {
min_price = 4
},
{
name = 'science-pack-3',
name = 'chemical-science-pack',
price = 60,
distance_factor = 30 / 512,
min_price = 4

View File

@ -4,10 +4,10 @@ local Token = require 'utils.token'
local loot = {
{weight = 10},
{stack = {name = 'coin', count = 75, distance_factor = 1 / 20}, weight = 5},
{stack = {name = 'science-pack-1', count = 100, distance_factor = 1 / 10}, weight = 5},
{stack = {name = 'science-pack-2', count = 50, distance_factor = 1 / 10}, weight = 5},
{stack = {name = 'automation-science-pack', count = 100, distance_factor = 1 / 10}, weight = 5},
{stack = {name = 'logistic-science-pack', count = 50, distance_factor = 1 / 10}, weight = 5},
{stack = {name = 'military-science-pack', count = 25, distance_factor = 1 / 10}, weight = 5},
{stack = {name = 'science-pack-3', count = 25, distance_factor = 1 / 10}, weight = 5}
{stack = {name = 'chemical-science-pack', count = 25, distance_factor = 1 / 10}, weight = 5}
}
local weights = ob.prepare_weighted_loot(loot)
@ -30,8 +30,8 @@ local factory = {
local factory_b = {
callback = ob.magic_item_crafting_callback,
data = {
recipe = 'science-pack-3',
output = {min_rate = 0.125 / 60, distance_factor = 0.125 / 60 / 512, item = 'science-pack-3'}
recipe = 'chemical-science-pack',
output = {min_rate = 0.125 / 60, distance_factor = 0.125 / 60 / 512, item = 'chemical-science-pack'}
}
}
@ -43,13 +43,13 @@ local market = {
upgrade_base_cost = 500,
upgrade_cost_base = 2,
{
name = 'science-pack-1',
name = 'automation-science-pack',
price = 10,
distance_factor = 5 / 512,
min_price = 1
},
{
name = 'science-pack-2',
name = 'logistic-science-pack',
price = 20,
distance_factor = 10 / 512,
min_price = 2
@ -61,7 +61,7 @@ local market = {
min_price = 4
},
{
name = 'science-pack-3',
name = 'chemical-science-pack',
price = 60,
distance_factor = 30 / 512,
min_price = 6

View File

@ -4,8 +4,8 @@ local Token = require 'utils.token'
local loot = {
{weight = 10},
{stack = {name = 'coin', count = 50, distance_factor = 1 / 20}, weight = 5},
{stack = {name = 'science-pack-1', count = 37, distance_factor = 1 / 20}, weight = 5},
{stack = {name = 'science-pack-2', count = 25, distance_factor = 1 / 20}, weight = 5}
{stack = {name = 'automation-science-pack', count = 37, distance_factor = 1 / 20}, weight = 5},
{stack = {name = 'logistic-science-pack', count = 25, distance_factor = 1 / 20}, weight = 5}
}
local weights = ob.prepare_weighted_loot(loot)
@ -20,15 +20,15 @@ local loot_callback =
local factory_loot = {
{
stack = {
recipe = 'science-pack-1',
output = {item = 'science-pack-1', min_rate = 1 / 5 / 60, distance_factor = 1 / 5 / 60 / 512}
recipe = 'automation-science-pack',
output = {item = 'automation-science-pack', min_rate = 1 / 5 / 60, distance_factor = 1 / 5 / 60 / 512}
},
weight = 5
},
{
stack = {
recipe = 'science-pack-2',
output = {item = 'science-pack-2', min_rate = 1 / 6 / 60, distance_factor = 1 / 6 / 60 / 512}
recipe = 'logistic-science-pack',
output = {item = 'logistic-science-pack', min_rate = 1 / 6 / 60, distance_factor = 1 / 6 / 60 / 512}
},
weight = 5
}

View File

@ -5,7 +5,7 @@ local loot = {
{weight = 10},
{stack = {name = 'coin', count = 75, distance_factor = 1 / 20}, weight = 5},
{stack = {name = 'military-science-pack', count = 12, distance_factor = 1 / 20}, weight = 5},
{stack = {name = 'science-pack-3', count = 12, distance_factor = 1 / 20}, weight = 5}
{stack = {name = 'chemical-science-pack', count = 12, distance_factor = 1 / 20}, weight = 5}
}
local weights = ob.prepare_weighted_loot(loot)
@ -27,8 +27,8 @@ local factory_loot = {
},
{
stack = {
recipe = 'science-pack-3',
output = {item = 'science-pack-3', min_rate = 1 / 12 / 60, distance_factor = 1 / 12 / 60 / 512}
recipe = 'chemical-science-pack',
output = {item = 'chemical-science-pack', min_rate = 1 / 12 / 60, distance_factor = 1 / 12 / 60 / 512}
},
weight = 5
}

View File

@ -4,8 +4,8 @@ local Token = require 'utils.token'
local loot = {
{weight = 10},
{stack = {name = 'coin', count = 50, distance_factor = 1 / 20}, weight = 5},
{stack = {name = 'science-pack-1', count = 50, distance_factor = 1 / 10}, weight = 5},
{stack = {name = 'science-pack-2', count = 25, distance_factor = 1 / 10}, weight = 5}
{stack = {name = 'automation-science-pack', count = 50, distance_factor = 1 / 10}, weight = 5},
{stack = {name = 'logistic-science-pack', count = 25, distance_factor = 1 / 10}, weight = 5}
}
local weights = ob.prepare_weighted_loot(loot)
@ -20,16 +20,16 @@ local loot_callback =
local factory = {
callback = ob.magic_item_crafting_callback,
data = {
recipe = 'science-pack-1',
output = {min_rate = 0.175 / 60, distance_factor = 0.175 / 60 / 512, item = 'science-pack-1'}
recipe = 'automation-science-pack',
output = {min_rate = 0.175 / 60, distance_factor = 0.175 / 60 / 512, item = 'automation-science-pack'}
}
}
local factory_b = {
callback = ob.magic_item_crafting_callback,
data = {
recipe = 'science-pack-2',
output = {min_rate = 0.175 / 60, distance_factor = 0.175 / 60 / 512, item = 'science-pack-2'}
recipe = 'logistic-science-pack',
output = {min_rate = 0.175 / 60, distance_factor = 0.175 / 60 / 512, item = 'logistic-science-pack'}
}
}
@ -41,13 +41,13 @@ local market = {
upgrade_base_cost = 350,
upgrade_cost_base = 2,
{
name = 'science-pack-1',
name = 'automation-science-pack',
price = 10,
distance_factor = 5 / 512,
min_price = 1
},
{
name = 'science-pack-2',
name = 'logistic-science-pack',
price = 20,
distance_factor = 10 / 512,
min_price = 2

View File

@ -368,9 +368,9 @@ local Config = {
['rock-big'] = 5,
['rock-huge'] = 10,
['rocket_launch'] = 0.01, -- XP reward in percentage of total experience when a rocket launches (Diggy default: 0.01 which equals 1%)
['science-pack-1'] = 4,
['science-pack-2'] = 8,
['science-pack-3'] = 15,
['automation-science-pack'] = 4,
['logistic-science-pack'] = 8,
['chemical-science-pack'] = 15,
['military-science-pack'] = 12,
['production-science-pack'] = 25,
['high-tech-science-pack'] = 50,

View File

@ -201,8 +201,8 @@ local item_pool = {
{name = 'land-mine', count = 100, weight = 250},
{name = 'shotgun-shell', count = 200, weight = 1250},
{name = 'piercing-rounds-magazine', count = 200, weight = 833.3333},
{name = 'science-pack-1', count = 200, weight = 100},
{name = 'science-pack-2', count = 200, weight = 100},
{name = 'automation-science-pack', count = 200, weight = 100},
{name = 'logistic-science-pack', count = 200, weight = 100},
{name = 'grenade', count = 100, weight = 500},
{name = 'defender-capsule', count = 50, weight = 500},
{name = 'railgun-dart', count = 100, weight = 500},
@ -216,7 +216,7 @@ local item_pool = {
{name = 'railgun', count = 1, weight = 100},
{name = 'flamethrower-ammo', count = 50, weight = 100},
{name = 'military-science-pack', count = 200, weight = 100},
{name = 'science-pack-3', count = 200, weight = 100},
{name = 'chemical-science-pack', count = 200, weight = 100},
{name = 'explosive-rocket', count = 100, weight = 100},
{name = 'explosive-cannon-shell', count = 100, weight = 100},
{name = 'cluster-grenade', count = 100, weight = 100},