mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-11 14:49:24 +02:00
player_list > 0.17 things
This commit is contained in:
parent
127a976468
commit
6468004559
@ -785,7 +785,7 @@ local function create_fireworks_rocket(surface, position)
|
||||
local m = math_random(16, 36)
|
||||
local m2 = m * 0.005
|
||||
|
||||
for i = 1, 100, 1 do
|
||||
for i = 1, 80, 1 do
|
||||
surface.create_entity({
|
||||
name = particle,
|
||||
position = position,
|
||||
@ -815,10 +815,10 @@ local function on_entity_died(event)
|
||||
end
|
||||
|
||||
--fireworks
|
||||
local radius = 128
|
||||
local radius = 96
|
||||
for t = 1, 18000, 1 do
|
||||
if not global.on_tick_schedule[game.tick + t] then global.on_tick_schedule[game.tick + t] = {} end
|
||||
for x = 1, 8, 1 do
|
||||
for x = 1, 4, 1 do
|
||||
global.on_tick_schedule[game.tick + t][#global.on_tick_schedule[game.tick + t] + 1] = {
|
||||
func = create_fireworks_rocket,
|
||||
args = {event.entity.surface, {x = radius - math_random(0, radius * 2),y = radius - math_random(0, radius * 2)}}
|
||||
@ -906,7 +906,7 @@ local function biter_attack_silo(team, requested_amount, mode)
|
||||
biters_selected_for_attack[x] = valid_biters[y]
|
||||
end
|
||||
|
||||
if math_random(1,3) == 1 then
|
||||
if math_random(1,6) == 1 then
|
||||
for _, biter in pairs(biters_selected_for_attack) do
|
||||
biter.set_command({type=defines.command.attack_area, destination=global.biter_attack_main_target[team], radius=12, distraction=defines.distraction.by_anything})
|
||||
end
|
||||
@ -1119,7 +1119,7 @@ local function biter_attack_silo(team, requested_amount, mode)
|
||||
--alternate attack if there is water
|
||||
local t = surface.count_tiles_filtered{area={{gathering_point_x - 8, gathering_point_y - 8}, {gathering_point_x + 8, gathering_point_y + 8}}, name={"deepwater","water", "water-green"}}
|
||||
if t > 8 then
|
||||
if math_random(1,2) == 1 then
|
||||
if math_random(1,6) ~= 1 then
|
||||
for _, biter in pairs(biters_selected_for_attack) do
|
||||
biter.set_command({type=defines.command.attack_area, destination=global.biter_attack_main_target[team], radius=12, distraction=defines.distraction.by_enemy})
|
||||
end
|
||||
@ -1136,7 +1136,7 @@ local function biter_attack_silo(team, requested_amount, mode)
|
||||
for _, biter in pairs(biters_selected_for_attack) do
|
||||
biter_attack_group.add_member(biter)
|
||||
end
|
||||
biter_attack_group.set_command({type=defines.command.attack_area, destination=global.biter_attack_main_target[team], radius=12, distraction=defines.distraction.by_anything})
|
||||
biter_attack_group.set_command({type=defines.command.attack_area, destination=global.biter_attack_main_target[team], radius=12, distraction=defines.distraction.by_enemy})
|
||||
if global.biter_battles_debug then
|
||||
game.players[1].print(#valid_biters .. " valid biters found.")
|
||||
game.players[1].print(#biters_selected_for_attack .. " gathering at (x: " .. gathering_point_x .. " y: " .. gathering_point_y .. ")")
|
||||
|
@ -89,7 +89,7 @@ local function get_rank(player)
|
||||
local m = (player.online_time + t) / 3600
|
||||
|
||||
local ranks = {
|
||||
"item/dummy-iron-axe","item/burner-mining-drill","item/burner-inserter","item/stone-furnace","item/light-armor","item/steam-engine",
|
||||
"item/burner-mining-drill","item/burner-inserter","item/stone-furnace","item/light-armor","item/steam-engine",
|
||||
"item/inserter", "item/transport-belt", "item/underground-belt", "item/splitter","item/assembling-machine-1","item/long-handed-inserter","item/electronic-circuit","item/electric-mining-drill","item/dummy-steel-axe",
|
||||
"item/heavy-armor","item/steel-furnace","item/gun-turret","item/fast-transport-belt", "item/fast-underground-belt", "item/fast-splitter","item/assembling-machine-2","item/fast-inserter","item/radar","item/filter-inserter",
|
||||
"item/defender-capsule","item/pumpjack","item/chemical-plant","item/solar-panel","item/advanced-circuit","item/modular-armor","item/accumulator", "item/construction-robot",
|
||||
|
Loading…
x
Reference in New Issue
Block a user