Repository navigation
Expand file tree
/
Copy patharmor.lua
More file actions
89 lines (86 loc) · 3.82 KB
/
Copy patharmor.lua
File metadata and controls
89 lines (86 loc) · 3.82 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
-- Armors --
armor:register_armor("amber:helmet", {
description = "Amber Helmet",
inventory_image = "amber_inv_helmet_amber.png",
groups = {armor_head=1, armor_heal=0, armor_use=900,
physics_speed=-0.005, physics_gravity=0.005},
armor_groups = {fleshy=10},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
})
armor:register_armor("amber:chestplate", {
description = "Amber Chestplate",
inventory_image = "amber_inv_chestplate_amber.png",
groups = {armor_torso=1, armor_heal=0, armor_use=900,
physics_speed=-0.02, physics_gravity=0.02},
armor_groups = {fleshy=15},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
})
armor:register_armor("amber:leggings", {
description = "Amber Leggings",
inventory_image = "amber_inv_leggings_amber.png",
groups = {armor_legs=1, armor_heal=0, armor_use=900,
physics_speed=-0.015, physics_gravity=0.015},
armor_groups = {fleshy=15},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
})
armor:register_armor("amber:boots", {
description = "Amber Boots",
inventory_image = "amber_inv_boots_amber.png",
groups = {armor_feet=1, armor_heal=0, armor_use=900,
physics_speed=-0.005, physics_gravity=0.005},
armor_groups = {fleshy=10},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
})
armor:register_armor("amber:shield", {
description = "Amber Shield",
inventory_image = "amber_inv_shield_amber.png",
groups = {armor_shield=1, armor_heal=0, armor_use=900,
physics_speed=-0.015, physics_gravity=0.015},
armor_groups = {fleshy=10},
damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
reciprocate_damage = true
})
-- Ancient Armors --
anch_armor = "006699"
armor:register_armor("amber:helmet_ancient", {
description = "Ancient Amber Helmet",
inventory_image = "amber_inv_helmet_amber.png^(amber_outline_helmet.png^[colorize:#" .. anch_armor .. ")",
groups = {armor_head=1, armor_heal=14, armor_use=100},
armor_groups = {fleshy=20},
damage_groups = {cracky=1, snappy=1, choppy=1, crumbly=1, level=3},
})
armor:register_armor("amber:chestplate_ancient", {
description = "Ancient Amber Chestplate",
inventory_image = "amber_inv_chestplate_amber.png^(amber_outline_chest.png^[colorize:#" .. anch_armor .. ")",
groups = {armor_torso=1, armor_heal=14, armor_use=100},
armor_groups = {fleshy=25},
damage_groups = {cracky=1, snappy=1, choppy=1, crumbly=1, level=3},
})
armor:register_armor("amber:leggings_ancient", {
description = "Ancient Amber Leggings",
inventory_image = "amber_inv_leggings_amber.png^(amber_outline_leggings.png^[colorize:#" .. anch_armor .. ")",
groups = {armor_legs=1, armor_heal=14, armor_use=100},
armor_groups = {fleshy=25},
damage_groups = {cracky=1, snappy=1, choppy=1, crumbly=1, level=3},
})
armor:register_armor("amber:boots_ancient", {
description = "Ancient Amber Boots",
inventory_image = "amber_inv_boots_amber.png^(amber_outline_boots.png^[colorize:#" .. anch_armor .. ")",
groups = {armor_feet=1, armor_heal=14, armor_use=100},
armor_groups = {fleshy=20},
damage_groups = {cracky=1, snappy=1, choppy=1, crumbly=1, level=3},
})
armor:register_armor("amber:shield_ancient", {
description = "Ancient Amber Shield",
inventory_image = "amber_inv_shield_amber.png^(amber_outline_shield.png^[colorize:#" .. anch_armor .. ")",
groups = {armor_shield=1, armor_heal=14, armor_use=100},
armor_groups = {fleshy=20},
damage_groups = {cracky=1, snappy=1, choppy=1, crumbly=1, level=3},
reciprocate_damage = true,
on_damage = function(player, index, stack)
play_sound_effect(player, "default_dig_glass")
end,
on_destroy = function(player, index, stack)
play_sound_effect(player, "default_dug_glass")
end,
})