This repository has been archived by the owner on Nov 21, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata-updates.lua
60 lines (55 loc) · 2.34 KB
/
data-updates.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
require 'stdlib/string'
for _, prototype in pairs(data.raw["unit-spawner"]) do
prototype.pollution_absorbtion_absolute = prototype.pollution_absorbtion_absolute / 10
prototype.pollution_absorbtion_absolute = prototype.pollution_absorbtion_proportional / 5
-- prototype.max_count_of_owned_units = 0
-- prototype.max_friends_around_to_spawn = 0
-- prototype.spawning_cooldown = {9999999999,99999999999}
prototype.max_count_of_owned_units = math.floor(prototype.max_count_of_owned_units * 3 / 2)
prototype.max_friends_around_to_spawn = math.floor(prototype.max_friends_around_to_spawn * 3 / 2)
prototype.attack_reaction = {
{
range = 50,
action =
{
type = "direct",
action_delivery =
{
type = "instant",
source_effects =
{
{
type = "create-entity",
entity_name = "spawner-damaged",
trigger_created_entity = "true"
}
}
}
}
}
}
end
data.raw["unit"]["small-biter"].pollution_to_join_attack = 50
data.raw["unit"]["medium-biter"].pollution_to_join_attack = 150
data.raw["unit"]["big-biter"].pollution_to_join_attack = 300
data.raw["unit"]["behemoth-biter"].pollution_to_join_attack = 2000
data.raw["unit"]["small-spitter"].pollution_to_join_attack = 50
data.raw["unit"]["medium-spitter"].pollution_to_join_attack = 100
data.raw["unit"]["big-spitter"].pollution_to_join_attack = 200
data.raw["unit"]["behemoth-spitter"].pollution_to_join_attack = 1000
for key, prototype_type in pairs(data.raw) do
for name, prototype in pairs(prototype_type) do
if prototype.energy_source then
if prototype.energy_source.emissions and prototype.energy_source.emissions > 0.001 then
local multiplier = 7
if name:contains('assembling-machine') and not name == 'assembling-machine-1' then
multiplier = 10
end
if marathon then
multiplier = multiplier / 5
end
prototype.energy_source.emissions = prototype.energy_source.emissions * multiplier
end
end
end
end