mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-14 02:34:09 +02:00
tweaks
This commit is contained in:
parent
3a13d261e2
commit
03e81fd39b
@ -317,50 +317,50 @@ Public.mining_events = {
|
||||
local position = entity.position
|
||||
local surface = entity.surface
|
||||
Public.loot_crate(surface, position, "wooden-chest", player_index)
|
||||
end, 2048, "Treasure_Tier_1"},
|
||||
end, 1024, "Treasure_Tier_1"},
|
||||
|
||||
{function(cave_miner, entity, player_index)
|
||||
local position = entity.position
|
||||
local surface = entity.surface
|
||||
Public.loot_crate(surface, position, "iron-chest", player_index)
|
||||
end, 1024, "Treasure_Tier_2"},
|
||||
end, 512, "Treasure_Tier_2"},
|
||||
|
||||
{function(cave_miner, entity, player_index)
|
||||
local position = entity.position
|
||||
local surface = entity.surface
|
||||
Public.loot_crate(surface, position, "steel-chest", player_index)
|
||||
end, 512, "Treasure_Tier_3"},
|
||||
end, 256, "Treasure_Tier_3"},
|
||||
|
||||
{function(cave_miner, entity, player_index)
|
||||
local position = entity.position
|
||||
local surface = entity.surface
|
||||
Public.loot_crate(surface, position, "crash-site-spaceship-wreck-medium-" .. math_random(1,3), player_index)
|
||||
end, 256, "Treasure_Tier_4"},
|
||||
end, 128, "Treasure_Tier_4"},
|
||||
|
||||
{function(cave_miner, entity, player_index)
|
||||
local position = entity.position
|
||||
local surface = entity.surface
|
||||
Public.loot_crate(surface, position, "crash-site-spaceship-wreck-big-" .. math_random(1,2), player_index)
|
||||
end, 128, "Treasure_Tier_5"},
|
||||
end, 64, "Treasure_Tier_5"},
|
||||
|
||||
{function(cave_miner, entity, player_index)
|
||||
local position = entity.position
|
||||
local surface = entity.surface
|
||||
Public.loot_crate(surface, position, "big-ship-wreck-" .. math_random(1,3), player_index)
|
||||
end, 64, "Treasure_Tier_6"},
|
||||
end, 32, "Treasure_Tier_6"},
|
||||
|
||||
{function(cave_miner, entity, player_index)
|
||||
local position = entity.position
|
||||
local surface = entity.surface
|
||||
Public.loot_crate(surface, position, "crash-site-chest-" .. math_random(1,2), player_index)
|
||||
end, 32, "Treasure_Tier_7"},
|
||||
end, 16, "Treasure_Tier_7"},
|
||||
|
||||
{function(cave_miner, entity, player_index)
|
||||
local position = entity.position
|
||||
local surface = entity.surface
|
||||
Public.loot_crate(surface, position, "crash-site-spaceship", player_index)
|
||||
Public.unstuck_player(player_index)
|
||||
end, 16, "Treasure_Tier_8"},
|
||||
end, 8, "Treasure_Tier_8"},
|
||||
|
||||
{function(cave_miner, entity, player_index)
|
||||
local position = entity.position
|
||||
@ -478,7 +478,7 @@ Public.on_entity_died = {
|
||||
end,
|
||||
["container"] = function(cave_miner, entity)
|
||||
local position = entity.position
|
||||
Public.reveal(cave_miner, game.surfaces.nauvis, game.surfaces.cave_miner_source, position, 16)
|
||||
Public.reveal(cave_miner, game.surfaces.nauvis, game.surfaces.cave_miner_source, position, 20)
|
||||
end,
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ local function init(cave_miner)
|
||||
surface.brightness_visual_weights = {0.92, 0.92, 0.92}
|
||||
surface.daytime = 0.43
|
||||
surface.freeze_daytime = true
|
||||
surface.solar_power_multiplier = 5
|
||||
surface.solar_power_multiplier = 3
|
||||
|
||||
cave_miner.last_reroll_player_name = ""
|
||||
cave_miner.reveal_queue = {}
|
||||
|
@ -140,7 +140,7 @@ function Public.spawn_random_cave_market(surface, position)
|
||||
end
|
||||
end
|
||||
for name, value in pairs(items) do
|
||||
local value = value * math_random(16, 32) * 0.01
|
||||
local value = value * math_random(20, 36) * 0.01
|
||||
local count = 1
|
||||
if value < 1 then
|
||||
count = math_floor(1 / value)
|
||||
@ -150,8 +150,6 @@ function Public.spawn_random_cave_market(surface, position)
|
||||
market.add_market_item({price = {{"raw-fish", value}}, offer = {type = 'give-item', item = name, count = count}})
|
||||
end
|
||||
|
||||
blacklist["railgun"] = true
|
||||
blacklist["railgun-dart"] = true
|
||||
blacklist["wood"] = true
|
||||
blacklist["express-loader"] = true
|
||||
blacklist["fast-loader"] = true
|
||||
@ -165,7 +163,7 @@ function Public.spawn_random_cave_market(surface, position)
|
||||
end
|
||||
end
|
||||
for name, value in pairs(items) do
|
||||
local value = value * math_random(5, 10) * 0.01
|
||||
local value = value * math_random(4, 8) * 0.01
|
||||
local count = 1
|
||||
if value < 1 then
|
||||
count = math_floor(1 / value)
|
||||
|
Loading…
Reference in New Issue
Block a user