Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --button
- local a = "1"
- local b = Window:new(-1,-1,200,200)
- local c = Label:new(10,5,140,16, "JWARD's Mod options")
- local d = Label:new(10,25,121,16, "more to come")
- local e = Label:new(10,85,170,16,"#")
- local f = Label:new(135,5,88,16, "#")
- local g = Label:new(10,95,180,16, "#")
- local h = Label:new(10,105,170,16,"#")
- local i = Label:new(10,125,180,16,"#")
- local j = Label:new(10,135,170,16,"antisave breaking")
- local Close = Button:new(10, 174, 60, 16, "Close")
- local on = Button:new(10, 150, 15, 15, "on")
- local off = Button:new(35, 150, 15, 15, "off")
- Close:action(function() interface.closeWindow(b) end)
- b:onTryExit(function() interface.closeWindow(b) end)
- --on off old save option thingy
- on:action(
- function()
- elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 0)
- elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.1)
- elements.property(elements.DEFAULT_PT_ACID, "Description", "Dissolves almost everything.")
- elements.property(elements.DEFAULT_PT_ACID, "Flammable", 40)
- elements.property(elements.DEFAULT_PT_INSL, "Hardness", 10)
- elements.property(elements.DEFAULT_PT_INSL, "Flammable", 7)
- elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 77)
- elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.DEFAULT_PT_NONE)
- elements.property(elements.DEFAULT_PT_WATR, "Hardness", 20)
- elements.property(elements.DEFAULT_PT_WATR, "Weight", 30)
- elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 20)
- elements.property(elements.DEFAULT_PT_DSTW, "Weight", 30)
- elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 20)
- elements.property(elements.DEFAULT_PT_SLTW, "Weight", 35)
- elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 20)
- elements.property(elements.DEFAULT_PT_BUBW, "Weight", 30)
- elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", elements.DEFAULT_PT_OIL)
- elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 0)
- elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0.001)
- elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", DEFAULT_PT_GAS)
- elements.property(elements.DEFAULT_PT_GAS, "HighTemperatureTransition", elements.DEFAULT_PT_FIRE)
- elements.property(elements.DEFAULT_PT_GAS, "Temperature", 273.15)
- elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 573)
- elements.property(elements.DEFAULT_PT_GAS, "HighPressure", 6)
- elements.property(elements.DEFAULT_PT_BCOL, "HighTemperatureTransition", NT)
- elements.property(elements.DEFAULT_PT_BCOL, "HighTemperature", ITL)
- elements.property(elements.DEFAULT_PT_COAL, "HighTemperatureTransition", NT)
- elements.property(elements.DEFAULT_PT_COAL, "HighTemperature", ITL)
- elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 333)
- elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
- elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", NT)
- elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", ITL)
- elements.property(elements.DEFAULT_PT_DESL, "Weight", 15)
- elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 2)
- end
- )
- off:action(
- function()
- elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 1.2)
- elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.62)
- elements.property(elements.DEFAULT_PT_ACID, "Description", "Bubbling caustic liquid.")
- elements.property(elements.DEFAULT_PT_ACID, "Flammable", 0)
- elements.property(elements.DEFAULT_PT_INSL, "Hardness", 0)
- elements.property(elements.DEFAULT_PT_INSL, "Flammable", 0)
- elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 76)
- elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.JWARD_PT_N2)
- elements.property(elements.DEFAULT_PT_WATR, "Hardness", 0.25)
- elements.property(elements.DEFAULT_PT_WATR, "Weight", 32)
- elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 0)
- elements.property(elements.DEFAULT_PT_DSTW, "Weight", 32)
- elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 0)
- elements.property(elements.DEFAULT_PT_SLTW, "Weight", 32)
- elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 0)
- elements.property(elements.DEFAULT_PT_BUBW, "Weight", 32)
- elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", 256)
- elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 573.15)
- elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0)
- elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", elements.DEFAULT_PT_OIL)
- elements.property(elements.DEFAULT_PT_GAS, "HighTemperatureTransition", NT)
- elements.property(elements.DEFAULT_PT_GAS, "Temperature", 583.15)
- elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 10000)
- elements.property(elements.DEFAULT_PT_BCOL, "HighTemperatureTransition", elements.JWARD_PT_COKE)
- elements.property(elements.DEFAULT_PT_BCOL, "HighTemperature", 773.15)
- elements.property(elements.DEFAULT_PT_COAL, "HighTemperatureTransition", elements.JWARD_PT_COKE)
- elements.property(elements.DEFAULT_PT_COAL, "HighTemperature", 773.15)
- elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 573.15)
- elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
- elements.property(elements.DEFAULT_PT_DESL, "HighTemperatureTransition", elements.JWARD_PT_DSLV)
- elements.property(elements.DEFAULT_PT_DESL, "HighTemperature", 473.15)
- elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", 255.15)
- elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
- elements.property(elements.DEFAULT_PT_DESL, "Weight", 12)
- elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 256)
- end
- )
- b:addComponent(Close);
- b:addComponent(on);
- b:addComponent(off);
- local Button1 = Button:new(613, 113, 15, 15, "JW", "Options for jward's mods")
- Button1:action(function() interface.showWindow(b) end)
- bb = Label:new(10,45,138,16, "#")
- cc = Label:new(10,55,60,16, "#")
- dd = Label:new(10,65,57,16, "#")
- b:addComponent(bb)
- b:addComponent(dd)
- b:addComponent(cc)
- b:addComponent(c)
- b:addComponent(d)
- b:addComponent(e)
- b:addComponent(f)
- b:addComponent(g)
- b:addComponent(h)
- b:addComponent(i)
- b:addComponent(j)
- interface.addComponent(Button1)
- local a1 = "2"
- local b1 = Window:new(-1,-1,200,200)
- local c1 = Label:new(10,5,80,16, "SECRET MODE")
- local d1 = Label:new(10,15,121,16, "Created By RadioActiveLua")
- local f1 = Label:new(135,5,88,16, ("RAM V."..a))
- local Close1 = Button:new(10, 174, 60, 16, "Close")
- local Start1 = Button:new(10, 194, 60, 16, "Enter")
- Close1:action(function() interface.closeWindow(b1) end)
- b1:onTryExit(function() interface.closeWindow(b1) end)
- b1:addComponent(Close1);
- --default editing
- elements.property(elements.DEFAULT_PT_ACID, "Flammable", 0)
- elements.property(elements.DEFAULT_PT_DMND, "MenuSection", 9)
- elements.property(elements.DEFAULT_PT_MORT, "MenuVisible", 1)
- elements.property(elements.DEFAULT_PT_MORT, "MenuSection", 8)
- elements.property(elements.DEFAULT_PT_INSL, "Hardness", 0)
- elements.property(elements.DEFAULT_PT_INSL, "Flammable", 0)
- elements.property(elements.DEFAULT_PT_LN2, "HighTemperature", 76)
- elements.property(elements.DEFAULT_PT_WATR, "Hardness", 0.25)
- elements.property(elements.DEFAULT_PT_DSTW, "Hardness", 0)
- elements.property(elements.DEFAULT_PT_SLTW, "Hardness", 0)
- elements.property(elements.DEFAULT_PT_BUBW, "Hardness", 0)
- elements.property(elements.DEFAULT_PT_WATR, "Weight", 32)
- elements.property(elements.DEFAULT_PT_DSTW, "Weight", 32)
- elements.property(elements.DEFAULT_PT_SLTW, "Weight", 32)
- elements.property(elements.DEFAULT_PT_BUBW, "Weight", 32)
- elements.property(elements.DEFAULT_PT_ACID, "Weight", 32)
- elements.property(elements.DEFAULT_PT_ACID, "Diffusion", 1.2)
- elements.property(elements.DEFAULT_PT_ACID, "Description", "Bubbling caustic liquid.")
- elements.property(elements.DEFAULT_PT_ACID, "Gravity", 0.62)
- elements.property(elements.DEFAULT_PT_DESL, "HighPressure", 256)
- --petrol
- local antifrzz = elements.allocate("JWARD", "AFRZ")
- local petrolgas = elements.allocate("JWARD", "PTLV")
- local petrol = elements.allocate("JWARD", "PTRL")
- elements.element(elements.JWARD_PT_PTRL, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_PTRL, "Name", "PTRL")
- elements.property(elements.JWARD_PT_PTRL, "Description", "Petrol. Highly flammable liquid.")
- elements.property(elements.JWARD_PT_PTRL, "Colour", 0x0A4A5C)
- elements.property(elements.JWARD_PT_PTRL, "MenuSection", SC_LIQUID)
- elements.property(elements.JWARD_PT_PTRL, "Gravity", 0.6)
- elements.property(elements.JWARD_PT_PTRL, "Flammable", 65)
- elements.property(elements.JWARD_PT_PTRL, "Explosive", 0)
- elements.property(elements.JWARD_PT_PTRL, "Loss", 0.8)
- elements.property(elements.JWARD_PT_PTRL, "AirLoss", 0.94)
- elements.property(elements.JWARD_PT_PTRL, "AirDrag", 0.02)
- elements.property(elements.JWARD_PT_PTRL, "Advection", 0.8)
- elements.property(elements.JWARD_PT_PTRL, "Weight", 12)
- elements.property(elements.JWARD_PT_PTRL, "Diffusion", 0)
- elements.property(elements.JWARD_PT_PTRL, "Meltable", 0)
- elements.property(elements.JWARD_PT_PTRL, "Hardness", 0)
- elements.property(elements.JWARD_PT_PTRL, "Falldown", 2)
- elements.property(elements.JWARD_PT_PTRL, "Properties", TYPE_LIQUID)
- elements.property(elements.JWARD_PT_PTRL, "State", ST_LIQUID)
- elements.property(elements.JWARD_PT_PTRL, "Temperature", 295.15)
- elements.property(elements.JWARD_PT_PTRL, "HeatConduct", 78)
- elements.property(elements.JWARD_PT_PTRL, "HighTemperature", 333.15)
- elements.property(elements.JWARD_PT_PTRL, "HighTemperatureTransition", elements.JWARD_PT_PTLV)
- elements.property(elements.JWARD_PT_PTRL, "LowTemperature", 225.15)
- elements.property(elements.JWARD_PT_PTRL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
- elements.element(elements.JWARD_PT_PTLV, elements.element(elements.DEFAULT_PT_HYGN))
- elements.property(elements.JWARD_PT_PTLV, "Name", "PTLV")
- elements.property(elements.JWARD_PT_PTLV, "Description", "petrol gas")
- elements.property(elements.JWARD_PT_PTLV, "Colour", 0x0A4A5C)
- elements.property(elements.JWARD_PT_PTLV, "MenuVisible", 0)
- elements.property(elements.JWARD_PT_PTLV, "Gravity", -0.02)
- elements.property(elements.JWARD_PT_PTLV, "Flammable", 100)
- elements.property(elements.JWARD_PT_PTLV, "Explosive", 1)
- elements.property(elements.JWARD_PT_PTLV, "Loss", 0.75)
- elements.property(elements.JWARD_PT_PTLV, "AirLoss", 0.97)
- elements.property(elements.JWARD_PT_PTLV, "AirDrag", 0.01)
- elements.property(elements.JWARD_PT_PTLV, "Advection", 1)
- elements.property(elements.JWARD_PT_PTLV, "Weight", 0)
- elements.property(elements.JWARD_PT_PTLV, "Diffusion", 0.7)
- elements.property(elements.JWARD_PT_PTLV, "Meltable", 0)
- elements.property(elements.JWARD_PT_PTLV, "Hardness", 0)
- elements.property(elements.JWARD_PT_PTLV, "Falldown", 0)
- elements.property(elements.JWARD_PT_PTLV, "Properties", TYPE_GAS)
- elements.property(elements.JWARD_PT_PTLV, "State", ST_GAS)
- elements.property(elements.JWARD_PT_PTLV, "Temperature", 343.15)
- elements.property(elements.JWARD_PT_PTLV, "HeatConduct", 80)
- elements.property(elements.JWARD_PT_PTLV, "LowTemperature", 333.14)
- elements.property(elements.JWARD_PT_PTLV, "LowTemperatureTransition", elements.JWARD_PT_PTRL)
- elements.element(elements.JWARD_PT_AFRZ, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_AFRZ, "Name", "AFRZ")
- elements.property(elements.JWARD_PT_AFRZ, "Description", "antifreeze, keeps your fuel nice and toasty. methnol")
- elements.property(elements.JWARD_PT_AFRZ, "Colour", 0x0C3F5B)
- elements.property(elements.JWARD_PT_AFRZ, "MenuSection", SC_LIQUID)
- elements.property(elements.JWARD_PT_AFRZ, "Gravity", 0.6)
- elements.property(elements.JWARD_PT_AFRZ, "Flammable", 65)
- elements.property(elements.JWARD_PT_AFRZ, "Explosive", 0)
- elements.property(elements.JWARD_PT_AFRZ, "Loss", 0.8)
- elements.property(elements.JWARD_PT_AFRZ, "AirLoss", 0.94)
- elements.property(elements.JWARD_PT_AFRZ, "AirDrag", 0.02)
- elements.property(elements.JWARD_PT_AFRZ, "Advection", 0.8)
- elements.property(elements.JWARD_PT_AFRZ, "Weight", 12)
- elements.property(elements.JWARD_PT_AFRZ, "Diffusion", 0)
- elements.property(elements.JWARD_PT_AFRZ, "Meltable", 0)
- elements.property(elements.JWARD_PT_AFRZ, "Hardness", 0)
- elements.property(elements.JWARD_PT_AFRZ, "Falldown", 2)
- elements.property(elements.JWARD_PT_AFRZ, "Properties", TYPE_LIQUID)
- elements.property(elements.JWARD_PT_AFRZ, "State", ST_LIQUID)
- elements.property(elements.JWARD_PT_AFRZ, "Temperature", 295.15)
- elements.property(elements.JWARD_PT_AFRZ, "HeatConduct", 78)
- function AFRZ(i,x,y,s,n)
- warm = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
- warm2 = tpt.get_property("temp",x,y)
- if warm == petrol and warm2 < 276 then
- tpt.set_property('temp', 296 ,x, y)
- end
- if warm == tpt.el.desl.id and warm2 < 276 then
- tpt.set_property('temp', 296 ,x, y)
- end
- if warm == BioDiesel and warm2 < 276 then
- tpt.set_property('temp', 296 ,x, y)
- end
- if warm == jetfuel and warm2 < 276 then
- tpt.set_property('temp', 296 ,x, y)
- end
- if warm == tpt.el.ice.id and warm2 < 276 then
- tpt.set_property('temp', 296 ,x, y)
- end
- end
- tpt.element_func(AFRZ, tpt.element('AFRZ'))
- --diesel & bio diesel
- local Dieselgas = elements.allocate("JWARD", "DSLV")
- local potash_lye = elements.allocate("JWARD", "PLYE")
- local cooking_oil = elements.allocate("JWARD", "COIL")
- local BioDiesel = elements.allocate("JWARD", "BDSL")
- elements.element(elements.JWARD_PT_DSLV, elements.element(elements.DEFAULT_PT_HYGN))
- elements.property(elements.JWARD_PT_DSLV, "Name", "DSLV")
- elements.property(elements.JWARD_PT_DSLV, "Description", "diesel gas")
- elements.property(elements.JWARD_PT_DSLV, "Colour", 0x440000)
- elements.property(elements.JWARD_PT_DSLV, "MenuVisible", 0)
- elements.property(elements.JWARD_PT_DSLV, "Gravity", -0.02)
- elements.property(elements.JWARD_PT_DSLV, "Flammable", 100)
- elements.property(elements.JWARD_PT_DSLV, "Explosive", 1)
- elements.property(elements.JWARD_PT_DSLV, "Loss", 0.75)
- elements.property(elements.JWARD_PT_DSLV, "AirLoss", 0.97)
- elements.property(elements.JWARD_PT_DSLV, "AirDrag", 0.01)
- elements.property(elements.JWARD_PT_DSLV, "Advection", 1)
- elements.property(elements.JWARD_PT_DSLV, "Weight", 0)
- elements.property(elements.JWARD_PT_DSLV, "Diffusion", 0.7)
- elements.property(elements.JWARD_PT_DSLV, "Meltable", 0)
- elements.property(elements.JWARD_PT_DSLV, "Hardness", 0)
- elements.property(elements.JWARD_PT_DSLV, "Falldown", 0)
- elements.property(elements.JWARD_PT_DSLV, "Properties", TYPE_GAS)
- elements.property(elements.JWARD_PT_DSLV, "State", ST_GAS)
- elements.property(elements.JWARD_PT_DSLV, "Temperature", 483.15)
- elements.property(elements.JWARD_PT_DSLV, "HeatConduct", 80)
- elements.property(elements.JWARD_PT_DSLV, "LowTemperature", 473.15)
- elements.property(elements.JWARD_PT_DSLV, "LowTemperatureTransition", elements.DEFAULT_PT_DESL)
- elements.element(elements.JWARD_PT_COIL, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_COIL, "Name", "COIL")
- elements.property(elements.JWARD_PT_COIL, "Description", "Cooking oil")
- elements.property(elements.JWARD_PT_COIL, "Colour", 0xA57214)
- elements.property(elements.JWARD_PT_COIL, "MenuSection", 7)
- elements.property(elements.JWARD_PT_COIL, "Gravity", 0.6)
- elements.property(elements.JWARD_PT_COIL, "Flammable", 1)
- elements.property(elements.JWARD_PT_COIL, "Explosive", 0)
- elements.property(elements.JWARD_PT_COIL, "Loss", 0.7)
- elements.property(elements.JWARD_PT_COIL, "AirLoss", 0.91)
- elements.property(elements.JWARD_PT_COIL, "AirDrag", 0.02)
- elements.property(elements.JWARD_PT_COIL, "Advection", 0.9)
- elements.property(elements.JWARD_PT_COIL, "Weight", 10)
- elements.property(elements.JWARD_PT_COIL, "Meltable", 0)
- elements.property(elements.JWARD_PT_COIL, "Hardness", 86)
- elements.property(elements.JWARD_PT_COIL, "Falldown", 2)
- elements.property(elements.JWARD_PT_COIL, "Properties", TYPE_LIQUID)
- elements.property(elements.JWARD_PT_COIL, "State", ST_LIQUID)
- elements.property(elements.JWARD_PT_COIL, "Temperature", 295.15)
- elements.property(elements.JWARD_PT_COIL, "HeatConduct", 100)
- function COIL(i,x,y,s,n)
- cx = math.random(-3,3)
- cy = math.random(-5,1)
- reaction = tpt.get_property("temp",x,y)
- bio = tpt.get_property("type",x + math.random(-2,2), y + math.random(-2,2))
- bioo = tpt.get_property("type",x + math.random(-2,2), y + math.random(-2,2))
- biooo = tpt.get_property("type",x + cy, y + cx)
- local noncatalyst = tpt.get_property("life",x,y)
- if reaction > 363.15 and biooo ~= true then
- tpt.delete(x,y)
- tpt.create(x + cx, y + cy, 'COIL')
- end
- if bio == potash_lye and bioo == antifrzz then
- tpt.parts[i].type = tpt.element('BDSL')
- end
- end
- tpt.element_func(COIL, tpt.element('COIL'))
- elements.element(elements.JWARD_PT_BDSL, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_BDSL, "Name", "BDSL")
- elements.property(elements.JWARD_PT_BDSL, "Description", "Bio Diesel. Made from cooking oil.")
- elements.property(elements.JWARD_PT_BDSL, "Colour", 0x331000)
- elements.property(elements.JWARD_PT_BDSL, "MenuSection", SC_LIQUID)
- elements.property(elements.JWARD_PT_BDSL, "Gravity", 0.6)
- elements.property(elements.JWARD_PT_BDSL, "Flammable", 35)
- elements.property(elements.JWARD_PT_BDSL, "Explosive", 0)
- elements.property(elements.JWARD_PT_BDSL, "Loss", 0.8)
- elements.property(elements.JWARD_PT_BDSL, "AirLoss", 0.94)
- elements.property(elements.JWARD_PT_BDSL, "AirDrag", 0.02)
- elements.property(elements.JWARD_PT_BDSL, "Advection", 0.8)
- elements.property(elements.JWARD_PT_BDSL, "Weight", 12)
- elements.property(elements.JWARD_PT_BDSL, "Diffusion", 0)
- elements.property(elements.JWARD_PT_BDSL, "Meltable", 0)
- elements.property(elements.JWARD_PT_BDSL, "Hardness", 0)
- elements.property(elements.JWARD_PT_BDSL, "Falldown", 2)
- elements.property(elements.JWARD_PT_BDSL, "Properties", TYPE_LIQUID)
- elements.property(elements.JWARD_PT_BDSL, "State", ST_LIQUID)
- elements.property(elements.JWARD_PT_BDSL, "Temperature", 295.15)
- elements.property(elements.JWARD_PT_BDSL, "HeatConduct", 99)
- function BDSL(i,x,y,s,n)
- findcoil = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
- if findcoil == cooking_oil then
- tpt.set_property('life', 2 ,x, y)
- end
- end
- tpt.element_func(BDSL, tpt.element('BDSL'))
- elements.element(elements.JWARD_PT_PLYE, elements.element(elements.DEFAULT_PT_BCOL))
- elements.property(elements.JWARD_PT_PLYE, "Name", "PLYE")
- elements.property(elements.JWARD_PT_PLYE, "Description", "potash lye")
- elements.property(elements.JWARD_PT_PLYE, "Colour", 0xCCCCCC)
- elements.property(elements.JWARD_PT_PLYE, "MenuSection", 8)
- elements.property(elements.JWARD_PT_PLYE, "Gravity", .35)
- elements.property(elements.JWARD_PT_PLYE, "Flammable", 0)
- elements.property(elements.JWARD_PT_PLYE, "Explosive", 0)
- elements.property(elements.JWARD_PT_PLYE, "Loss", 0.15)
- elements.property(elements.JWARD_PT_PLYE, "AirLoss", 0.96)
- elements.property(elements.JWARD_PT_PLYE, "AirDrag", 0.03)
- elements.property(elements.JWARD_PT_PLYE, "Advection", 0.4)
- elements.property(elements.JWARD_PT_PLYE, "Weight", 60)
- elements.property(elements.JWARD_PT_PLYE, "Diffusion", 0)
- elements.property(elements.JWARD_PT_PLYE, "Falldown", 1)
- elements.property(elements.JWARD_PT_PLYE, "Hardness", 0)
- elements.property(elements.JWARD_PT_PLYE, "HeatConduct", 62)
- elements.property(elements.JWARD_PT_PLYE, "Properties", elem.PROP_DEADLY)
- function PLYE(i,x,y,s,n)
- cy = math.random(-1,1)
- cx = math.random(-1,1)
- reaction = tpt.get_property("type",x+cx,y+cy)
- if reaction == tpt.el.acid.id then
- tpt.create(x, y + 2, 'hygn')
- tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'SLTW')
- tpt.delete(x,y)
- end
- end
- tpt.element_func(PLYE, tpt.element('PLYE'))
- --o0o NITROGEN o0o--
- local nitrogen = elements.allocate("JWARD", "N2")
- local Diazane = elements.allocate("JWARD", "N2H4")
- local DinitrogenTetroxide = elements.allocate("JWARD", "N2O4")
- local nitrous = elements.allocate("JWARD", "N2O")
- local need4speed = elements.allocate("JWARD", "LN2O")
- elements.element(elements.JWARD_PT_LN2O, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_LN2O, "Name", "LN2O")
- elements.property(elements.JWARD_PT_LN2O, "Description", "Liquid Nitrous Oxide. Burns very quickly and very hot.")
- elements.property(elements.JWARD_PT_LN2O, "Colour", 0x33C1F5)
- elements.property(elements.JWARD_PT_LN2O, "MenuSection", 7)
- elements.property(elements.JWARD_PT_LN2O, "Gravity", 0.8)
- elements.property(elements.JWARD_PT_LN2O, "Flammable", 6000)
- elements.property(elements.JWARD_PT_LN2O, "Explosive", 0)
- elements.property(elements.JWARD_PT_LN2O, "Loss", 0.5)
- elements.property(elements.JWARD_PT_LN2O, "AirLoss", 0.94)
- elements.property(elements.JWARD_PT_LN2O, "AirDrag", 0.03)
- elements.property(elements.JWARD_PT_LN2O, "Advection", 0.7)
- elements.property(elements.JWARD_PT_LN2O, "Weight", 43)
- elements.property(elements.JWARD_PT_LN2O, "Diffusion", 0)
- elements.property(elements.JWARD_PT_LN2O, "Meltable", 0)
- elements.property(elements.JWARD_PT_LN2O, "Hardness", 0)
- elements.property(elements.JWARD_PT_LN2O, "Falldown", 2)
- elements.property(elements.JWARD_PT_LN2O, "Properties", TYPE_LIQUID)
- elements.property(elements.JWARD_PT_LN2O, "State", ST_LIQUID)
- elements.property(elements.JWARD_PT_LN2O, "Temperature", 174)
- elements.property(elements.JWARD_PT_LN2O, "HeatConduct", 58)
- elements.property(elements.JWARD_PT_LN2O, "HighTemperature", 184)
- elements.property(elements.JWARD_PT_LN2O, "HighTemperatureTransition", elements.JWARD_PT_N2O)
- elements.element(elements.JWARD_PT_N2O, elements.element(elements.DEFAULT_PT_CO2))
- elements.property(elements.JWARD_PT_N2O, "Name", "N2O")
- elements.property(elements.JWARD_PT_N2O, "Description", "Nitrous Oxide. Highly flammable RACE CAR oxidizer!!!.")
- elements.property(elements.JWARD_PT_N2O, "Colour", 0x43DAFF)
- elements.property(elements.JWARD_PT_N2O, "MenuSection", 6)
- elements.property(elements.JWARD_PT_N2O, "Gravity", 0)
- elements.property(elements.JWARD_PT_N2O, "Flammable", 5500)
- elements.property(elements.JWARD_PT_N2O, "Explosive", 0)
- elements.property(elements.JWARD_PT_N2O, "Loss", 0.7)
- elements.property(elements.JWARD_PT_N2O, "AirLoss", 0.91)
- elements.property(elements.JWARD_PT_N2O, "AirDrag", 0.02)
- elements.property(elements.JWARD_PT_N2O, "Advection", 0.9)
- elements.property(elements.JWARD_PT_N2O, "Weight", 0)
- elements.property(elements.JWARD_PT_N2O, "Diffusion", 1.5)
- elements.property(elements.JWARD_PT_N2O, "Meltable", 0)
- elements.property(elements.JWARD_PT_N2O, "Hardness", 0)
- elements.property(elements.JWARD_PT_N2O, "Falldown", 0)
- elements.property(elements.JWARD_PT_N2O, "Properties", TYPE_GAS)
- elements.property(elements.JWARD_PT_N2O, "State", ST_GAS)
- elements.property(elements.JWARD_PT_N2O, "Temperature", 295.15)
- elements.property(elements.JWARD_PT_N2O, "HeatConduct", 80)
- elements.property(elements.JWARD_PT_N2O, "LowTemperature", 184.67)
- elements.property(elements.JWARD_PT_N2O, "LowTemperatureTransition", elements.JWARD_PT_LN2O)
- function N2O(i,x,y,s,n)
- reaction = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
- if reaction == tpt.el.oxyg.id then
- tpt.parts[i].type = tpt.element('N2O4')
- reaction = nil
- end
- end
- tpt.element_func(N2O,nitrous)
- elements.element(elements.JWARD_PT_N2O4, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_N2O4, "Name", "N2O4")
- elements.property(elements.JWARD_PT_N2O4, "Description", "Dinitrogen Tetroxide rocket oxidizer")
- elements.property(elements.JWARD_PT_N2O4, "Colour", 0x30CEC6)
- elements.property(elements.JWARD_PT_N2O4, "MenuSection", 5)
- elements.property(elements.JWARD_PT_N2O4, "Gravity", 0.8)
- elements.property(elements.JWARD_PT_N2O4, "Flammable", 7500)
- elements.property(elements.JWARD_PT_N2O4, "Explosive", 1)
- elements.property(elements.JWARD_PT_N2O4, "Loss", 0.7)
- elements.property(elements.JWARD_PT_N2O4, "AirLoss", 0.91)
- elements.property(elements.JWARD_PT_N2O4, "AirDrag", 0.03)
- elements.property(elements.JWARD_PT_N2O4, "Advection", 0.6)
- elements.property(elements.JWARD_PT_N2O4, "Weight", 46)
- elements.property(elements.JWARD_PT_N2O4, "Diffusion", 1.5)
- elements.property(elements.JWARD_PT_N2O4, "Meltable", 0)
- elements.property(elements.JWARD_PT_N2O4, "Hardness", 0)
- elements.property(elements.JWARD_PT_N2O4, "Falldown", 2)
- elements.property(elements.JWARD_PT_N2O4, "Properties", TYPE_LIQUID)
- elements.property(elements.JWARD_PT_N2O4, "State", ST_LIQUID)
- elements.property(elements.JWARD_PT_N2O4, "Temperature", 295.15)
- elements.property(elements.JWARD_PT_N2O4, "HeatConduct", 78)
- function N2O4(i,x,y,s,n)
- rocket = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
- if rocket == Diazane then
- tpt.create(x+math.random(-1,1), y+math.random(-1,1), 'plsm')
- end
- end
- tpt.element_func(N2O4,DinitrogenTetroxide)
- elements.element(elements.JWARD_PT_N2H4, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_N2H4, "Name", "N2H4")
- elements.property(elements.JWARD_PT_N2H4, "Description", "Hydrazine rocket fuel")
- elements.property(elements.JWARD_PT_N2H4, "Colour", 0xB6F064)
- elements.property(elements.JWARD_PT_N2H4, "MenuSection", 5)
- elements.property(elements.JWARD_PT_N2H4, "Gravity", 0.8)
- elements.property(elements.JWARD_PT_N2H4, "Flammable", 1)
- elements.property(elements.JWARD_PT_N2H4, "Explosive", 1)
- elements.property(elements.JWARD_PT_N2H4, "Loss", 0.7)
- elements.property(elements.JWARD_PT_N2H4, "AirLoss", 0.91)
- elements.property(elements.JWARD_PT_N2H4, "AirDrag", 0.03)
- elements.property(elements.JWARD_PT_N2H4, "Advection", 0.6)
- elements.property(elements.JWARD_PT_N2H4, "Weight", 46)
- elements.property(elements.JWARD_PT_N2H4, "Diffusion", 1.5)
- elements.property(elements.JWARD_PT_N2H4, "Meltable", 0)
- elements.property(elements.JWARD_PT_N2H4, "Hardness", 0)
- elements.property(elements.JWARD_PT_N2H4, "Falldown", 2)
- elements.property(elements.JWARD_PT_N2H4, "Properties", TYPE_LIQUID)
- elements.property(elements.JWARD_PT_N2H4, "State", ST_LIQUID)
- elements.property(elements.JWARD_PT_N2H4, "Temperature", 295.15)
- elements.property(elements.JWARD_PT_N2H4, "HeatConduct", 83)
- N2H4Update = function(i, x, y, s, n)
- local clife = tpt.get_property('life', x, y)
- if clife > 1 then
- for cx = -1, 1, 2 do
- for cy = -1, 1, 2 do
- tpt.create(x + cx, y + cy, 'fire')
- tpt.set_property('temp', 1700, x, y)
- tpt.set_pressure(x, y, 2, 2, 200)
- end
- end
- tpt.set_property('life', clife - 1, x, y)
- elseif clife == 1 then
- tpt.set_property('type', 0, x, y)
- elseif s > 0 then
- for cx = -1, 1, 2 do
- for cy = -1, 1, 2 do
- if tpt.get_property('type', x + cx, y + cy) == 4 or tpt.get_property('type', x + cx, y + cy) == 49 then
- tpt.set_property('life', 500, x, y)
- return true
- end
- end
- end
- end
- end
- tpt.element_func(N2H4Update, tpt.element('N2H4'))
- elements.element(elements.JWARD_PT_N2, elements.element(elements.DEFAULT_PT_CO2))
- elements.property(elements.JWARD_PT_N2, "Name", "N2")
- elements.property(elements.JWARD_PT_N2, "Description", "Nitrogen Gas. Combines with WATR to make N2O + H2.")
- elements.property(elements.JWARD_PT_N2, "Colour", 0x5E52FF)
- elements.property(elements.JWARD_PT_N2, "MenuSection", SC_GAS)
- elements.property(elements.JWARD_PT_N2, "Gravity", 0)
- elements.property(elements.JWARD_PT_N2, "Flammable", 0)
- elements.property(elements.JWARD_PT_N2, "Explosive", 1)
- elements.property(elements.JWARD_PT_N2, "Loss", 0.3)
- elements.property(elements.JWARD_PT_N2, "AirLoss", 0.99)
- elements.property(elements.JWARD_PT_N2, "AirDrag", 0.01)
- elements.property(elements.JWARD_PT_N2, "Advection", 2.0)
- elements.property(elements.JWARD_PT_N2, "Weight", 0)
- elements.property(elements.JWARD_PT_N2, "Diffusion", 2.75)
- elements.property(elements.JWARD_PT_N2, "State", ST_GAS)
- elements.property(elements.JWARD_PT_N2, "Properties", elem.TYPE_GAS)
- elements.property(elements.JWARD_PT_N2, "LowTemperatureTransition", elements.DEFAULT_PT_LN2)
- elements.property(elements.JWARD_PT_N2, "LowTemperature", 76)
- elements.property(elements.JWARD_PT_N2, "HeatConduct", 80)
- function N2(i,x,y,s,n)
- water = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
- if water == tpt.el.dstw.id then
- tpt.parts[i].type = tpt.element('N2O')
- water = nil
- end
- end
- tpt.element_func(N2,nitrogen)
- --extra
- local propane = elements.allocate("JWARD", "PROP")
- elements.element(elements.JWARD_PT_PROP, elements.element(elements.DEFAULT_PT_CO2))
- elements.property(elements.JWARD_PT_PROP, "Name", "PRPN")
- elements.property(elements.JWARD_PT_PROP, "Description", "Propane. Explodes very easily.")
- elements.property(elements.JWARD_PT_PROP, "Colour", 0xF4A26A)
- elements.property(elements.JWARD_PT_PROP, "MenuSection", 5)
- elements.property(elements.JWARD_PT_PROP, "Gravity", -0.02)
- elements.property(elements.JWARD_PT_PROP, "Flammable", 3000)
- elements.property(elements.JWARD_PT_PROP, "Explosive", 2.5)
- elements.property(elements.JWARD_PT_PROP, "Loss", 0.75)
- elements.property(elements.JWARD_PT_PROP, "AirLoss", 0.97)
- elements.property(elements.JWARD_PT_PROP, "AirDrag", 0.01)
- elements.property(elements.JWARD_PT_PROP, "Advection", 1)
- elements.property(elements.JWARD_PT_PROP, "Weight", 0)
- elements.property(elements.JWARD_PT_PROP, "Diffusion", 0.7)
- elements.property(elements.JWARD_PT_PROP, "Meltable", 0)
- elements.property(elements.JWARD_PT_PROP, "Hardness", 0)
- elements.property(elements.JWARD_PT_PROP, "Falldown", 0)
- elements.property(elements.JWARD_PT_PROP, "Properties", TYPE_GAS)
- elements.property(elements.JWARD_PT_PROP, "State", ST_GAS)
- elements.property(elements.JWARD_PT_PROP, "Temperature", 295.15)
- elements.property(elements.JWARD_PT_PROP, "HeatConduct", 95)
- elements.property(elements.JWARD_PT_PROP, "HighTemperature", 353.15)
- elements.property(elements.JWARD_PT_PROP, "HighTemperatureTransition", tpt.el.fire.id)
- elements.property(elements.JWARD_PT_PROP, "LowTemperatureTransition", NT)
- --kerosene
- local KEROSENEGAS = elements.allocate("JWARD", "KERV")
- local KEROSENE = elements.allocate("JWARD", "KERO")
- elements.element(elements.JWARD_PT_KERO, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_KERO, "Name", "KERO")
- elements.property(elements.JWARD_PT_KERO, "Description", "KERO BURNS HOT AND QUICK")
- elements.property(elements.JWARD_PT_KERO, "Colour", 0x01B3D7)
- elements.property(elements.JWARD_PT_KERO, "MenuSection", 5)
- elements.property(elements.JWARD_PT_KERO, "Gravity", .04)
- elements.property(elements.JWARD_PT_KERO, "Flammable", 500)
- elements.property(elements.JWARD_PT_KERO, "Explosive", 1)
- elements.property(elements.JWARD_PT_KERO, "Loss", 1)
- elements.property(elements.JWARD_PT_KERO, "AirLoss", .5)
- elements.property(elements.JWARD_PT_KERO, "AirDrag", .01)
- elements.property(elements.JWARD_PT_KERO, "Advection", .01)
- elements.property(elements.JWARD_PT_KERO, "Weight", 5)
- elements.property(elements.JWARD_PT_KERO, "State", ST_liquid)
- elements.property(elements.JWARD_PT_KERO, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
- elements.property(elements.JWARD_PT_KERO, "HighTemperature", 393.15)
- elements.property(elements.JWARD_PT_KERO, "HighTemperatureTransition", elements.JWARD_PT_KERV)
- function KERO(i,x,y,s,n)
- reaction = tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
- if reaction == petrol then
- tpt.parts[i].type = tpt.element('JETB')
- reaction = nil
- end
- end
- tpt.element_func(KERO,KEROSENE)
- elements.element(elements.JWARD_PT_KERV, elements.element(elements.DEFAULT_PT_HYGN))
- elements.property(elements.JWARD_PT_KERV, "Name", "KERV")
- elements.property(elements.JWARD_PT_KERV, "Description", "kerosene gas")
- elements.property(elements.JWARD_PT_KERV, "Colour", 0x01B3D7)
- elements.property(elements.JWARD_PT_KERV, "MenuVisible", 0)
- elements.property(elements.JWARD_PT_KERV, "Gravity", -0.02)
- elements.property(elements.JWARD_PT_KERV, "Flammable", 600)
- elements.property(elements.JWARD_PT_KERV, "Explosive", 1)
- elements.property(elements.JWARD_PT_KERV, "Loss", 0.75)
- elements.property(elements.JWARD_PT_KERV, "AirLoss", 0.97)
- elements.property(elements.JWARD_PT_KERV, "AirDrag", 0.01)
- elements.property(elements.JWARD_PT_KERV, "Advection", 1)
- elements.property(elements.JWARD_PT_KERV, "Weight", 0)
- elements.property(elements.JWARD_PT_KERV, "Diffusion", 0.7)
- elements.property(elements.JWARD_PT_KERV, "Meltable", 0)
- elements.property(elements.JWARD_PT_KERV, "Hardness", 0)
- elements.property(elements.JWARD_PT_KERV, "Falldown", 0)
- elements.property(elements.JWARD_PT_KERV, "Properties", TYPE_GAS)
- elements.property(elements.JWARD_PT_KERV, "State", ST_GAS)
- elements.property(elements.JWARD_PT_KERV, "Temperature", 403.15)
- elements.property(elements.JWARD_PT_KERV, "HeatConduct", 195)
- elements.property(elements.JWARD_PT_KERV, "LowTemperature", 393.15)
- elements.property(elements.JWARD_PT_KERV, "LowTemperatureTransition", elements.JWARD_PT_KERO)
- --jetfuel
- local JETFUEL = elements.allocate("JWARD", "JETB")
- elements.element(elements.JWARD_PT_JETB, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_JETB, "Name", "JETB")
- elements.property(elements.JWARD_PT_JETB, "Description", "Jet b type fuel-blend of Kero and Ptrl for jet engines")
- elements.property(elements.JWARD_PT_JETB, "Colour", 0x676601)
- elements.property(elements.JWARD_PT_JETB, "MenuSection", 5)
- elements.property(elements.JWARD_PT_JETB, "Gravity", .04)
- elements.property(elements.JWARD_PT_JETB, "Flammable", 5000)
- elements.property(elements.JWARD_PT_JETB, "Explosive", 1)
- elements.property(elements.JWARD_PT_JETB, "Loss", 0.8)
- elements.property(elements.JWARD_PT_JETB, "AirLoss", 0.94)
- elements.property(elements.JWARD_PT_JETB, "AirDrag", 0.02)
- elements.property(elements.JWARD_PT_JETB, "Advection", 0.8)
- elements.property(elements.JWARD_PT_JETB, "HighTemperature", 353.15)
- elements.property(elements.JWARD_PT_JETB, "Weight", 13)
- elements.property(elements.JWARD_PT_JETB, "State", ST_liquid)
- elements.property(elements.JWARD_PT_JETB, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
- elements.property(elements.JWARD_PT_JETB, "LowTemperature", 225.15)
- elements.property(elements.JWARD_PT_JETB, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
- --tar
- local TARGAS = elements.allocate("JWARD", "TARV")
- local TAR = elements.allocate("JWARD", "TAR")
- elements.element(elements.JWARD_PT_TAR, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_TAR, "Name", "TAR")
- elements.property(elements.JWARD_PT_TAR, "Description", "tar hard to burn")
- elements.property(elements.JWARD_PT_TAR, "Colour", 0x0D0D03)
- elements.property(elements.JWARD_PT_TAR, "MenuSection", 5)
- elements.property(elements.JWARD_PT_TAR, "Gravity", .1)
- elements.property(elements.JWARD_PT_TAR, "Flammable", 2)
- elements.property(elements.JWARD_PT_TAR, "Explosive", 0)
- elements.property(elements.JWARD_PT_TAR, "Loss", 1)
- elements.property(elements.JWARD_PT_TAR, "AirLoss", .5)
- elements.property(elements.JWARD_PT_TAR, "AirDrag", .01)
- elements.property(elements.JWARD_PT_TAR, "Advection", .01)
- elements.property(elements.JWARD_PT_TAR, "Diffusion", 0.01)
- elements.property(elements.JWARD_PT_TAR, "State", ST_liquid)
- elements.property(elements.JWARD_PT_TAR, "Weight", 50)
- elements.property(elements.JWARD_PT_TAR, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
- elements.property(elements.JWARD_PT_TAR, "HighTemperature", 873.15)
- elements.property(elements.JWARD_PT_TAR, "HighTemperatureTransition", elements.JWARD_PT_TARV)
- elements.element(elements.JWARD_PT_TARV, elements.element(elements.DEFAULT_PT_HYGN))
- elements.property(elements.JWARD_PT_TARV, "Name", "TARV")
- elements.property(elements.JWARD_PT_TARV, "Description", "tar gas")
- elements.property(elements.JWARD_PT_TARV, "Colour", 0x4C2D20)
- elements.property(elements.JWARD_PT_TARV, "MenuVisible", 0)
- elements.property(elements.JWARD_PT_TARV, "Gravity", -0.02)
- elements.property(elements.JWARD_PT_TARV, "Flammable", 10)
- elements.property(elements.JWARD_PT_TARV, "Explosive", 0)
- elements.property(elements.JWARD_PT_TARV, "Loss", 0.75)
- elements.property(elements.JWARD_PT_TARV, "AirLoss", 0.97)
- elements.property(elements.JWARD_PT_TARV, "AirDrag", 0.01)
- elements.property(elements.JWARD_PT_TARV, "Advection", 1)
- elements.property(elements.JWARD_PT_TARV, "Weight", 0)
- elements.property(elements.JWARD_PT_TARV, "Diffusion", 0.7)
- elements.property(elements.JWARD_PT_TARV, "Meltable", 0)
- elements.property(elements.JWARD_PT_TARV, "Hardness", 0)
- elements.property(elements.JWARD_PT_TARV, "Falldown", 0)
- elements.property(elements.JWARD_PT_TARV, "Properties", TYPE_GAS)
- elements.property(elements.JWARD_PT_TARV, "State", ST_GAS)
- elements.property(elements.JWARD_PT_TARV, "Temperature", 403.15)
- elements.property(elements.JWARD_PT_TARV, "HeatConduct", 195)
- elements.property(elements.JWARD_PT_TARV, "LowTemperature", 873.15)
- elements.property(elements.JWARD_PT_TARV, "LowTemperatureTransition", elements.JWARD_PT_TAR)
- --wax
- local WAXGAS = elements.allocate("JWARD", "WAXV")
- elements.element(elements.JWARD_PT_WAXV, elements.element(elements.DEFAULT_PT_HYGN))
- elements.property(elements.JWARD_PT_WAXV, "Name", "WAXV")
- elements.property(elements.JWARD_PT_WAXV, "Description", "wax gas")
- elements.property(elements.JWARD_PT_WAXV, "Colour", 0xF0F0BB)
- elements.property(elements.JWARD_PT_WAXV, "MenuSection", SC_GAS)
- elements.property(elements.JWARD_PT_WAXV, "Gravity", -0.02)
- elements.property(elements.JWARD_PT_WAXV, "Flammable", 500)
- elements.property(elements.JWARD_PT_WAXV, "Explosive", 0)
- elements.property(elements.JWARD_PT_WAXV, "Loss", 0.75)
- elements.property(elements.JWARD_PT_WAXV, "AirLoss", 0.97)
- elements.property(elements.JWARD_PT_WAXV, "AirDrag", 0.01)
- elements.property(elements.JWARD_PT_WAXV, "Advection", 1)
- elements.property(elements.JWARD_PT_WAXV, "Weight", 0)
- elements.property(elements.JWARD_PT_WAXV, "Diffusion", 0.7)
- elements.property(elements.JWARD_PT_WAXV, "Meltable", 0)
- elements.property(elements.JWARD_PT_WAXV, "Hardness", 0)
- elements.property(elements.JWARD_PT_WAXV, "Falldown", 0)
- elements.property(elements.JWARD_PT_WAXV, "Properties", TYPE_GAS)
- elements.property(elements.JWARD_PT_WAXV, "State", ST_GAS)
- elements.property(elements.JWARD_PT_WAXV, "Temperature", 833.15)
- elements.property(elements.JWARD_PT_WAXV, "HeatConduct", 195)
- elements.property(elements.JWARD_PT_WAXV, "LowTemperature", 823.15)
- elements.property(elements.JWARD_PT_WAXV, "LowTemperatureTransition", elements.DEFAULT_PT_WAX)
- --coke
- local CoalCoke = elements.allocate("JWARD", "COKE")
- elements.element(elements.JWARD_PT_COKE, elements.element(elements.DEFAULT_PT_BCOL))
- elements.property(elements.JWARD_PT_COKE, "Name", "COKE")
- elements.property(elements.JWARD_PT_COKE, "Description", "COAL COKE. Burns for a long time and hot.")
- elements.property(elements.JWARD_PT_COKE, "Colour", 0xAAAAAA)
- elements.property(elements.JWARD_PT_COKE, "MenuSection", 5)
- elements.property(elements.JWARD_PT_COKE, "Gravity", .35)
- elements.property(elements.JWARD_PT_COKE, "Flammable", 0)
- elements.property(elements.JWARD_PT_COKE, "Explosive", 0)
- elements.property(elements.JWARD_PT_COKE, "Loss", 0.15)
- elements.property(elements.JWARD_PT_COKE, "AirLoss", 0.96)
- elements.property(elements.JWARD_PT_COKE, "AirDrag", 0.03)
- elements.property(elements.JWARD_PT_COKE, "Advection", 0.4)
- elements.property(elements.JWARD_PT_COKE, "Weight", 78)
- elements.property(elements.JWARD_PT_COKE, "Diffusion", 0)
- elements.property(elements.JWARD_PT_COKE, "Falldown", 1)
- COKEUpdate = function(i, x, y, s, n)
- local clife = tpt.get_property('life', x, y)
- if clife > 1 then
- for cx = -1, 1, 2 do
- for cy = -1, 1, 2 do
- tpt.create(x + cx, y + cy, 'fire')
- tpt.set_property('temp', 1700, x, y)
- end
- end
- tpt.set_property('life', clife - 1, x, y)
- elseif clife == 1 then
- tpt.set_property('type', 0, x, y)
- elseif s > 0 then
- for cx = -1, 1, 2 do
- for cy = -1, 1, 2 do
- if tpt.get_property('type', x + cx, y + cy) == 4 or tpt.get_property('type', x + cx, y + cy) == 49 then
- tpt.set_property('life', 500, x, y)
- return true
- end
- end
- end
- end
- end
- tpt.element_func(COKEUpdate, tpt.element('coke'))
- local CreosoteGas = elements.allocate("JWARD", "CRTV")
- elements.element(elements.JWARD_PT_CRTV, elements.element(elements.DEFAULT_PT_HYGN))
- elements.property(elements.JWARD_PT_CRTV, "Name", "CRTV")
- elements.property(elements.JWARD_PT_CRTV, "Description", "creosote gas")
- elements.property(elements.JWARD_PT_CRTV, "Colour", 0x585117)
- elements.property(elements.JWARD_PT_CRTV, "MenuVisible", 0)
- elements.property(elements.JWARD_PT_CRTV, "Gravity", -0.02)
- elements.property(elements.JWARD_PT_CRTV, "Explosive", 0)
- elements.property(elements.JWARD_PT_CRTV, "Loss", 0.75)
- elements.property(elements.JWARD_PT_CRTV, "AirDrag", 0.01)
- elements.property(elements.JWARD_PT_CRTV, "Advection", 1)
- elements.property(elements.JWARD_PT_CRTV, "Weight", 0)
- elements.property(elements.JWARD_PT_CRTV, "Diffusion", 0.7)
- elements.property(elements.JWARD_PT_CRTV, "Hardness", 0)
- elements.property(elements.JWARD_PT_CRTV, "Falldown", 0)
- elements.property(elements.JWARD_PT_CRTV, "Properties", TYPE_GAS)
- elements.property(elements.JWARD_PT_CRTV, "State", ST_GAS)
- elements.property(elements.JWARD_PT_CRTV, "Temperature", 883.15)
- elements.property(elements.JWARD_PT_CRTV, "HeatConduct", 195)
- elements.property(elements.JWARD_PT_CRTV, "LowTemperature", 871)
- elements.property(elements.JWARD_PT_CRTV, "LowTemperatureTransition", elements.JWARD_PT_CRST)
- local Creosote = elements.allocate("JWARD", "CRST")
- elements.element(elements.JWARD_PT_CRST, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_CRST, "Name", "CRST")
- elements.property(elements.JWARD_PT_CRST, "Description", "creosote ")
- elements.property(elements.JWARD_PT_CRST, "Colour", 0x0F0E04)
- elements.property(elements.JWARD_PT_CRST, "MenuSection", SC_LIQUID)
- elements.property(elements.JWARD_PT_CRST, "Gravity", .04)
- elements.property(elements.JWARD_PT_CRST, "Flammable", 10)
- elements.property(elements.JWARD_PT_CRST, "Explosive", 0)
- elements.property(elements.JWARD_PT_CRST, "Loss", 1)
- elements.property(elements.JWARD_PT_CRST, "AirLoss", .5)
- elements.property(elements.JWARD_PT_CRST, "AirDrag", .01)
- elements.property(elements.JWARD_PT_CRST, "Advection", .01)
- elements.property(elements.JWARD_PT_CRST, "Weight", 5)
- elements.property(elements.JWARD_PT_CRST, "State", ST_liquid)
- elements.property(elements.JWARD_PT_CRST, "Properties", elem.TYPE_LIQUID)
- elements.property(elements.JWARD_PT_CRST, "HighTemperature", 872)
- elements.property(elements.JWARD_PT_CRST, "HighTemperatureTransition", elements.JWARD_PT_CRTV)
- --crude oil
- local OILCRUDE = elements.allocate("JWARD", "OILC")
- elements.element(elements.JWARD_PT_OILC, elements.element(elements.DEFAULT_PT_GEL))
- elements.property(elements.JWARD_PT_OILC, "Name", "OILC")
- elements.property(elements.JWARD_PT_OILC, "Description", "Crude oil can be distilled, didn't name it coil for a reason")
- elements.property(elements.JWARD_PT_OILC, "Colour", 0x35350D)
- elements.property(elements.JWARD_PT_OILC, "MenuSection", 7)
- elements.property(elements.JWARD_PT_OILC, "Gravity", .04)
- elements.property(elements.JWARD_PT_OILC, "Flammable", 50)
- elements.property(elements.JWARD_PT_OILC, "Explosive", 0)
- elements.property(elements.JWARD_PT_OILC, "Loss", 1)
- elements.property(elements.JWARD_PT_OILC, "AirLoss", .5)
- elements.property(elements.JWARD_PT_OILC, "AirDrag", .01)
- elements.property(elements.JWARD_PT_OILC, "Advection", .01)
- elements.property(elements.JWARD_PT_OILC, "Weight", 5)
- elements.property(elements.JWARD_PT_OILC, "State", ST_liquid)
- elements.property(elements.JWARD_PT_OILC, "Properties", elem.TYPE_LIQUID+elem.PROP_DEADLY)
- function OILC(i,x,y,s,n)
- dis = tpt.get_property('temp', x, y)
- if dis > 973.15 then
- tpt.set_property('tmp', math.random(2,9), x, y)
- end
- oillife = tpt.get_property('tmp', x, y)
- if oillife == 9 then
- tpt.parts[i].type = tpt.element('crtv')
- oillife = nil
- end
- if oillife == 8 then
- tpt.parts[i].type = tpt.element('gas')
- oillife = nil
- end
- if oillife == 7 then
- tpt.parts[i].type = tpt.element('kerv')
- oillife = nil
- end
- if oillife == 6 then
- tpt.parts[i].type = tpt.element('ptlv')
- oillife = nil
- end
- if oillife == 5 then
- tpt.parts[i].type = tpt.element('dslv')
- oillife = nil
- end
- if oillife == 4 then
- tpt.parts[i].type = tpt.element('waxv')
- oillife = nil
- end
- if oillife == 3 then
- tpt.parts[i].type = tpt.element('coke')
- oillife = nil
- end
- if oillife == 2 then
- tpt.parts[i].type = tpt.element('tarv')
- oillife = nil
- end
- end
- tpt.element_func(OILC,OILCRUDE)
- --more default
- elements.property(elements.DEFAULT_PT_GAS, "HighPressureTransition", 256)
- elements.property(elements.DEFAULT_PT_GAS, "LowTemperature", 573.15)
- elements.property(elements.DEFAULT_PT_GAS, "HotAir", 0)
- elements.property(elements.DEFAULT_PT_GAS, "LowTemperatureTransition", elements.DEFAULT_PT_OIL)
- elements.property(elements.DEFAULT_PT_GAS, "Temperature", 583.15)
- elements.property(elements.DEFAULT_PT_GAS, "HighTemperature", 10000)
- elements.property(elements.DEFAULT_PT_BCOL, "HighTemperatureTransition", elements.JWARD_PT_COKE)
- elements.property(elements.DEFAULT_PT_BCOL, "HighTemperature", 773.15)
- elements.property(elements.DEFAULT_PT_COAL, "HighTemperatureTransition", elements.JWARD_PT_COKE)
- elements.property(elements.DEFAULT_PT_COAL, "HighTemperature", 773.15)
- elements.property(elements.DEFAULT_PT_LN2, "HighTemperatureTransition", elements.JWARD_PT_N2)
- elements.property(elements.DEFAULT_PT_OIL, "HighTemperature", 573.15)
- elements.property(elements.DEFAULT_PT_OIL, "HighTemperatureTransition", elements.DEFAULT_PT_GAS)
- elements.property(elements.DEFAULT_PT_DESL, "HighTemperatureTransition", elements.JWARD_PT_DSLV)
- elements.property(elements.DEFAULT_PT_DESL, "HighTemperature", 473.15)
- elements.property(elements.DEFAULT_PT_DESL, "LowTemperature", 255.15)
- elements.property(elements.DEFAULT_PT_DESL, "LowTemperatureTransition", elements.DEFAULT_PT_ICE)
- elements.property(elements.DEFAULT_PT_DESL, "Weight", 12)
- elements.property(elements.DEFAULT_PT_MWAX, "HighTemperatureTransition", elements.JWARD_PT_WAXV)
- elements.property(elements.DEFAULT_PT_MWAX, "HighTemperature", 823.15)
- elements.property(elements.DEFAULT_PT_WAX, "HeatConduct", 25)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement