mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-25 21:29:06 +02:00
update
This commit is contained in:
parent
a1ade15e34
commit
eb14713db3
@ -178,7 +178,6 @@ local function get_units(force_name)
|
||||
local count = 1
|
||||
for _, unit in pairs(global.map_forces[force_name].units) do
|
||||
if not unit.unit_group then
|
||||
if count > 320 then break end
|
||||
if math_random(1, 3) ~= 1 then
|
||||
units[count] = unit
|
||||
count = count + 1
|
||||
@ -329,7 +328,7 @@ local function tick()
|
||||
game.forces.east.chart(surface, area)
|
||||
--end
|
||||
end
|
||||
if game_tick % 1800 == 0 then send_unit_groups() end
|
||||
if game_tick % 1200 == 0 then send_unit_groups() end
|
||||
if global.game_reset_tick then
|
||||
if global.game_reset_tick < game_tick then
|
||||
global.game_reset_tick = nil
|
||||
|
@ -10,7 +10,7 @@ local raffle = {
|
||||
|
||||
local function add_unit(t, size, chance)
|
||||
for _ = 1, chance, 1 do table.insert(t, size .. "-spitter") end
|
||||
for _ = 1, chance * 5, 1 do table.insert(t, size .. "-biter") end
|
||||
for _ = 1, chance * 6, 1 do table.insert(t, size .. "-biter") end
|
||||
end
|
||||
|
||||
local t = raffle["automation-science-pack"][1]
|
||||
|
@ -8,20 +8,14 @@ function Public.set_force_attributes()
|
||||
game.forces.east.set_friend("spectator", true)
|
||||
game.forces.spectator.set_friend("west", true)
|
||||
game.forces.spectator.set_friend("east", true)
|
||||
game.forces.west.share_chart = true
|
||||
game.forces.east.share_chart = true
|
||||
|
||||
game.forces.west.research_queue_enabled = true
|
||||
game.forces.west.technologies["artillery"].enabled = false
|
||||
game.forces.west.technologies["artillery-shell-range-1"].enabled = false
|
||||
game.forces.west.technologies["artillery-shell-speed-1"].enabled = false
|
||||
|
||||
game.forces.east.research_queue_enabled = true
|
||||
game.forces.east.technologies["artillery"].enabled = false
|
||||
game.forces.east.technologies["artillery-shell-range-1"].enabled = false
|
||||
game.forces.east.technologies["artillery-shell-speed-1"].enabled = false
|
||||
|
||||
for _, force_name in pairs({"west", "east"}) do
|
||||
game.forces[force_name].share_chart = true
|
||||
game.forces[force_name].research_queue_enabled = true
|
||||
game.forces[force_name].technologies["artillery"].enabled = false
|
||||
game.forces[force_name].technologies["artillery-shell-range-1"].enabled = false
|
||||
game.forces[force_name].technologies["artillery-shell-speed-1"].enabled = false
|
||||
game.forces[force_name].technologies["land-mine"].enabled = false
|
||||
global.map_forces[force_name].unit_health_boost = 1
|
||||
global.map_forces[force_name].unit_count = 0
|
||||
global.map_forces[force_name].units = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user