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

added some talent images

git-svn-id: http://svn.net-core.org/repos/t-engine4@1012 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4a5f4aa8
No related branches found
No related tags found
No related merge requests found
Showing
with 14 additions and 1 deletion
game/modules/tome/data/gfx/talents/blank.png

459 B

game/modules/tome/data/gfx/talents/chainlightning.png

1.76 KiB

game/modules/tome/data/gfx/talents/dig.png

1.38 KiB

game/modules/tome/data/gfx/talents/fireflash.png

1.78 KiB

game/modules/tome/data/gfx/talents/flame.png

1.47 KiB

game/modules/tome/data/gfx/talents/flameshock.png

1.52 KiB

game/modules/tome/data/gfx/talents/inferno.png

1.86 KiB

game/modules/tome/data/gfx/talents/lightning.png

1.2 KiB

game/modules/tome/data/gfx/talents/stoneskin.png

1.66 KiB

game/modules/tome/data/gfx/talents/stonewall.png

1.04 KiB

game/modules/tome/data/gfx/talents/strike.png

1.23 KiB

game/modules/tome/data/gfx/talents/thunderstorm.png

1.71 KiB

game/modules/tome/data/gfx/talents/windwall.png

1.25 KiB

......@@ -22,6 +22,19 @@ newTalent = function(t)
assert(engine.interface.ActorTalents.talents_types_def[t.type[1]], "No talent category "..tostring(t.type[1]).." for talent "..t.name)
if engine.interface.ActorTalents.talents_types_def[t.type[1]].generic then t.generic = true end
if engine.interface.ActorTalents.talents_types_def[t.type[1]].no_silence then t.no_silence = true end
if t.image then
if type(t.image) == "boolean" then
local name = t.name:gsub(" ", ""):lower()
t.image = core.display.loadImage("data/gfx/talents/"..name..".png")
assert(t.image, "talent auto image requested by not found for: "..t.name)
else
t.image = core.display.loadImage("data/gfx/talents/"..t.image..".png")
assert(t.image, "talent image requested by not found for: "..t.name)
end
t.image_texture = t.image:glTexture()
end
return oldNewTalent(t)
end
......
......@@ -18,7 +18,7 @@
-- darkgod@te4.org
newTalent{
name = "Flame",
name = "Flame", image = true,
type = {"spell/fire",1},
require = spells_req1,
points = 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