1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-11 14:49:24 +02:00
This commit is contained in:
MewMew 2019-05-28 13:30:50 +02:00
parent d167c5d9e4
commit 62ad6e61e5
5 changed files with 20 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 = {