Skip to content
Snippets Groups Projects
Commit 660bcb15 authored by DarkGod's avatar DarkGod
Browse files

Make alchemists look somewhat more awesome

parent 5190a72f
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,13 @@ newBirthDescriptor{
},
power_source = {psionic=true, technique=true},
stats = { wil=4, str=5, },
birth_example_particles = {
function(actor)
if not actor:addShaderAura("rampage", "awesomeaura", {time_factor=5000, alpha=0.7}, "particles_images/bloodwings.png") then
actor:addParticles(Particles.new("rampage", 1))
end
end,
},
talents_types = {
["cursed/gloom"]={true, 0.3},
["cursed/slaughter"]={true, 0.3},
......
......@@ -58,6 +58,11 @@ newBirthDescriptor{
},
power_source = {arcane=true},
stats = { mag=5, con=3, wil=1, },
birth_example_particles = {
function(actor)
actor:addShaderAura("body_of_fire", "awesomeaura", {time_factor=3500, alpha=1, flame_scale=1.1}, "particles_images/wings.png")
end,
},
talents_types = {
["spell/explosives"]={true, 0.3},
["spell/infusion"]={true, 0.3},
......
......@@ -203,6 +203,7 @@ newTalent{
activate = function(self, t)
game:playSoundNear(self, "talents/fireflash")
game.logSeen(self, "#FF8000#%s turns into pure flame!", self.name:capitalize())
self:addShaderAura("body_of_fire", "awesomeaura", {time_factor=3500, alpha=1, flame_scale=1.1}, "particles_images/wings.png")
return {
onhit = self:addTemporaryValue("on_melee_hit", {[DamageType.FIRE]=t.getFireDamageOnHit(self, t)}),
res = self:addTemporaryValue("resists", {[DamageType.FIRE] = t.getResistance(self, t)}),
......@@ -210,6 +211,7 @@ newTalent{
}
end,
deactivate = function(self, t, p)
self:removeShaderAura("body_of_fire")
game.logSeen(self, "#FF8000#The raging fire around %s calms down and disappears.", self.name)
self:removeTemporaryValue("on_melee_hit", p.onhit)
self:removeTemporaryValue("resists", p.res)
......
......@@ -372,12 +372,14 @@ newTalent{
getReflect = function(self, t) return self:combatLimit(self:combatTalentSpellDamage(t, 12, 40), 100, 20, 0, 46.5, 26.5) end,
activate = function(self, t)
game:playSoundNear(self, "talents/spell_generic2")
self:addShaderAura("reflective_skin", "awesomeaura", {time_factor=5500, alpha=0.6, flame_scale=0.6}, "particles_images/arcaneshockwave.png")
local ret = {
tmpid = self:addTemporaryValue("reflect_damage", (t.getReflect(self, t)))
}
return ret
end,
deactivate = function(self, t, p)
self:removeShaderAura("reflective_skin")
self:removeTemporaryValue("reflect_damage", p.tmpid)
return true
end,
......
......@@ -1086,13 +1086,10 @@ function _M:setTile(f, w, h, last)
self:applyCosmeticActor()
if not last then
self:fakeEquip(true)
self.actor:updateModdableTile()
self:fakeEquip(false)
-- Add an example particles if any
local ps = self.actor:getParticlesList("all")
for i, p in ipairs(ps) do self.actor:removeParticles(p) end
if self.actor.shader_auras then self.actor.shader_auras = {} end
if self.descriptors_by_type.subclass then
local d = self.birth_descriptor_def.subclass[self.descriptors_by_type.subclass]
if d and d.birth_example_particles then
......@@ -1102,6 +1099,10 @@ function _M:setTile(f, w, h, last)
if type(p) == "string" then self.actor:addParticles(Particles.new(p, 1)) end
end
end
self:fakeEquip(true)
self.actor:updateModdableTile()
self:fakeEquip(false)
end
end
......
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