/
item.lua
59 lines (47 loc) · 1.81 KB
/
item.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
--item.lua
local poopShell = table.deepcopy(data.raw["ammo-category"]["bullet"])
poopShell.name = "cmps-poop-shell"
data:extend{poopShell}
local poop = table.deepcopy(data.raw["ammo"]["shotgun-shell"])
poop.name = "cmps-poop"
poop.ammo_type.category="cmps-poop-shell"
poop.ammo_type.magazine_size=50
poop.icon = "__better_compass__/graphics/poop.png"
local poopRecipe = table.deepcopy(data.raw["recipe"]["shotgun-shell"])
poopRecipe.enabled = true
poopRecipe.name = "cmps-poop"
poopRecipe.ingredients = {}
poopRecipe.result = "cmps-poop"
poopRecipe.energy_required = 3
data:extend{poop,poopRecipe}
local poopFuel = table.deepcopy(data.raw["item"]["coal"])
poopFuel.name = "cmps-compressed-poop"
poopFuel.fuel_value = "10MJ"
poopFuel.fuel_acceleration_multiplier = 1.3
poopFuel.fuel_top_speed_multiplier = 1.08
poopFuel.icon = "__better_compass__/graphics/compressedpoop.png"
local poopFuelRecipe = table.deepcopy(data.raw["recipe"]["small-electric-pole"])
poopFuelRecipe.enabled = true
poopFuelRecipe.name = "cmps-compressed-poop"
poopFuelRecipe.ingredients = {{"cmps-poop",5}}
poopFuelRecipe.result = "cmps-compressed-poop"
poopFuelRecipe.energy_required = 3
data:extend{poopFuel,poopFuelRecipe}
local poopGun = table.deepcopy(data.raw["gun"]["shotgun"])
poopGun.name = "cmps-poop-gun"
poopGun.icons = {
{
icon = poopGun.icon,
tint = {r=0.588,g=0.294,b=0,a=0.3}
},
}
poopGun.attack_parameters.ammo_category = "cmps-poop-shell"
poopGun.attack_parameters.cooldown = 12
poopGun.attack_parameters.movement_slow_down_factor = 1.1
poopGun.attack_parameters.range = 20
local poopGunRecipe = table.deepcopy(data.raw["recipe"]["shotgun"])
poopGunRecipe.enabled = true
poopGunRecipe.name = "cmps-poop-gun"
poopGunRecipe.ingredients = {{"wood",5},{"cmps-poop",10}}
poopGunRecipe.result = "cmps-poop-gun"
data:extend{poopGun,poopGunRecipe}