cursed.lua
7.74 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
-- Cursed
newTalentType{ allow_random=true, type="cursed/slaughter", name = "slaughter", description = "Your weapon yearns for its next victim." }
newTalentType{ allow_random=true, type="cursed/endless-hunt", name = "endless hunt", description = "Each day, you lift your weary body and begin the unending hunt." }
newTalentType{ allow_random=true, type="cursed/strife", name = "strife", description = "The battlefield is your home; death and confusion, your comfort." }
newTalentType{ allow_random=true, is_mind=true, type="cursed/gloom", name = "gloom", description = "All those in your sight must share your despair." }
newTalentType{ allow_random=true, type="cursed/rampage", name = "rampage", description = "Let loose the hate that has grown within." }
newTalentType{ allow_random=true, type="cursed/predator", name = "predator", description = "Track and kill your prey with single-minded focus." }
-- Doomed
newTalentType{ allow_random=true, is_mind=true, type="cursed/dark-sustenance", name = "dark sustenance", generic = true, description = "Invoke the powerful force of your will." }
newTalentType{ allow_random=true, is_mind=true, type="cursed/force-of-will", name = "force of will", description = "Invoke the powerful force of your will." }
newTalentType{ allow_random=true, is_mind=true, type="cursed/darkness", name = "darkness", description = "Harness the power of darkness to envelop your foes." }
newTalentType{ allow_random=true, is_mind=true, type="cursed/shadows", name = "shadows", description = "Summon shadows from the darkness to aid you." }
newTalentType{ allow_random=true, is_mind=true, type="cursed/punishments", name = "punishments", description = "Your hate becomes punishment in the minds of your foes." }
newTalentType{ allow_random=true, is_mind=true, type="cursed/one-with-shadows", name = "one with shadows", min_lev = 10, description = "Harness your shadows to their full potential." }
-- Generic
newTalentType{ allow_random=true, is_mind=true, type="cursed/gestures", name = "gestures", generic = true, description = "Enhance the power of you mind with gestures." }
newTalentType{ allow_random=true, is_mind=true, type="cursed/cursed-form", name = "cursed form", generic = true, description = "You are wracked with the dark energies of the curse." }
newTalentType{ allow_random=true, is_mind=true, type="cursed/cursed-aura", name = "cursed aura", generic = true, description = "The things you surround yourself with soon wither away." }
newTalentType{ allow_random=false, is_mind=true, type="cursed/curses", name = "curses", hide = true, description = "The effects of cursed objects." }
newTalentType{ allow_random=true, is_mind=true, type="cursed/fears", name = "fears", description = "Use the fear that lies at the heart of your curse to attack the minds of your enemies." }
cursed_wil_req1 = {
stat = { wil=function(level) return 12 + (level-1) * 2 end },
level = function(level) return 0 + (level-1) end,
}
cursed_wil_req2 = {
stat = { wil=function(level) return 20 + (level-1) * 2 end },
level = function(level) return 4 + (level-1) end,
}
cursed_wil_req3 = {
stat = { wil=function(level) return 28 + (level-1) * 2 end },
level = function(level) return 8 + (level-1) end,
}
cursed_wil_req4 = {
stat = { wil=function(level) return 36 + (level-1) * 2 end },
level = function(level) return 12 + (level-1) end,
}
cursed_wil_req5 = {
stat = { wil=function(level) return 44 + (level-1) * 2 end },
level = function(level) return 16 + (level-1) end,
}
cursed_str_req1 = {
stat = { str=function(level) return 12 + (level-1) * 2 end },
level = function(level) return 0 + (level-1) end,
}
cursed_str_req2 = {
stat = { str=function(level) return 20 + (level-1) * 2 end },
level = function(level) return 4 + (level-1) end,
}
cursed_str_req3 = {
stat = { str=function(level) return 28 + (level-1) * 2 end },
level = function(level) return 8 + (level-1) end,
}
cursed_str_req4 = {
stat = { str=function(level) return 36 + (level-1) * 2 end },
level = function(level) return 12 + (level-1) end,
}
cursed_str_req5 = {
stat = { str=function(level) return 44 + (level-1) * 2 end },
level = function(level) return 16 + (level-1) end,
}
cursed_cun_req1 = {
stat = { cun=function(level) return 12 + (level-1) * 2 end },
level = function(level) return 0 + (level-1) end,
}
cursed_cun_req2 = {
stat = { cun=function(level) return 20 + (level-1) * 2 end },
level = function(level) return 4 + (level-1) end,
}
cursed_cun_req3 = {
stat = { cun=function(level) return 28 + (level-1) * 2 end },
level = function(level) return 8 + (level-1) end,
}
cursed_cun_req4 = {
stat = { cun=function(level) return 36 + (level-1) * 2 end },
level = function(level) return 12 + (level-1) end,
}
cursed_cun_req5 = {
stat = { cun=function(level) return 44 + (level-1) * 2 end },
level = function(level) return 16 + (level-1) end,
}
cursed_req_high1 = {
stat = { cun=function(level) return 22 + (level-1) * 2 end },
level = function(level) return 10 + (level-1) end,
}
cursed_req_high2 = {
stat = { cun=function(level) return 30 + (level-1) * 2 end },
level = function(level) return 14 + (level-1) end,
}
cursed_req_high3 = {
stat = { cun=function(level) return 38 + (level-1) * 2 end },
level = function(level) return 18 + (level-1) end,
}
cursed_req_high4 = {
stat = { cun=function(level) return 46 + (level-1) * 2 end },
level = function(level) return 22 + (level-1) end,
}
cursed_req_high5 = {
stat = { cun=function(level) return 54 + (level-1) * 2 end },
level = function(level) return 26 + (level-1) end,
}
cursed_lev_req1 = {
level = function(level) return 0 + (level-1) end,
}
cursed_lev_req2 = {
level = function(level) return 4 + (level-1) end,
}
cursed_lev_req3 = {
level = function(level) return 8 + (level-1) end,
}
cursed_lev_req4 = {
level = function(level) return 12 + (level-1) end,
}
cursed_lev_req5 = {
level = function(level) return 16 + (level-1) end,
}
-- utility functions
function getHateMultiplier(self, min, max, cursedWeaponBonus, hate)
local fraction = (hate or self.hate) / 100
if cursedWeaponBonus then
if self:hasDualWeapon() then
if self:hasCursedWeapon() then fraction = fraction + 0.13 end
if self:hasCursedOffhandWeapon() then fraction = fraction + 0.07 end
else
if self:hasCursedWeapon() then fraction = fraction + 0.2 end
end
end
fraction = math.min(fraction, 1)
return (min + ((max - min) * fraction))
end
load("/data/talents/cursed/slaughter.lua")
load("/data/talents/cursed/endless-hunt.lua")
load("/data/talents/cursed/strife.lua")
load("/data/talents/cursed/gloom.lua")
load("/data/talents/cursed/rampage.lua")
load("/data/talents/cursed/predator.lua")
load("/data/talents/cursed/force-of-will.lua")
load("/data/talents/cursed/dark-sustenance.lua")
load("/data/talents/cursed/shadows.lua")
load("/data/talents/cursed/darkness.lua")
load("/data/talents/cursed/punishments.lua")
load("/data/talents/cursed/gestures.lua")
load("/data/talents/cursed/one-with-shadows.lua")
load("/data/talents/cursed/cursed-form.lua")
load("/data/talents/cursed/cursed-aura.lua")
load("/data/talents/cursed/fears.lua")