mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-26 03:52:22 +02:00
tweaks
This commit is contained in:
parent
9f976d2579
commit
0226c27e3c
@ -8,21 +8,21 @@ local string_find = string.find
|
||||
|
||||
local balance_functions = {
|
||||
["flamethrower"] = function(force_name)
|
||||
global.combat_balance[force_name].flamethrower_damage = -0.6
|
||||
global.combat_balance[force_name].flamethrower_damage = -0.80
|
||||
game.forces[force_name].set_turret_attack_modifier("flamethrower-turret", global.combat_balance[force_name].flamethrower_damage)
|
||||
game.forces[force_name].set_ammo_damage_modifier("flamethrower", global.combat_balance[force_name].flamethrower_damage)
|
||||
end,
|
||||
["refined-flammables"] = function(force_name)
|
||||
global.combat_balance[force_name].flamethrower_damage = global.combat_balance[force_name].flamethrower_damage + 0.06
|
||||
global.combat_balance[force_name].flamethrower_damage = global.combat_balance[force_name].flamethrower_damage + 0.05
|
||||
game.forces[force_name].set_turret_attack_modifier("flamethrower-turret", global.combat_balance[force_name].flamethrower_damage)
|
||||
game.forces[force_name].set_ammo_damage_modifier("flamethrower", global.combat_balance[force_name].flamethrower_damage)
|
||||
end,
|
||||
["land-mine"] = function(force_name)
|
||||
if not global.combat_balance[force_name].land_mine then global.combat_balance[force_name].land_mine = -0.75 end
|
||||
if not global.combat_balance[force_name].land_mine then global.combat_balance[force_name].land_mine = -0.80 end
|
||||
game.forces[force_name].set_ammo_damage_modifier("landmine", global.combat_balance[force_name].land_mine)
|
||||
end,
|
||||
["stronger-explosives"] = function(force_name)
|
||||
if not global.combat_balance[force_name].land_mine then global.combat_balance[force_name].land_mine = -0.75 end
|
||||
if not global.combat_balance[force_name].land_mine then global.combat_balance[force_name].land_mine = -0.80 end
|
||||
global.combat_balance[force_name].land_mine = global.combat_balance[force_name].land_mine + 0.05
|
||||
game.forces[force_name].set_ammo_damage_modifier("landmine", global.combat_balance[force_name].land_mine)
|
||||
end,
|
||||
|
@ -106,7 +106,7 @@ Public.spawn_market_items = {
|
||||
{price = {{"raw-fish", 2}}, offer = {type = 'give-item', item = 'piercing-rounds-magazine'}},
|
||||
{price = {{"raw-fish", 2}}, offer = {type = 'give-item', item = 'grenade'}},
|
||||
{price = {{"raw-fish", 1}}, offer = {type = 'give-item', item = 'land-mine'}},
|
||||
{price = {{"raw-fish", 1}}, offer = {type = 'give-item', item = 'explosives', count = 4}},
|
||||
{price = {{"raw-fish", 1}}, offer = {type = 'give-item', item = 'explosives', count = 3}},
|
||||
{price = {{"raw-fish", 1}}, offer = {type = 'give-item', item = 'wood', count = 10}},
|
||||
{price = {{"raw-fish", 1}}, offer = {type = 'give-item', item = 'iron-ore', count = 10}},
|
||||
{price = {{"raw-fish", 1}}, offer = {type = 'give-item', item = 'copper-ore', count = 10}},
|
||||
|
@ -199,7 +199,7 @@ local function on_init()
|
||||
|
||||
global.rocks_yield_ore_maximum_amount = 256
|
||||
global.rocks_yield_ore_base_amount = 16
|
||||
global.rocks_yield_ore_distance_modifier = 0.0128
|
||||
global.rocks_yield_ore_distance_modifier = 0.0064
|
||||
|
||||
Explosives.set_destructible_tile("out-of-map", 5000)
|
||||
Explosives.set_destructible_tile("water", 2000)
|
||||
|
@ -165,7 +165,7 @@ function Public.spawn_random_cave_market(surface, position)
|
||||
end
|
||||
end
|
||||
for name, value in pairs(items) do
|
||||
local value = value * math_random(6, 12) * 0.01
|
||||
local value = value * math_random(5, 10) * 0.01
|
||||
local count = 1
|
||||
if value < 1 then
|
||||
count = math_floor(1 / value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user