-
Notifications
You must be signed in to change notification settings - Fork 0
/
KNOBS.lua
127 lines (113 loc) · 6.01 KB
/
KNOBS.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
local SPEED_MULTIPLIER = 1.25
return {
-- ──────────────────────────────────────────────────────────────────────
-- ╭─────────────────────────────────────────────────────────╮
-- │ Looping values: │
-- ╰─────────────────────────────────────────────────────────╯
loop = {
-- Multiplied by pawn base stats.
-- Ie, 1.5 = 1.5x health / damage (50% increase) every loop.
healthMultiplier = 1.5,
damageMultiplier = 1.5,
},
-- ──────────────────────────────────────────────────────────────────────
-- ╭─────────────────────────────────────────────────────────╮
-- │ Coin values: │
-- ╰─────────────────────────────────────────────────────────╯
-- Passive generation rate (generate a coin every 'passiveRate' seconds):
coinGenerationRate = 12,
-- How many coins you get at the start of a new level:
newLevelCoinReward = 5,
-- How much each one is worth.
enemyCoinReward = {
tower = 5.5,
base = 10,
meleeEnemy = 1.5,
rangedEnemy = 1.75,
},
-- ──────────────────────────────────────────────────────────────────────
-- ╭─────────────────────────────────────────────────────────╮
-- │ Enemy tower stats: │
-- ╰─────────────────────────────────────────────────────────╯
-- Lower spawn rate = faster (spawn every 'spawnRate' seconds).
enemyTower = {
health = 37,
spawnRate = 5.75 / SPEED_MULTIPLIER,
-- Every second the spawn rate will be multiplied by this.
-- For example,
--
-- If this is 0.5
--
-- Every second the spawn rate will double every second.
--
-- If it was 0.8, it would increase by 20% every second.
--
-- Higher number = slower increase over time.
spawnRateIncreaseIncrement = 0.96,
-- The minimum spawn rate.
-- If this is 1, the minimum rate is 1 per second.
-- if it's 2, the minimum rate is 1 per 2 seconds.
-- Lower number = faster, higher number = slower.
minimumSpawnRate = 1.75,
},
-- ──────────────────────────────────────────────────────────────────────
-- ╭─────────────────────────────────────────────────────────╮
-- │ Enemy pawn stats: │
-- ╰─────────────────────────────────────────────────────────╯
-- Lower attack speed = faster (attack every 'attackSpeed' seconds).
-- `toggleRanges` console command to view the ranges of each pawn.
meleeEnemy = {
health = 5.35,
walkSpeed = 1200 * SPEED_MULTIPLIER,
damageAmount = 1.2,
attackSpeed = 1 / SPEED_MULTIPLIER,
range = 120,
price = 1
},
rangedEnemy = {
health = 4.15,
walkSpeed = 1000 * SPEED_MULTIPLIER,
damageAmount = .85,
attackSpeed = 1.2 / SPEED_MULTIPLIER,
range = 420.69,
price = 2
},
-- ──────────────────────────────────────────────────────────────────────
-- ╭─────────────────────────────────────────────────────────╮
-- │ Player pawn stats: │
-- ╰─────────────────────────────────────────────────────────╯
-- Lower attack speed = faster
-- `toggleRanges` console command to view the ranges of each pawn.
knight = {
health = 6,
walkSpeed = 1200 * SPEED_MULTIPLIER,
damageAmount = 0.95,
attackSpeed = 1 / SPEED_MULTIPLIER,
range = 120,
price = 1
},
archer = {
health = 5,
walkSpeed = 1000 * SPEED_MULTIPLIER,
damageAmount = 1,
attackSpeed = 1.2 / SPEED_MULTIPLIER,
range = 420.69,
price = 3
},
mage = {
health = 15,
walkSpeed = 1200 * SPEED_MULTIPLIER,
damageAmount = 4,
attackSpeed = 2 / SPEED_MULTIPLIER,
range = 180,
price = 15
},
heavy = {
health = 50,
walkSpeed = 950 * SPEED_MULTIPLIER,
damageAmount = 8.75,
attackSpeed = 1 / SPEED_MULTIPLIER,
range = 160,
price = 25
},
}