mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-11 14:49:24 +02:00
updates
This commit is contained in:
parent
d167c5d9e4
commit
62ad6e61e5
@ -46,15 +46,17 @@ local function acid_line(surface, name, source, target)
|
||||
local position = {source.x, source.y}
|
||||
|
||||
for i = 1, distance * 1.5, 1 do
|
||||
surface.create_entity({
|
||||
name = name,
|
||||
position = source,
|
||||
force = "enemy",
|
||||
source = source,
|
||||
target = position,
|
||||
max_range = 32,
|
||||
speed = 1
|
||||
})
|
||||
if math_random(1,2) ~= 1 then
|
||||
surface.create_entity({
|
||||
name = name,
|
||||
position = source,
|
||||
force = "enemy",
|
||||
source = source,
|
||||
target = position,
|
||||
max_range = 25,
|
||||
speed = 1
|
||||
})
|
||||
end
|
||||
position = {position[1] + modifier[1], position[2] + modifier[2]}
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
local radius = 8
|
||||
local radius = 9
|
||||
local math_random = math.random
|
||||
local math_sqrt = math.sqrt
|
||||
|
||||
@ -20,6 +20,7 @@ local function create_projectile(surface, position, target, name)
|
||||
end
|
||||
|
||||
local function bounce(surface, position, ammo)
|
||||
if math_random(1,3) ~= 1 then return end
|
||||
local valid_entities = {}
|
||||
for _, e in pairs(surface.find_entities_filtered({area = {{position.x - radius, position.y - radius},{position.x + radius, position.y + radius}}})) do
|
||||
if e.health then
|
||||
|
@ -1,4 +1,5 @@
|
||||
--biter noms you
|
||||
--biters make comic like text sounds when they damage something -- mewmew
|
||||
|
||||
local event = require 'utils.event'
|
||||
local math_random = math.random
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
-- players trample paths
|
||||
-- players trample paths, tiles change as players walk around
|
||||
|
||||
local event = require 'utils.event'
|
||||
local math_random = math.random
|
||||
|
@ -1,3 +1,7 @@
|
||||
-- this spawns additional worms around the center of the map_gen_settings
|
||||
-- global.average_worm_amount_per_chunk sets the average amount of worms
|
||||
-- (default = 1)
|
||||
|
||||
local event = require 'utils.event'
|
||||
local math_random = math.random
|
||||
local turrets = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user