Skip to content
Snippets Groups Projects
Commit 44be0884 authored by dg's avatar dg
Browse files

music

fix
Telepathy spell drains mana


git-svn-id: http://svn.net-core.org/repos/t-engine4@518 51575b47-30f0-44d4-a5cc-537603b46e54
parent 507bc6bf
No related branches found
No related tags found
No related merge requests found
File added
File added
File added
......@@ -122,14 +122,17 @@ newTalent{
game:playSoundNear(self, "talents/spell_generic")
return {
esp = self:addTemporaryValue("esp", {range=rad, all=1}),
drain = self:addTemporaryValue("mana_regen", -3 * self:getTalentLevelRaw(t)),
}
end,
deactivate = function(self, t, p)
self:removeTemporaryValue("esp", p.esp)
self:removeTemporaryValue("mana_regen", p.drain)
return true
end,
info = function(self, t)
return ([[Allows to sense the presence of foes in your mind, in a radius of %d.
This powerfull spell will continuously drain mana while active.
The bonus will increase with the Magic stat]]):format(10 + self:combatSpellpower(0.1) * self:getTalentLevel(t))
end,
}
......@@ -28,6 +28,7 @@ return {
-- all_remembered = true,
all_lited = true,
persistant = "zone",
ambiant_music = "aasesdeath.ogg",
generator = {
map = {
class = "engine.generator.map.Roomer",
......
......@@ -28,6 +28,7 @@ return {
-- all_remembered = true,
-- all_lited = true,
persistant = "zone",
ambiant_music = "6_19.ogg",
generator = {
map = {
class = "engine.generator.map.Roomer",
......
......@@ -24,6 +24,7 @@ return {
width = 196, height = 80,
all_remembered = true,
all_lited = true,
ambiant_music = "80s_song.ogg",
generator = {
map = {
class = "engine.generator.map.Static",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment