forked from stefanaonx/spidertron-extended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfire.lua
47 lines (42 loc) · 2.81 KB
/
fire.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
require "util"
local table_deepcopy = util.table.deepcopy
local purifier_fire_smoke = table_deepcopy(data.raw["trivial-smoke"]["fire-smoke"])
purifier_fire_smoke.name = "purifier-fire-smoke"
purifier_fire_smoke.glow_animation.filename = "__spidertron-extended__/graphics/immolator_fire_smoke_glow.png"
local purifier_flame = table_deepcopy(data.raw["fire"]["fire-flame"])
purifier_flame.name = "purifier-flame"
-- tried to change tint but it just woulnd't get the good color
-- for x in pairs(purifier_flame.pictures) do
-- purifier_flame.pictures[x].tint = {r = 0.17647, g = 0.56863, b = 0.86275, a = 0.5}
-- --purifier_flame.pictures[x].tint = {r = 0, g = 0, b = 1, a = 1}
-- end
-- gotta love the order is exactly rotated
-- for x in pairs(purifier_flame.pictures) do
-- purifier_flame.pictures[x].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_"..tostring(x)..".png"
-- --purifier_flame.pictures[x].tint = {r = 0, g = 0, b = 1, a = 1}
-- end
-- gonna put a proper for in this at some point
purifier_flame.pictures[1].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_13.png"
purifier_flame.pictures[2].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_12.png"
purifier_flame.pictures[3].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_11.png"
purifier_flame.pictures[4].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_10.png"
purifier_flame.pictures[5].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_9.png"
purifier_flame.pictures[6].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_8.png"
purifier_flame.pictures[7].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_7.png"
purifier_flame.pictures[8].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_6.png"
purifier_flame.pictures[9].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_5.png"
purifier_flame.pictures[10].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_4.png"
purifier_flame.pictures[11].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_3.png"
purifier_flame.pictures[12].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_2.png"
purifier_flame.pictures[13].filename = "__spidertron-extended__/graphics/purifier_flame/immolator_fire_flame_1.png"
purifier_flame.initial_lifetime = 120 -- default 120
purifier_flame.lifetime_increase_by = 600 -- default 150
purifier_flame.damage_per_tick = {
amount = 1, -- 0.2166666666666667 default
type = "fire"
}
purifier_flame.smoke[1].name = "purifier-fire-smoke"
data:extend{
purifier_fire_smoke,
purifier_flame
}