Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Caesium
- caes = elements.allocate("RAD", "CAES") --properties
- elements.element(caes, elements.element(elements.DEFAULT_PT_COAL))
- elements.property(caes, "Name", "CAES")
- elements.property(caes, "Description", "Caesium. Highly reactive and will violently explode in water.")
- elements.property(caes, "Colour", 0xD8D8D8)
- elements.property(caes, "MenuSection", 10)
- elements.property(caes, "Gravity", 0)
- elements.property(caes, "Properties", elements.ST_SOLID + elements.TYPE_SOLID + elements.PROP_DEADLY)
- elements.property(caes, "Flammable", 0)
- elements.property(caes, "Explosive", 0)
- function propc(i,x,y,s,n)
- local ctemp = tpt.get_property("temp", i) -- melt into Liquid Caesium
- if ctemp > 301.59 then
- tpt.set_property("type", "lcas", i)
- end
- if math.random(1, 7500) == 1 then -- decay
- local ran = math.random(-20,20)
- local ran2 = math.random(-20,0)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- tpt.set_property("life", 10000, i)
- if math.abs(ran) + math.abs(ran2) > 10 then
- local ran3 = math.random(1,4)
- if ran3 == 1 then
- tpt.set_property("type", "elec", i)
- end
- if ran3 == 2 then
- tpt.set_property("type", "phot", i)
- end
- if ran3 == 3 then
- tpt.set_property("type", "prot", i)
- end
- if ran3 == 4 then
- tpt.set_property("type", "neut", i)
- end
- end
- end
- local colx = math.random(-1,1) -- react with water
- local coly = math.random(-1,1)
- local coltype = tpt.get_property("type", x+colx, y+coly)
- local temp = tpt.get_property("temp", i)
- if coltype == elements.DEFAULT_PT_WATR then
- if math.random(0,1) == 1 then
- local ran = x+math.random(-1,1)
- local ran2 = y+math.random(-1,1)
- tpt.create(ran, ran2, "mort")
- tpt.set_property("vx", math.random(-25,25) , ran)
- tpt.set_property("vy", math.random(-25,25) , ran2)
- end
- tpt.set_pressure(x,y,10,10,100)
- tpt.set_property("life", 10000, i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- tpt.set_property("temp", temp + 1000 ,i)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.set_property("type", "hygn", coltype)
- local rand = math.random(1,4)
- if rand == 1 then
- tpt.set_property("type", "elec", i)
- end
- if rand == 2 then
- tpt.set_property("type", "phot", i)
- end
- if rand == 3 then
- tpt.set_property("type", "prot", i)
- end
- if rand == 4 then
- tpt.set_property("type", "neut", i)
- end
- end
- if coltype == elements.DEFAULT_PT_DSTW then
- if math.random(0,1) == 1 then
- local ran = x+math.random(-1,1)
- local ran2 = y+math.random(-1,1)
- tpt.create(ran, ran2, "mort")
- tpt.set_property("vx", math.random(-25,25) , ran)
- tpt.set_property("vy", math.random(-25,25) , ran2)
- end
- tpt.set_pressure(x,y,10,10,100)
- tpt.set_property("life", 10000, i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- local rand = math.random(1,4)
- if rand == 1 then
- tpt.set_property("type", "elec", i)
- end
- if rand == 2 then
- tpt.set_property("type", "phot", i)
- end
- if rand == 3 then
- tpt.set_property("type", "prot", i)
- end
- if rand == 4 then
- tpt.set_property("type", "neut", i)
- end
- tpt.set_property("temp", temp + 1000 ,i)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.set_property("type", "hygn", coltype)
- end
- if coltype == elements.DEFAULT_PT_SLTW then
- if math.random(0,1) == 1 then
- local ran = x+math.random(-1,1)
- local ran2 = y+math.random(-1,1)
- tpt.create(ran, ran2, "mort")
- tpt.set_property("vx", math.random(-25,25) , ran)
- tpt.set_property("vy", math.random(-25,25) , ran2)
- end
- tpt.set_pressure(x,y,10,10,100)
- tpt.set_property("life", 10000, i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- local rand = math.random(1,4)
- if rand == 1 then
- tpt.set_property("type", "elec", i)
- end
- if rand == 2 then
- tpt.set_property("type", "phot", i)
- end
- if rand == 3 then
- tpt.set_property("type", "prot", i)
- end
- if rand == 4 then
- tpt.set_property("type", "neut", i)
- end
- tpt.set_property("temp", temp + 1000 ,i)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.set_property("type", "hygn", coltype)
- end
- end
- tpt.element_func(propc, tpt.element("caes"))
- elements.property(caes, "HighTemperature", 1938)
- -- Liquid Caesium
- Lcas = elements.allocate("RAD", "LCAS") -- properties
- elements.element(Lcas, elements.element(elements.DEFAULT_PT_EXOT))
- elements.property(Lcas, "Name", "LCAS")
- elements.property(Lcas, "Description", "Liquid Caesium. Highly reactive and will violently explode in water.")
- elements.property(Lcas, "Colour", 0xD9D9D9)
- elements.property(Lcas, "MenuSection", 10)
- elements.property(Lcas, "Gravity", 1)
- elements.property(Lcas, "Weight", 10)
- elements.property(Lcas, "Flammable", 0)
- elements.property(Lcas, "Explosive", 0)
- elements.property(caes, "Properties", elements.ST_LIQUID + elements.TYPE_LIQUID + elements.PROP_DEADLY)
- function proplcas(i,x,y,s,n)
- local ctemp = tpt.get_property("temp", i) -- decay
- if math.random(1, 7500) == 1 then
- local ran = math.random(-20,20)
- local ran2 = math.random(-20,0)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.set_property("life", 10000, i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- if math.abs(ran) + math.abs(ran2) > 10 then
- local ran3 = math.random(1,4)
- if ran3 == 1 then
- tpt.set_property("type", "elec", i)
- end
- if ran3 == 2 then
- tpt.set_property("type", "phot", i)
- end
- if ran3 == 3 then
- tpt.set_property("type", "prot", i)
- end
- if ran3 == 4 then
- tpt.set_property("type", "neut", i)
- end
- end
- end
- local colx = math.random(-1,1) -- react w/ water
- local coly = math.random(-1,1)
- local coltype = tpt.get_property("type", x+colx, y+coly)
- local temp = tpt.get_property("temp", i)
- if coltype == elements.DEFAULT_PT_WATR then
- if math.random(0,1) == 1 then
- local ran = x+math.random(-1,1)
- local ran2 = y+math.random(-1,1)
- tpt.create(ran, ran2, "mort")
- tpt.set_property("vx", math.random(-25,25) , ran)
- tpt.set_property("vy", math.random(-25,25) , ran2)
- end
- tpt.set_pressure(x,y,10,10,100)
- tpt.set_property("life", 10000, i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- local rand = math.random(1,4)
- if rand == 1 then
- tpt.set_property("type", "elec", i)
- end
- if rand == 2 then
- tpt.set_property("type", "phot", i)
- end
- if rand == 3 then
- tpt.set_property("type", "prot", i)
- end
- if rand == 4 then
- tpt.set_property("type", "neut", i)
- end
- tpt.set_property("temp", temp + 1000 ,i)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.set_property("type", "hygn", coltype)
- end
- if coltype == elements.DEFAULT_PT_DSTW then
- if math.random(0,1) == 1 then
- local ran = x+math.random(-1,1)
- local ran2 = y+math.random(-1,1)
- tpt.create(ran, ran2, "mort")
- tpt.set_property("vx", math.random(-25,25) , ran)
- tpt.set_property("vy", math.random(-25,25) , ran2)
- end
- tpt.set_pressure(x,y,10,10,100)
- tpt.set_property("life", 10000, i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- local rand = math.random(1,4)
- if rand == 1 then
- tpt.set_property("type", "elec", i)
- end
- if rand == 2 then
- tpt.set_property("type", "phot", i)
- end
- if rand == 3 then
- tpt.set_property("type", "prot", i)
- end
- if rand == 4 then
- tpt.set_property("type", "neut", i)
- end
- tpt.set_property("temp", temp + 1000 ,i)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.set_property("type", "hygn", coltype)
- end
- if coltype == elements.DEFAULT_PT_SLTW then
- if math.random(0,1) == 1 then
- local ran = x+math.random(-1,1)
- local ran2 = y+math.random(-1,1)
- tpt.create(ran, ran2, "mort")
- tpt.set_property("vx", math.random(-25,25) , ran)
- tpt.set_property("vy", math.random(-25,25) , ran2)
- end
- tpt.set_pressure(x,y,10,10,100)
- tpt.set_property("life", 10000, i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- local rand = math.random(1,4)
- if rand == 1 then
- tpt.set_property("type", "elec", i)
- end
- if rand == 2 then
- tpt.set_property("type", "phot", i)
- end
- if rand == 3 then
- tpt.set_property("type", "prot", i)
- end
- if rand == 4 then
- tpt.set_property("type", "neut", i)
- end
- tpt.set_property("temp", temp + 1000 ,i)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.set_property("type", "hygn", coltype)
- end
- end
- elements.property(Lcas, "LowTemperature", 200) -- turn into Solid Caesium
- tpt.element_func(proplcas, tpt.element("lcas"))
- elements.property(Lcas, "LowTemperatureTransition", caes)
- -- Palladium
- -- notes: Asorbs hydrogen, acid resistant, melts at 1833.15, solidifies at about 1700
- Pald = elements.allocate("STB", "PALD") --properties
- elements.element(Pald, elements.element(elements.DEFAULT_PT_GLAS))
- elements.property(Pald, "Name", "PALD")
- elements.property(Pald, "Description", "Palladium. Adsorbs Hydrogen and doesn't corrode.")
- elements.property(Pald, "Colour", 0xFFABBBBF)
- elements.property(Pald, "MenuSection", 9)
- elements.property(Pald, "Gravity", 0)
- elements.property(Pald, "Properties", elements.ST_SOLID + elements.TYPE_SOLID + elements.PROP_CONDUCTS)
- elements.property(Pald, "Flammable", 0)
- elements.property(Pald, "Explosive", 0)
- elements.property(Pald, "HighTemperature", 1833.15)
- function propp(i,x,y,s,nt)
- local life = tpt.get_property("life", i)
- if life >= 1 then
- tpt.set_property("life", 0 , i)
- end
- -- adsorbs hydrogen
- local collx = math.random(-1,1)
- local colly = math.random(-1,1)
- hygn = tpt.get_property("type", x+collx, y+colly)
- if hygn == elements.DEFAULT_PT_HYGN then
- tpt.delete(x+collx, y+colly)
- end
- end
- tpt.element_func(propp, tpt.element("pald"))
- -- Radium
- -- notes: Emits light and decays, soft and a white to black colour. Radium corrodes in water. Dangerous to humans. Melts at 973.15 boils at 1413.15.
- Radi = elements.allocate("RAD", "RADI") --properties
- elements.element(Radi, elements.element(elements.DEFAULT_PT_TTAN))
- elements.property(Radi, "Name", "RADI")
- elements.property(Radi, "Description", "Radium. Emits light and slowly corrodes in water.")
- elements.property(Radi, "Colour", 0xFFFFFFFF)
- elements.property(Radi, "MenuSection", 10)
- elements.property(Radi, "Gravity", 0)
- elements.property(Radi, "Properties", elements.ST_SOLID + elements.TYPE_SOLID + elements.PROP_DEADLY)
- elements.property(Radi, "Flammable", 0)
- elements.property(Radi, "Explosive", 0)
- elements.property(Radi, "HighTemperature", 1413.15)
- function propr(i,x,y,s,n)
- local ratemp = tpt.get_property("temp",i)
- if ratemp > 973.15 then
- tpt.set_property("type","lrad",i)
- end
- if math.random(0,100) == 1 then -- create photons and decay
- local mathx = math.random(-1,1)
- local mathy = math.random(-1,1)
- tpt.create(x+mathx, y+mathy, "PHOT")
- tpt.set_property("life",680,mathx,mathy)
- if(math.random(0,7500) == 1) then
- tpt.set_property("life", 10000, i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- tpt.set_property("type", "neut", i)
- end
- end
- local nx = math.random(-1,1) -- react w/ water
- local nx2 = math.random(-1,1)
- watr = tpt.get_property("type", x+nx, y+nx2)
- if watr == elements.DEFAULT_PT_WATR then
- if math.random(0,7500) == 1 then
- tpt.set_property("type","exot",i)
- end
- end
- if watr == elements.DEFAULT_PT_DSTW then
- if math.random(0,7500) == 1 then
- tpt.set_property("type","exot",i)
- end
- end
- if watr == elements.DEFAULT_PT_SLTW then
- if math.random(0,7500) == 1 then
- tpt.set_property("type","exot",i)
- end
- end
- end
- tpt.element_func(propr, tpt.element("radi"))
- -- Liquid Radium
- -- notes:
- Lrad = elements.allocate("RAD", "Lrad") --properties
- elements.element(Lrad, elements.element(elements.DEFAULT_PT_MERC))
- elements.property(Lrad, "Name", "LRAD")
- elements.property(Lrad, "Description", "Liquid Radium. Emits light and slowly corrodes in water.")
- elements.property(Lrad, "Colour", 0xFFFFFFFF)
- elements.property(Lrad, "MenuSection", 10)
- elements.property(Lrad, "Gravity", 1)
- elements.property(Lrad, "Properties", elements.ST_LIQUID + elements.TYPE_LIQUID + elements.PROP_DEADLY)
- elements.property(Lrad, "Flammable", 0)
- elements.property(Lrad, "Explosive", 0)
- elements.property(Lrad, "HighTemperature", 1413.15)
- elements.property(Lrad, "LowTemperature", 1300)
- elements.property(Lrad, "LowTemperatureTransition", Radi)
- function proplr(i,x,y,s,n)
- local lrtemp = tpt.get_property("temp",i)
- tpt.set_property("temp", lrtemp + 973.15, i)
- if math.random(0,100) == 1 then -- decay and create photons
- local mathx = math.random(-1,1)
- local mathy = math.random(-1,1)
- tpt.create(x+mathx, y+mathy, "PHOT")
- tpt.set_property("life",680,x+mathx, y+mathy)
- if(math.random(0,7500) == 1) then
- tpt.set_property("life", 10000, i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- tpt.set_property("type", "neut", i)
- end
- end
- local nx = math.random(-1,1) -- react w/ water
- local nx2 = math.random(-1,1)
- watr = tpt.get_property("type", x+nx, y+nx2)
- if watr == elements.DEFAULT_PT_WATR then
- if math.random(0,7500) == 1 then
- tpt.set_property("type","exot",i)
- end
- end
- if watr == elements.DEFAULT_PT_DSTW then
- if math.random(0,7500) == 1 then
- tpt.set_property("type","exot",i)
- end
- end
- if watr == elements.DEFAULT_PT_SLTW then
- if math.random(0,7500) == 1 then
- tpt.set_property("type","exot",i)
- end
- end
- end
- tpt.element_func(proplr, tpt.element("lrad"))
- -- Magnesium
- -- notes: Burns with fire or plasma, flame is very hot. Melts (or burns) at 923.15. Boils at 1380.15. Burns with white flame. Creates hydrogen with acid.
- Magn = elements.allocate("STB", "MAGN") --properties
- elements.element(Magn, elements.element(elements.DEFAULT_PT_GLAS))
- elements.property(Magn, "Name", "MAGN")
- elements.property(Magn, "Description", "Magnesium. Burns with an intense flame.")
- elements.property(Magn, "Colour", 0x586165)
- elements.property(Magn, "MenuSection", 9)
- elements.property(Magn, "Gravity", 0)
- elements.property(Magn, "Properties", elements.ST_SOLID + elements.TYPE_SOLID)
- elements.property(Magn, "Flammable", 0)
- elements.property(Magn, "Explosive", 0)
- elements.property(Magn, "HighTemperature", 100000)
- function propmag(i,x,y,s,n)
- local tempm = tpt.get_property("temp", i) -- burn with temperature.
- if tempm > 1380.15 and math.random(0,10) == 1 then
- tpt.set_property("life", 500, i)
- tpt.set_property("temp", 6500, i)
- local magran = math.random(1,3)
- if magran == 1 then
- tpt.set_property("type", "PLSM", i)
- end
- if magran == 2 then
- if math.random(0,10) == 1 then
- tpt.set_property("vx", math.random(-5,5), i)
- tpt.set_property("vy", math.random(-5,5), i)
- tpt.set_property("life", 250, i)
- tpt.set_property("type", "MORT", i)
- else
- tpt.set_property("type", "PLSM", i)
- end
- end
- if magran == 3 then
- tpt.set_property("life", 1000, i)
- tpt.set_property("type", "PLSM", i)
- end
- end
- local magx = math.random(-1,1)
- local magy = math.random(-1,1)
- local acid = tpt.get_property("type", x+magx, y+magy) -- react with acid
- if acid == elements.DEFAULT_PT_ACID then
- tpt.set_property("type", "HYGN", i)
- tpt.set_property("type", "HYGN", acid)
- end
- end
- tpt.element_func(propmag, tpt.element("magn"))
- -- Francium
- -- notes: Violently explodes in water.
- Fran = elements.allocate("RAD", "Fran") --properties
- elements.element(Fran, elements.element(elements.DEFAULT_PT_BCOL))
- elements.property(Fran, "Name", "FRAN")
- elements.property(Fran, "Description", "Francium. Highly unstable and will decay within seconds. Do not place in water.")
- elements.property(Fran, "Colour", 0xC0C0C0)
- elements.property(Fran, "MenuSection", 10)
- elements.property(Fran, "Weight", 100)
- elements.property(Fran, "Gravity", 1)
- elements.property(Fran, "Properties", elements.ST_SOLID + elements.TYPE_SOLID + elements.PROP_DEADLY)
- elements.property(Fran, "Flammable", 0)
- elements.property(Fran, "Explosive", 0)
- elements.property(Fran, "HighTemperature", 100000)
- function propfr(i,x,y,s,n)
- if math.random(0,25) == 1 then
- local frdecay = math.random(1,7) -- decay
- local frtemp = tpt.get_property("temp", i)
- tpt.set_property("life", math.random(500,1000),i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- if frdecay == 1 then
- tpt.set_property("temp", frtemp + 50000 , i)
- tpt.set_property("type", "PHOT", i)
- end
- if frdecay == 2 then
- tpt.set_property("type", "PHOT", i)
- end
- if frdecay == 3 then
- tpt.set_property("type", "PROT", i)
- end
- if frdecay == 4 then
- tpt.set_property("type", "NEUT", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "NEUT", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "NBLE", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "PROT", i)
- end
- end
- local col = math.random(-1,1) -- react with water
- local col2 = math.random(-1,1)
- colltype = tpt.get_property("type", x+col, y+col2)
- if colltype == elements.DEFAULT_PT_WATR then
- if math.random(0,1) == 1 then
- local ran = x+math.random(-1,1)
- local ran2 = y+math.random(-1,1)
- tpt.create(ran, ran2, "mort")
- tpt.set_property("vx", math.random(-25,25) , ran)
- tpt.set_property("vy", math.random(-25,25) , ran2)
- end
- local frdecay = math.random(1,7)
- local frtemp = tpt.get_property("temp", i)
- tpt.set_property("type", "PHOT", colltype)
- tpt.set_property("life", math.random(500,1000),i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "thdr")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "caes")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "magn")
- tpt.set_pressure(x,y,1,1,200)
- if frdecay == 1 then
- tpt.set_property("temp", frtemp + 50000 , i)
- tpt.set_property("type", "PHOT", i)
- end
- if frdecay == 2 then
- tpt.set_property("type", "PHOT", i)
- end
- if frdecay == 3 then
- tpt.set_property("type", "PROT", i)
- end
- if frdecay == 4 then
- tpt.set_property("type", "NEUT", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "NEUT", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "NBLE", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "PROT", i)
- end
- end
- if colltype == elements.DEFAULT_PT_DSTW then
- if math.random(0,1) == 1 then
- local ran = x+math.random(-1,1)
- local ran2 = y+math.random(-1,1)
- tpt.create(ran, ran2, "mort")
- tpt.set_property("vx", math.random(-25,25) , ran)
- tpt.set_property("vy", math.random(-25,25) , ran2)
- end
- local frdecay = math.random(1,7)
- local frtemp = tpt.get_property("temp", i)
- tpt.set_property("life", math.random(500,1000),i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "thdr")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "caes")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "magn")
- tpt.set_pressure(x,y,10,10,200)
- if frdecay == 1 then
- tpt.set_property("temp", frtemp + 50000 , i)
- tpt.set_property("type", "PHOT", i)
- end
- if frdecay == 2 then
- tpt.set_property("type", "PHOT", i)
- end
- if frdecay == 3 then
- tpt.set_property("type", "PROT", i)
- end
- if frdecay == 4 then
- tpt.set_property("type", "NEUT", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "NEUT", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "NBLE", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "PROT", i)
- end
- end
- if colltype == elements.DEFAULT_PT_SLTW then
- if math.random(0,1) == 1 then
- local ran = x+math.random(-1,1)
- local ran2 = y+math.random(-1,1)
- tpt.create(ran, ran2, "mort")
- tpt.set_property("vx", math.random(-25,25) , ran)
- tpt.set_property("vy", math.random(-25,25) , ran2)
- end
- local frdecay = math.random(1,7)
- local frtemp = tpt.get_property("temp", i)
- tpt.set_property("life", math.random(500,1000),i)
- tpt.set_property("vx", math.random(-25,25), i)
- tpt.set_property("vy", math.random(-25,25), i)
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "nble")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "hygn")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "plsm")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "thdr")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "caes")
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), "magn")
- tpt.set_pressure(x,y,10,10,200)
- if frdecay == 1 then
- tpt.set_property("temp", frtemp + 50000 , i)
- tpt.set_property("type", "PHOT", i)
- end
- if frdecay == 2 then
- tpt.set_property("type", "PHOT", i)
- end
- if frdecay == 3 then
- tpt.set_property("type", "PROT", i)
- end
- if frdecay == 4 then
- tpt.set_property("type", "NEUT", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "NEUT", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "NBLE", i)
- end
- if frdecay == 5 then
- tpt.set_property("type", "PROT", i)
- end
- end
- end
- tpt.element_func(propfr, tpt.element("Fran"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement