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

sounds

git-svn-id: http://svn.net-core.org/repos/t-engine4@509 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5f741f29
No related branches found
No related tags found
No related merge requests found
......@@ -95,20 +95,6 @@ newEntity{ base = "BASE_SCROLL",
end}
}
newEntity{ base = "BASE_SCROLL",
name = "scroll of recall",
level_range = {10, 50},
rarity = 8,
cost = 2,
use_simple = { name="recall to your base town.", use = function(self, who)
error("****************** IMPLEMENT SCROLL OF RECALL ****************")
who:recall()
game.logSeen(who, "%s reads a %s!", who.name:capitalize(), self:getName())
return "destroy", true
end}
}
newEntity{ base = "BASE_SCROLL",
name = "scroll of magic mapping",
level_range = {1, 50},
......
File added
File added
File added
......@@ -29,6 +29,7 @@ newTalent{
action = function(self, t)
self:setEffect(self.EFF_STUNNED, 17 - self:getTalentLevel(t), {})
self:incEquilibrium(-10 - self:getWil(50) * self:getTalentLevel(t))
game:playSoundNear(self, "talents/spell_generic2")
return true
end,
info = function(self, t)
......@@ -54,6 +55,7 @@ newTalent{
if not target.undead then
target:heal(20 + self:getWil(50) * self:getTalentLevel(t))
end
game:playSoundNear(self, "talents/heal")
return true
end,
info = function(self, t)
......@@ -76,6 +78,7 @@ newTalent{
if not x then return nil end
self:magicMap(3 + self:getTalentLevel(t), x, y)
game:playSoundNear(self, "talents/spell_generic2")
return true
end,
info = function(self, t)
......@@ -107,6 +110,7 @@ newTalent{
self.talents_cd[tid] = nil
end
self.changed = true
game:playSoundNear(self, "talents/spell_generic2")
return true
end,
info = function(self, t)
......
......@@ -55,6 +55,7 @@ newTalent{
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:project(tg, self.x, self.y, DamageType.PHYSKNOCKBACK, {dam=15 + self:getStr() * 0.1 * self:getTalentLevel(t), dist=4})
game:playSoundNear(self, "talents/breath")
return true
end,
info = function(self, t)
......@@ -90,6 +91,7 @@ newTalent{
engine.Entity.new{alpha=100, display='', color_br=180, color_bg=30, color_bb=60},
nil, true
)
game:playSoundNear(self, "talents/devouringflame")
return true
end,
info = function(self, t)
......
......@@ -58,7 +58,7 @@ newTalent{
if self:getTalentLevel(t) < 3 then
self:showInventory("Identify object", self:getInven(self.INVEN_INVEN), nil, function(o, item)
o:identify(true)
game.logPlayer(who, "You identify: "..o:getName())
game.logPlayer(self, "You identify: "..o:getName())
end)
return true
end
......
......@@ -29,6 +29,7 @@ newTalent{
},
action = function(self, t)
self:setEffect(self.EFF_REGENERATION, 10, {power=5 + self:combatSpellpower(0.07) * self:getTalentLevel(t)})
game:playSoundNear(self, "talents/heal")
return true
end,
info = function(self, t)
......@@ -49,6 +50,7 @@ newTalent{
},
action = function(self, t)
self:heal(self:spellCrit(10 + self:combatSpellpower(0.5) * self:getTalentLevel(t)), self)
game:playSoundNear(self, "talents/heal")
return true
end,
info = function(self, t)
......@@ -85,6 +87,7 @@ newTalent{
end
end
game:playSoundNear(self, "talents/heal")
return true
end,
info = function(self, t)
......@@ -142,6 +145,7 @@ newTalent{
bear:resolve()
game.zone:addEntity(game.level, bear, "actor", x, y)
game:playSoundNear(self, "talents/spell_generic")
return true
end,
info = function(self, t)
......
......@@ -30,6 +30,7 @@ newTalent{
if self:getTalentLevel(t) >= 3 then
self:project(tg, self.x, self.y, DamageType.BLIND, 3 + self:getTalentLevel(t))
end
game:playSoundNear(self, "talents/heal")
return true
end,
info = function(self, t)
......@@ -52,6 +53,7 @@ newTalent{
},
activate = function(self, t)
local power = 4 + self:combatSpellpower(0.04) * self:getTalentLevel(t)
game:playSoundNear(self, "talents/heal")
return {
def = self:addTemporaryValue("combat_def", power),
}
......@@ -79,6 +81,7 @@ newTalent{
},
activate = function(self, t)
local power = 10 + self:combatSpellpower(0.06) * self:getTalentLevel(t)
game:playSoundNear(self, "talents/heal")
return {
onhit = self:addTemporaryValue("on_melee_hit", {[DamageType.ARCANE]=power}),
}
......@@ -106,6 +109,7 @@ newTalent{
},
activate = function(self, t)
local power = 4 + self:combatSpellpower(0.04) * self:getTalentLevel(t)
game:playSoundNear(self, "talents/heal")
return {
invisible = self:addTemporaryValue("invisible", power),
drain = self:addTemporaryValue("mana_regen", -5),
......
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