tpt.el.wind.name='EWAT'
tpt.el.wind.description='Angry water.'
tpt.el.wind.color=0x84BFD5
tpt.el.wind.menusection=4
tpt.el.wind.menu=1
tpt.el.wind.enabled=1
tpt.el.wind.weight=-1
types={'hygn','oxyg'}
math.randomseed(os.time())
function ewat(i,x,y,s,n)
for n=1,2 do
tpt.parts[i].x=tpt.get_property('x',i)+math.random(-6,6)
tpt.parts[i].y=tpt.get_property('y',i)+math.random(-6,6)
for x2=-7,7 do
for y2=-math.sqrt((49)-(x2^2)),math.sqrt((49)-(x2^2)) do
tpt.create(x+x2,y+y2,types[math.random(1,2)])
tpt.set_property('life',4,x+x2,y+y2)
tpt.set_property('temp',-10000+273.15,x+x2,y+y2)
if tpt.get_property('type',x+x2,y+y2)~=0 and tpt.get_property('type',x+x2,y+y2)~=tpt.el.oxyg.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.hygn.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.wind.id then
tpt.create(x+x2,y+y2,'watr')
tpt.set_property('life',10,x+x2,y+y2)
end
end
end
end
end
tpt.element_func(ewat,tpt.el.wind.id)
tpt.el.wind.name='RAGE'
tpt.el.wind.description='Rage?'
tpt.el.wind.color=0x800080
tpt.el.wind.menusection=3
tpt.el.wind.menu=1
tpt.el.wind.enabled=1
tpt.el.wind.weight=-1
types={'fire','thrm'}
math.randomseed(os.time())
function rage(i,x,y,s,n)
for n=1,2 do
tpt.parts[i].x=tpt.get_property('x',i)+math.random(-6,6)
tpt.parts[i].y=tpt.get_property('y',i)+math.random(-6,6)
for x2=-7,7 do
for y2=-math.sqrt((49)-(x2^2)),math.sqrt((49)-(x2^2)) do
tpt.create(x+x2,y+y2,types[math.random(1,2)])
tpt.set_property('life',4,x+x2,y+y2)
tpt.set_property('temp',10000+273.15,x+x2,y+y2)
if tpt.get_property('type',x+x2,y+y2)~=0 and tpt.get_property('type',x+x2,y+y2)~=tpt.el.thrm.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.fire.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.wind.id then
tpt.create(x+x2,y+y2,'rage')
tpt.set_property('life',10,x+x2,y+y2)
end
end
end
end
end
tpt.element_func(rage,tpt.el.wind.id)