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

bump 41

Rend, Acid Strike and Dark Surprise correctly refund vim when dealing a deathblow


git-svn-id: http://svn.net-core.org/repos/t-engine4@5142 51575b47-30f0-44d4-a5cc-537603b46e54
parent 2e56e0a2
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@
-- darkgod@te4.org
-- Engine Version
engine.version = {0,9,40,"te4",17}
engine.version = {0,9,41,"te4",17}
engine.require_c_core = engine.version[5]
engine.version_id = ("%s-%d_%d.%d.%d"):format(engine.version[4], engine.require_c_core, engine.version[1], engine.version[2], engine.version[3])
......
......@@ -23,7 +23,7 @@ short_name = "example"
author = { "DarkGod", "darkgod@te4.org" }
homepage = "http://te4.org/modules:example"
version = {1,0,0}
engine = {0,9,40,"te4"}
engine = {0,9,41,"te4"}
description = [[
This is *NOT* a game, just an example/template to make your own using the T-Engine4.
]]
......
......@@ -23,7 +23,7 @@ short_name = "example_realtime"
author = { "DarkGod", "darkgod@te4.org" }
homepage = "http://te4.org/modules:example"
version = {1,0,0}
engine = {0,9,40,"te4"}
engine = {0,9,41,"te4"}
description = [[
This is *NOT* a game, just an example/template to make your own using the T-Engine4.
]]
......
......@@ -17,6 +17,8 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
local DamageType = require "engine.DamageType"
newTalent{
name = "Rend",
type = {"corruption/scourge", 1},
......@@ -39,8 +41,10 @@ newTalent{
if not x or not y or not target then return nil end
if core.fov.distance(self.x, self.y, x, y) > 1 then return nil end
DamageType:projectingFor(self, {project_type={talent=t}})
local speed1, hit1 = self:attackTargetWith(target, weapon.combat, nil, self:combatTalentWeaponDamage(t, 0.8, 1.6))
local speed2, hit2 = self:attackTargetWith(target, offweapon.combat, nil, self:getOffHandMult(offweapon.combat, self:combatTalentWeaponDamage(t, 0.8, 1.6)))
DamageType:projectingFor(self, nil)
-- Try to bleed !
if hit1 then
......@@ -120,8 +124,10 @@ newTalent{
if not x or not y or not target then return nil end
if core.fov.distance(self.x, self.y, x, y) > 1 then return nil end
DamageType:projectingFor(self, {project_type={talent=t}})
local speed1, hit1 = self:attackTargetWith(target, weapon.combat, DamageType.ACID, self:combatTalentWeaponDamage(t, 0.8, 1.6))
local speed2, hit2 = self:attackTargetWith(target, offweapon.combat, DamageType.ACID, self:getOffHandMult(offweapon.combat, self:combatTalentWeaponDamage(t, 0.8, 1.6)))
DamageType:projectingFor(self, nil)
-- Acid splash !
if hit1 or hit2 then
......@@ -162,6 +168,7 @@ newTalent{
if not x or not y or not target then return nil end
if core.fov.distance(self.x, self.y, x, y) > 1 then return nil end
DamageType:projectingFor(self, {project_type={talent=t}})
local speed1, hit1 = self:attackTargetWith(target, weapon.combat, DamageType.DARKNESS, self:combatTalentWeaponDamage(t, 0.6, 1.4))
if hit1 then
......@@ -174,6 +181,7 @@ newTalent{
game.logSeen(self, "%s resists the darkness.", target.name:capitalize())
end
end
DamageType:projectingFor(self, nil)
return true
end,
......
......@@ -22,8 +22,8 @@ long_name = "Tales of Maj'Eyal: Age of Ascendancy"
short_name = "tome"
author = { "DarkGod", "darkgod@te4.org" }
homepage = "http://tome.te4.org/"
version = {3,9,40}
engine = {0,9,40,"te4"}
version = {3,9,41}
engine = {0,9,41,"te4"}
description = [[
Welcome to Maj'Eyal.
......
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