Makes TTAN Non-Meltable. It had a weakness to DEST so I made it so it would push DEST if it comes in contact with it. I also made it resistant to VIRS by making it create a soap particle if it comes in contact with it, then it deletes the soap particle afterward.
elements.property(elements.DEFAULT_PT_TTAN, "HeatConduct" , 0)
elements.property(elements.DEFAULT_PT_TTAN, "Hardness" , 0)
elements.property(elements.DEFAULT_PT_TTAN, "Weight" , 10000)
function ttan1(i,x,y,s,n)
local type = tpt.get_property("temp", x, y)
if type > 300 then
tpt.set_property("temp", -math.huge, x, y)
end
tpt.set_property("temp", -math.huge, x, y)
local type = tpt.get_property("type", x + math.random(-3,3), y + math.random(-3,3))
if type == tpt.el.dest.id then
sim.gravMap(x/4, y/4, -256)
end
local type = tpt.get_property("type", x + math.random(-1,1), y + math.random(-1,1))
if type == tpt.el.virs.id or type == tpt.el.vrss.id or type == tpt.el.vrsg.id then
tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'soap')
end
local rx,ry = x + math.random(-1,1), y + math.random(-1,1)
local type = tpt.get_property("type", rx, ry)
if type == tpt.el.soap.id then
tpt.delete(rx, ry)
end
sim.can_move(elements.DEFAULT_PT_DEST, elements.DEFAULT_PT_TTAN, 0)
end
tpt.element_func(ttan1,tpt.el.ttan.id)
In other words, you basically made a copy of DMND that can contain pressure. However, unlike DMND, ACID and CAUS will still chew through it.
Still, that's a pretty good element.
Actually I set the hardness to 0 meaning acid and caus do nothing to it
Very nice! The effect is really cool with DEST when you have gravity grid or fancy display mode on.
Ya, that is my favorite effect too
local rx,ry = x + math.random(-1,1), y + math.random(-1,1)
local type = tpt.get_property("type", rx, ry)
if type == tpt.el.soap.id then
tpt.delete(rx, ry)
end
Thank you for all the suggestions Jacob1
I actually made an element that breaks it. Should I Add it just for Fun or does that defeat the purpose too much?