Добавлены все обновления от сообщества, вплоть до #148
@@ -148,7 +148,7 @@ for p=1,#global.player_forces do
|
||||
local pforce = game.forces[global.player_forces[p]]
|
||||
if surface and the_event and pforce and (not surfacename or surface.name==surfacename) and (not forcename or pforce.name==forcename) then
|
||||
--DRD
|
||||
if surface.peaceful_mode then
|
||||
if (surface.peaceful_mode or surface.map_gen_settings.autoplace_controls["enemy-base"].size == 0) and not settings.global["bm-events-when-peaceful"].value then
|
||||
break
|
||||
end
|
||||
--DRD
|
||||
@@ -315,10 +315,10 @@ end
|
||||
|
||||
|
||||
function get_pos_near_enemy_nest(surface,spawn,pforce)
|
||||
local enemy = surface.find_nearest_enemy{position=spawn, max_distance=500, force=pforce}
|
||||
local enemy = surface.find_nearest_enemy{position=spawn, max_distance=3000, force=pforce}
|
||||
if enemy then
|
||||
local f = enemy.force
|
||||
local nests = surface.find_entities_filtered{type='unit-spawner', position=enemy.position, radius=300, force=f, limit=5}
|
||||
local nests = surface.find_entities_filtered{type='unit-spawner', position=enemy.position, radius=300, force=f}
|
||||
if #nests>0 then
|
||||
spawn = get_random_pos_near(nests[math.random(#nests)].position,30)
|
||||
spawn = surface.find_non_colliding_position('assembling-machine-1', spawn, 0, 1)
|
||||
@@ -329,7 +329,7 @@ end
|
||||
|
||||
function Create_Position_Event(the_event, surface, position, pforce)
|
||||
--DRD
|
||||
if surface.peaceful_mode then
|
||||
if (surface.peaceful_mode or surface.map_gen_settings.autoplace_controls["enemy-base"].size == 0) and not settings.global["bm-events-when-peaceful"].value then
|
||||
return
|
||||
end
|
||||
--DRD
|
||||
|
||||
|
Before Width: | Height: | Size: 464 KiB After Width: | Height: | Size: 437 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 524 KiB After Width: | Height: | Size: 322 KiB |
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 173 KiB After Width: | Height: | Size: 70 KiB |
@@ -62,6 +62,7 @@ bm-volcano=This volcano spread fire streams all around. These eruptions will las
|
||||
|
||||
|
||||
[mod-setting-name]
|
||||
bm-events-when-peaceful=Enabled in peaceful mode
|
||||
bm-big-enemy-hp-multiplier=Big enemies HP multiplyer
|
||||
bm-big-enemy-hp-variant=Big enemies HP variant
|
||||
bm-worm-enemy-hp-multiplier=Worms HP multiplyer
|
||||
@@ -99,6 +100,7 @@ bm_camera_size=Camera size
|
||||
|
||||
|
||||
[mod-setting-description]
|
||||
bm-events-when-peaceful=If enabled, events will occur even in peaceful mode
|
||||
bm-event-days=How often the attacks will happen (1 game day = 7 minutes). Values 0-20 (Zero = disable all)
|
||||
bm-enable-silo-attack=If enabled, you will be seriously attacked after the Rocket-Silo is built
|
||||
bm-big-enemy-hp-multiplier=0.2-10.0 (default 1)
|
||||
|
||||
@@ -4,14 +4,23 @@ data:extend({
|
||||
type = "int-setting",
|
||||
name = "bm-event-days",
|
||||
setting_type = "runtime-global",
|
||||
default_value = 6,
|
||||
default_value = 100, --drd
|
||||
minimum_value = 0,
|
||||
maximum_value = 20,
|
||||
maximum_value = 365, --drd
|
||||
order = "a"
|
||||
},
|
||||
},
|
||||
|
||||
-- skp, drd
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "bm-events-when-peaceful",
|
||||
setting_type = "runtime-global",
|
||||
default_value = false,
|
||||
order = "a"
|
||||
},
|
||||
-- skp, drd
|
||||
|
||||
|
||||
|
||||
{
|
||||
type = "double-setting",
|
||||
name = "bm-invasion-min_evo",
|
||||
@@ -300,7 +309,7 @@ data:extend({
|
||||
type = "double-setting",
|
||||
name = "bm-tree-events-chance",
|
||||
setting_type = "runtime-global",
|
||||
default_value = 1.0,
|
||||
default_value = 0.0, --drd
|
||||
minimum_value = 0.0,
|
||||
maximum_value = 100,
|
||||
order = "w"
|
||||
|
||||
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 20 KiB |