-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprops.lua
89 lines (88 loc) · 3.21 KB
/
props.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
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
propsConfig = {
['Dynamite'] = {
['description'] = 'After you grabed onto something with your\nclaw, press UP to throw a piece of dynamite\nat it and blow it up.',
effect = function(player) player:addDynamite() end,
getPrice = function(level) return math.random(300) + 1 + level * 2 end,
['uiPos'] = {
[1] = {
['x'] = 195,
['y'] = 22
},
[2] = {
['x'] = 200,
['y'] = 22
},
[3] = {
['x'] = 205,
['y'] = 22
},
[4] = {
['x'] = 210,
['y'] = 22
},
[5] = {
['x'] = 215,
['y'] = 22
},
[6] = {
['x'] = 220,
['y'] = 22
},
[7] = {
['x'] = 195,
['y'] = 12
},
[8] = {
['x'] = 200,
['y'] = 12
},
[9] = {
['x'] = 205,
['y'] = 12
},
[10] = {
['x'] = 210,
['y'] = 12
},
[11] = {
['x'] = 215,
['y'] = 12
},
[12] = {
['x'] = 220,
['y'] = 12
},
},
--['type'] = 'Usable',
--['effectType'] = 'RangeDestroy'
},
['StrengthDrink'] = {
['description'] = 'Strength drink. The Miner will reel up objects\na little faster on the next level.\nThe drink only lasts for one level.',
effect = function(player) player.hasStrengthDrink = true end,
getPrice = function(level) return math.random(300) + 100 end,
--['type'] = 'OnlyNextLevelEffect',
--['effectType'] = 'StrengthenMiner'
},
['LuckyClover'] = {
['description'] = 'Lucky Clover. This will increase the chances\nof getting something good out of the\ngrab bags onthe next level.\nThis is only good for one level.',
effect = function(player) player.hasLuckyClover = true end,
getPrice = function(level) return math.random(level * 50) + 1 + level * 2 end,
--['type'] = 'OnlyNextLevelEffect',
--['effectType'] = 'QuestionBagMoreWorth'
},
['RockCollectorsBook'] = {
['description'] = 'Rock Collectors book. Rocks will be worth\nthree times as much money on the next level.\nThis is only good for one level.',
effect = function(player) player.hasRockCollectorsBook = true end,
getPrice = function(level) return math.random(150) + 1 end,
--['type'] = 'OnlyNextLevelEffect',
--['effectType'] = 'RockWorth*3'
},
['GemPolish'] = {
['description'] = 'Gem Polish. During the next level gems and\ndiamonds will be worth more money.\nOnly good for one level.',
effect = function(player) player.hasGemPolish = true end,
getPrice = function(level) return math.random(level * 100) + 201 end,
--['type'] = 'OnlyNextLevelEffect',
--['effectType'] = 'GemWorth*1.5'
},
}
props = { 'Dynamite', 'StrengthDrink', 'LuckyClover', 'RockCollectorsBook', 'GemPolish' }