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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@5394 51575b47-30f0-44d4-a5cc-537603b46e54
parent 63385e12
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ return { generator = function()
return {
trail = 0,
life = 10,
size = 38, sizev = 0, sizea = 0,
size = 38 * (size_factor or 1), sizev = 0, sizea = 0,
x = 0, xv = 0, xa = 0,
y = 0, yv = 0, ya = 0,
......
......@@ -44,6 +44,8 @@ void main(void)
c.a *= aadjust;
if (l <= 1.0) c.a = max(0.15, c.a);
c.rgb *= color;
gl_FragColor = c;
}
......@@ -73,6 +73,16 @@ newTalent{
mana = 5,
no_npc_use = true,
no_unlearn_last = true,
on_learn = function(self, t)
if not self:knowTalent(self.T_CREATE_ALCHEMIST_GEMS) then
self:learnTalent(self.T_CREATE_ALCHEMIST_GEMS, true)
end
end,
on_unlearn = function(self, t)
if self:getTalentLevelRaw(t) == 0 and self:knowTalent(self.T_CREATE_ALCHEMIST_GEMS) then
self:unlearnTalent(self.T_CREATE_ALCHEMIST_GEMS)
end
end,
action = function(self, t)
local d d = self:showEquipInven("Try to extract gems from which metallic item?", function(o) return o.metallic and (o.material_level or 1) <= self:getTalentLevelRaw(t) end, function(o, inven, item)
if not o then return end
......
......@@ -83,7 +83,7 @@ game:onLevelLoad("wilderness-1", function(wzone, level)
noise = "fbm_perlin",
floor = "GRASS",
wall = "TREE",
up = "GRASS_UP4",
up = "GRASS",
down = "GRASS_DOWN6",
door = "GRASS",
do_ponds = {
......
......@@ -89,7 +89,7 @@ game:onLevelLoad("wilderness-1", function(wzone, level)
noise = "fbm_perlin",
floor = "JUNGLE_GRASS",
wall = "JUNGLE_TREE",
up = "JUNGLE_GRASS_UP4",
up = "JUNGLE_GRASS",
down = "JUNGLE_GRASS_DOWN6",
door = "JUNGLE_GRASS",
do_ponds = {
......
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