-
Notifications
You must be signed in to change notification settings - Fork 21
/
data.lua
46 lines (41 loc) · 1.19 KB
/
data.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
local copyPrototype = require "__FARL__/lib"
require("__FARL__/prototypes/equipment")
require("__FARL__/prototypes/entity/entities")
require("__FARL__/prototypes/item/item")
require("__FARL__/prototypes/recipe/recipe")
require("__FARL__/prototypes/styles")
local player = copyPrototype("character", "character", "farl_player")
player.healing_per_tick = 100
player.collision_mask = {"ghost-layer"}
player.inventory_size = 0
player.build_distance = 0
player.drop_item_distance = 0
player.reach_distance = 0
player.reach_resource_distance = 0
player.ticks_to_keep_gun = 0
player.ticks_to_keep_aiming_direction = 0
player.running_speed = 0
player.distance_per_frame = 0
player.mining_speed = 0
data:extend({player})
if not data.raw["custom-input"] or not data.raw["custom-input"]["toggle-train-control"] then
data:extend({
{
type = "custom-input",
name = "toggle-train-control",
key_sequence = "J"
}
})
end
data:extend{
{
type = "custom-input",
name = "farl-toggle-cruise-control",
key_sequence = "SHIFT + C"
},
{
type = "custom-input",
name = "farl-toggle-active",
key_sequence = "",
}
}