From d9f15bea69a3df3694f9dd95db349cc21f9407fe Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Mon, 22 Jul 2013 12:21:55 +0200 Subject: [PATCH] better breath wing fade --- game/modules/tome/data/birth/classes/wilder.lua | 8 ++++++++ game/modules/tome/data/talents/gifts/cold-drake.lua | 2 +- game/modules/tome/data/talents/gifts/fire-drake.lua | 6 ++---- game/modules/tome/data/talents/gifts/higher-draconic.lua | 2 +- game/modules/tome/data/talents/gifts/sand-drake.lua | 2 +- game/modules/tome/data/talents/gifts/storm-drake.lua | 2 +- game/modules/tome/data/talents/gifts/venom-drake.lua | 2 +- 7 files changed, 15 insertions(+), 9 deletions(-) diff --git a/game/modules/tome/data/birth/classes/wilder.lua b/game/modules/tome/data/birth/classes/wilder.lua index 92113399d4..5137ed3e57 100644 --- a/game/modules/tome/data/birth/classes/wilder.lua +++ b/game/modules/tome/data/birth/classes/wilder.lua @@ -114,6 +114,14 @@ newBirthDescriptor{ "#LIGHT_BLUE# * +0 Magic, +3 Willpower, +0 Cunning", "#GOLD#Life per level:#LIGHT_BLUE# +2", }, + birth_example_particles = { + function(actor) if core.shader.active(4) then actor:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end end, + function(actor) if core.shader.active(4) then actor:addParticles(Particles.new("shader_wings", 1, {img="lightningwings", life=18, fade=-0.006, deploy_speed=14})) end end, + function(actor) if core.shader.active(4) then actor:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end end, + function(actor) if core.shader.active(4) then actor:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end end, + function(actor) if core.shader.active(4) then actor:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end end, + function(actor) if core.shader.active(4) then actor:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end end, + }, power_source = {nature=true, technique=true}, stats = { str=5, wil=3, con=1, }, talents_types = { diff --git a/game/modules/tome/data/talents/gifts/cold-drake.lua b/game/modules/tome/data/talents/gifts/cold-drake.lua index a19682a7cb..857bed9445 100644 --- a/game/modules/tome/data/talents/gifts/cold-drake.lua +++ b/game/modules/tome/data/talents/gifts/cold-drake.lua @@ -174,7 +174,7 @@ newTalent{ game:playSoundNear(self, "talents/breath") if core.shader.active(4) then - self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.003, deploy_speed=14})) + self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end return true end, diff --git a/game/modules/tome/data/talents/gifts/fire-drake.lua b/game/modules/tome/data/talents/gifts/fire-drake.lua index 4b2a4348ec..1380ab3c16 100644 --- a/game/modules/tome/data/talents/gifts/fire-drake.lua +++ b/game/modules/tome/data/talents/gifts/fire-drake.lua @@ -81,7 +81,7 @@ newTalent{ game:playSoundNear(self, "talents/breath") if core.shader.active(4) then - self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.003, deploy_speed=14})) + self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end return true end, @@ -171,9 +171,7 @@ newTalent{ game.level.map:particleEmitter(self.x, self.y, tg.radius, "breath_fire", {radius=tg.radius, tx=x-self.x, ty=y-self.y}) if core.shader.active(4) then - local p = Particles.new("shader_wings", 1, {life=18, fade=-0.003, deploy_speed=14}) - p.toback = true - self:addParticles(p) + self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end game:playSoundNear(self, "talents/breath") return true diff --git a/game/modules/tome/data/talents/gifts/higher-draconic.lua b/game/modules/tome/data/talents/gifts/higher-draconic.lua index 87387637ea..44d547e97c 100644 --- a/game/modules/tome/data/talents/gifts/higher-draconic.lua +++ b/game/modules/tome/data/talents/gifts/higher-draconic.lua @@ -123,7 +123,7 @@ newTalent{ game:playSoundNear(self, "talents/breath") if core.shader.active(4) then - self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.003, deploy_speed=14})) + self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end return true end, diff --git a/game/modules/tome/data/talents/gifts/sand-drake.lua b/game/modules/tome/data/talents/gifts/sand-drake.lua index 932d4309c2..39d14035c4 100644 --- a/game/modules/tome/data/talents/gifts/sand-drake.lua +++ b/game/modules/tome/data/talents/gifts/sand-drake.lua @@ -159,7 +159,7 @@ newTalent{ game:playSoundNear(self, "talents/breath") if core.shader.active(4) then - self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.003, deploy_speed=14})) + self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end return true end, diff --git a/game/modules/tome/data/talents/gifts/storm-drake.lua b/game/modules/tome/data/talents/gifts/storm-drake.lua index 498d1d1aeb..6beaa48854 100644 --- a/game/modules/tome/data/talents/gifts/storm-drake.lua +++ b/game/modules/tome/data/talents/gifts/storm-drake.lua @@ -212,7 +212,7 @@ newTalent{ if core.shader.active(4) then - self:addParticles(Particles.new("shader_wings", 1, {img="lightningwings", life=18, fade=-0.003, deploy_speed=14})) + self:addParticles(Particles.new("shader_wings", 1, {img="lightningwings", life=18, fade=-0.006, deploy_speed=14})) end game:playSoundNear(self, "talents/breath") return true diff --git a/game/modules/tome/data/talents/gifts/venom-drake.lua b/game/modules/tome/data/talents/gifts/venom-drake.lua index 9958a78d1e..40d7dc47a6 100644 --- a/game/modules/tome/data/talents/gifts/venom-drake.lua +++ b/game/modules/tome/data/talents/gifts/venom-drake.lua @@ -184,7 +184,7 @@ newTalent{ game:playSoundNear(self, "talents/breath") if core.shader.active(4) then - self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.003, deploy_speed=14})) + self:addParticles(Particles.new("shader_wings", 1, {life=18, fade=-0.006, deploy_speed=14})) end return true end, -- GitLab