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

few updates

git-svn-id: http://svn.net-core.org/repos/t-engine4@5792 51575b47-30f0-44d4-a5cc-537603b46e54
parent 6ce06abf
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ project "TEngine"
configuration "linux"
libdirs {"/opt/SDL-2.0/lib/"}
libdirs {"/home/nicolas/local/lib/"}
links { "dl", "SDL2", "SDL2_ttf", "SDL2_image", "png", "openal", "vorbisfile", "GL", "GLU", "m", "pthread" }
defines { [[TENGINE_HOME_PATH='".t-engine"']], 'SELFEXE_LINUX' }
......
......@@ -222,14 +222,14 @@ function _M:dumpToJSON(js, bypass, nosub)
c.spell = {
spellpower = self:combatSpellpower(),
crit = self:combatSpellCrit(),
crit = string.format("%d%%", self:combatSpellCrit()),
speed = self:combatSpellSpeed(),
cooldown = (self.spell_cooldown_reduction or 0) * 100,
}
c.mind = {
mindpower = self:combatMindpower(),
crit = self:combatMindCrit(),
crit = string.format("%d%%", self:combatMindCrit()),
speed = self:combatMindSpeed(),
}
......@@ -242,6 +242,15 @@ function _M:dumpToJSON(js, bypass, nosub)
end
end
c.damage_pen = {}
if self.resists_pen.all then c.damage_pen.all = string.format("%d%%", self.resists_pen.all) end
for i, t in ipairs(DamageType.dam_def) do
if self.resists_pen[DamageType[t.type]] and self.resists_pen[DamageType[t.type]] ~= 0 then
c.damage_pen[t.name] = string.format("%d%%", self.resists_pen[DamageType[t.type]] + (self.resists_pen.all or 0))
end
end
-------------------------------------------------------------------
-- Defense
-------------------------------------------------------------------
......
......@@ -18,7 +18,7 @@ solution "TEngine"
"src/physfs",
"src/physfs/zlib123",
"src/bzip2",
"/opt/SDL-2.0/include/SDL2/",
"/home/nicolas/local/include/SDL2/",
"/usr/include/GL",
}
if _OPTIONS.lua == "default" then includedirs{"src/lua"}
......
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