remove extra spacing in all the element files
This commit is contained in:
parent
b9c3eeae92
commit
07be209094
@ -8,7 +8,7 @@ Element_116::Element_116()
|
||||
MenuVisible = 0;
|
||||
MenuSection = SC_CRACKER2;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.7f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.96f;
|
||||
@ -18,21 +18,20 @@ Element_116::Element_116()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 30;
|
||||
|
||||
|
||||
Weight = 85;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "A failed shared velocity test.";
|
||||
|
||||
|
||||
Properties = TYPE_PART;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_116::Element_116()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_116::~Element_116() {}
|
||||
|
@ -8,7 +8,7 @@ Element_146::Element_146()
|
||||
MenuVisible = 0;
|
||||
MenuSection = SC_LIFE;
|
||||
Enabled = 0;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_146::Element_146()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = 9000.0f;
|
||||
HeatConduct = 40;
|
||||
Description = "Brian 6 S6/B246/3";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_146::Element_146()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_146::~Element_146() {}
|
||||
|
@ -8,7 +8,7 @@ Element_ACEL::Element_ACEL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_FORCE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_ACEL::Element_ACEL()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Accelerator, speeds up nearby elements.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_ACEL::Element_ACEL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_ACEL::update;
|
||||
Graphics = &Element_ACEL::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_ACEL static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_ACEL::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
float multiplier;
|
||||
if (parts[i].life!=0)
|
||||
|
@ -8,7 +8,7 @@ Element_ACID::Element_ACID()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_ACID::Element_ACID()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 40;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 10;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 34;
|
||||
Description = "Dissolves almost everything.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_DEADLY;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_ACID::Element_ACID()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_ACID::update;
|
||||
Graphics = &Element_ACID::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_AMTR::Element_AMTR()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_NUCLEAR;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.7f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.96f;
|
||||
@ -18,21 +18,20 @@ Element_AMTR::Element_AMTR()
|
||||
Diffusion = 1.00f;
|
||||
HotAir = 0.0000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "Anti-Matter, destroys a majority of particles.";
|
||||
|
||||
|
||||
Properties = TYPE_GAS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_AMTR::Element_AMTR()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_AMTR::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_AMTR static int update(UPDATE_FUNC_ARGS)
|
||||
|
@ -8,7 +8,7 @@ Element_ANAR::Element_ANAR()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = -0.7f;
|
||||
AirDrag = -0.02f * CFDS;
|
||||
AirLoss = 0.96f;
|
||||
@ -18,21 +18,20 @@ Element_ANAR::Element_ANAR()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 30;
|
||||
|
||||
|
||||
Weight = 85;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "Anti-air. Very light dust, which behaves opposite gravity.";
|
||||
|
||||
|
||||
Properties = TYPE_PART;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_ANAR::Element_ANAR()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_ANAR::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_ANAR static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_ANAR::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
|
||||
//if (parts[i].temp >= 0.23)
|
||||
|
@ -8,7 +8,7 @@ Element_ARAY::Element_ARAY()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_ARAY::Element_ARAY()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 0;
|
||||
Description = "Ray Emitter. Rays create points when they collide.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_ARAY::Element_ARAY()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_ARAY::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_ARAY static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_ARAY::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
if (!parts[i].life)
|
||||
{
|
||||
for (int rx = -1; rx <= 1; rx++)
|
||||
|
@ -8,7 +8,7 @@ Element_BANG::Element_BANG()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_BANG::Element_BANG()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 88;
|
||||
Description = "TNT, explodes all at once.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID | PROP_NEUTPENETRATE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_BANG::Element_BANG()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_BANG::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_BANG static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_BANG::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
if(parts[i].tmp==0)
|
||||
{
|
||||
@ -67,7 +65,7 @@ int Element_BANG::update(UPDATE_FUNC_ARGS)
|
||||
parts[i].tmp = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else if(parts[i].tmp==1)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ Element_BCLN::Element_BCLN()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SPECIAL;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.97f;
|
||||
@ -18,21 +18,20 @@ Element_BCLN::Element_BCLN()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 12;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Breakable Clone.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC|PROP_LIFE_KILL_DEC|PROP_DRAWONCTYPE|PROP_NOCTYPEDRAW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,16 +40,15 @@ Element_BCLN::Element_BCLN()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_BCLN::update;
|
||||
|
||||
}
|
||||
|
||||
#define ADVECTION 0.1f
|
||||
|
||||
//#TPT-Directive ElementHeader Element_BCLN static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_BCLN::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
if (!parts[i].life && sim->pv[y/CELL][x/CELL]>4.0f)
|
||||
parts[i].life = rand()%40+80;
|
||||
if (parts[i].life)
|
||||
|
@ -8,7 +8,7 @@ Element_BCOL::Element_BCOL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.4f;
|
||||
AirDrag = 0.04f * CFDS;
|
||||
AirLoss = 0.94f;
|
||||
@ -18,21 +18,20 @@ Element_BCOL::Element_BCOL()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 2;
|
||||
|
||||
|
||||
Weight = 90;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 150;
|
||||
Description = "Broken Coal. Heavy particles, burns slowly.";
|
||||
|
||||
|
||||
Properties = TYPE_PART;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_BCOL::Element_BCOL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_COAL::update;
|
||||
Graphics = &Element_COAL::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_BGLA::Element_BGLA()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.4f;
|
||||
AirDrag = 0.04f * CFDS;
|
||||
AirLoss = 0.94f;
|
||||
@ -18,21 +18,20 @@ Element_BGLA::Element_BGLA()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 5;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 90;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 150;
|
||||
Description = "Broken Glass, heavy particles formed when glass breaks under pressure. Meltable. Bagels.";
|
||||
|
||||
|
||||
Properties = TYPE_PART | PROP_HOT_GLOW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_BGLA::Element_BGLA()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1973.0f;
|
||||
HighTemperatureTransition = PT_LAVA;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_BGLA::~Element_BGLA() {}
|
||||
|
@ -8,7 +8,7 @@ Element_BHOL::Element_BHOL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SPECIAL;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.95f;
|
||||
@ -18,21 +18,20 @@ Element_BHOL::Element_BHOL()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = -0.01f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+70.0f+273.15f;
|
||||
HeatConduct = 255;
|
||||
Description = "Vacuum, sucks in other particles and heats up.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_BHOL::Element_BHOL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_BHOL::~Element_BHOL() {}
|
||||
|
@ -8,7 +8,7 @@ Element_BIZR::Element_BIZR()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_BIZR::Element_BIZR()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 30;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 29;
|
||||
Description = "Bizarre... contradicts the normal state changes. Paints other elements with its deco color.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_BIZR::Element_BIZR()
|
||||
LowTemperatureTransition = PT_BIZRG;
|
||||
HighTemperature = 400.0f;
|
||||
HighTemperatureTransition = PT_BIZRS;
|
||||
|
||||
|
||||
Update = &Element_BIZR::update;
|
||||
Graphics = &Element_BIZR::graphics;
|
||||
}
|
||||
@ -50,7 +49,7 @@ Element_BIZR::Element_BIZR()
|
||||
|
||||
//#TPT-Directive ElementHeader Element_BIZR static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_BIZR::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, nr, ng, nb, na;
|
||||
float tr, tg, tb, ta, mr, mg, mb, ma;
|
||||
if(parts[i].dcolour){
|
||||
|
@ -8,7 +8,7 @@ Element_BIZRG::Element_BIZRG()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_CRACKER2;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 1.0f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.99f;
|
||||
@ -18,21 +18,20 @@ Element_BIZRG::Element_BIZRG()
|
||||
Diffusion = 2.75f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 1;
|
||||
|
||||
|
||||
Temperature = R_TEMP-200.0f+273.15f;
|
||||
HeatConduct = 42;
|
||||
Description = "Bizarre gas.";
|
||||
|
||||
|
||||
Properties = TYPE_GAS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_BIZRG::Element_BIZRG()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 100.0f;
|
||||
HighTemperatureTransition = PT_BIZR;
|
||||
|
||||
|
||||
Update = &Element_BIZR::update;
|
||||
Graphics = &Element_BIZR::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_BIZRS::Element_BIZRS()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_CRACKER2;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_BIZRS::Element_BIZRS()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+300.0f+273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Bizarre solid.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_BIZRS::Element_BIZRS()
|
||||
LowTemperatureTransition = PT_BIZR;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_BIZR::update;
|
||||
Graphics = &Element_BIZR::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_BMTL::Element_BMTL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SOLIDS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_BMTL::Element_BMTL()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 1;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Breakable metal. Common conductive building material, can melt and break under pressure.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_CONDUCTS|PROP_LIFE_DEC|PROP_HOT_GLOW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = 1.0f;
|
||||
@ -41,14 +40,13 @@ Element_BMTL::Element_BMTL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1273.0f;
|
||||
HighTemperatureTransition = PT_LAVA;
|
||||
|
||||
|
||||
Update = &Element_BMTL::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_BMTL static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_BMTL::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
if (parts[i].tmp>1)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ Element_BOMB::Element_BOMB()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_BOMB::Element_BOMB()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 30;
|
||||
|
||||
|
||||
Temperature = R_TEMP-2.0f +273.15f;
|
||||
HeatConduct = 29;
|
||||
Description = "Bomb. Explodes and destroys all surrounding particles when it touches something.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_LIFE_DEC|PROP_LIFE_KILL_DEC|PROP_SPARKSETTLE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,16 +40,16 @@ Element_BOMB::Element_BOMB()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_BOMB::update;
|
||||
Graphics = &Element_BOMB::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_BOMB static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_BOMB::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, nb;
|
||||
|
||||
|
||||
for (rx=-1; rx<2; rx++)
|
||||
for (ry=-1; ry<2; ry++)
|
||||
if (BOUNDS_CHECK && (rx || ry))
|
||||
|
@ -8,7 +8,7 @@ Element_BOYL::Element_BOYL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_GAS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 1.0f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.99f;
|
||||
@ -18,21 +18,20 @@ Element_BOYL::Element_BOYL()
|
||||
Diffusion = 0.18f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 1;
|
||||
|
||||
|
||||
Temperature = R_TEMP+2.0f +273.15f;
|
||||
HeatConduct = 42;
|
||||
Description = "Boyle, variable pressure gas. Expands when heated.";
|
||||
|
||||
|
||||
Properties = TYPE_GAS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_BOYL::Element_BOYL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_BOYL::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_BOYL static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_BOYL::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
float limit = parts[i].temp / 100;
|
||||
if (sim->pv[y / CELL][x / CELL] < limit)
|
||||
|
@ -8,7 +8,7 @@ Element_BRAY::Element_BRAY()
|
||||
MenuVisible = 0;
|
||||
MenuSection = SC_ELEC;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_BRAY::Element_BRAY()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Ray Point. Rays create points when they collide.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC|PROP_LIFE_KILL;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_BRAY::Element_BRAY()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
Graphics = &Element_BRAY::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_BRCK::Element_BRCK()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SOLIDS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_BRCK::Element_BRCK()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Brick, breakable building material.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_HOT_GLOW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = 8.8f;
|
||||
@ -41,7 +40,7 @@ Element_BRCK::Element_BRCK()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1223.0f;
|
||||
HighTemperatureTransition = PT_LAVA;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
Graphics = &Element_BRCK::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_BREC::Element_BREC()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.4f;
|
||||
AirDrag = 0.04f * CFDS;
|
||||
AirLoss = 0.94f;
|
||||
@ -18,21 +18,20 @@ Element_BREC::Element_BREC()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 2;
|
||||
Hardness = 2;
|
||||
|
||||
|
||||
Weight = 90;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 211;
|
||||
Description = "Broken electronics. Formed from EMP blasts, and when constantly sparked while under pressure, turns to EXOT.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_CONDUCTS|PROP_LIFE_DEC|PROP_HOT_GLOW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_BREC::Element_BREC()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_BREC::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_BREC static int update(UPDATE_FUNC_ARGS)
|
||||
|
@ -8,7 +8,7 @@ Element_BRMT::Element_BRMT()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.4f;
|
||||
AirDrag = 0.04f * CFDS;
|
||||
AirLoss = 0.94f;
|
||||
@ -18,21 +18,20 @@ Element_BRMT::Element_BRMT()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 2;
|
||||
Hardness = 2;
|
||||
|
||||
|
||||
Weight = 90;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 211;
|
||||
Description = "Broken metal. Created when iron rusts or when when metals break from pressure.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_CONDUCTS|PROP_LIFE_DEC|PROP_HOT_GLOW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_BRMT::Element_BRMT()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1273.0f;
|
||||
HighTemperatureTransition = ST;
|
||||
|
||||
|
||||
Update = &Element_BRMT::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_BRMT static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_BRMT::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, tempFactor;
|
||||
if (parts[i].temp > 523.15f)//250.0f+273.15f
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ Element_BTRY::Element_BTRY()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_BTRY::Element_BTRY()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Generates infinite electricity.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_BTRY::Element_BTRY()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 2273.0f;
|
||||
HighTemperatureTransition = PT_PLSM;
|
||||
|
||||
|
||||
Update = &Element_BTRY::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_BTRY static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_BTRY::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, rt;
|
||||
for (rx=-2; rx<3; rx++)
|
||||
for (ry=-2; ry<3; ry++)
|
||||
|
@ -8,7 +8,7 @@ Element_BVBR::Element_BVBR()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_NUCLEAR;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.3f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.95f;
|
||||
@ -18,21 +18,20 @@ Element_BVBR::Element_BVBR()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.0000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 67;
|
||||
|
||||
|
||||
Temperature = 273.15f;
|
||||
HeatConduct = 164;
|
||||
Description = "Broken vibranium.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,10 +40,9 @@ Element_BVBR::Element_BVBR()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_VIBR::update;
|
||||
Graphics = &Element_VIBR::graphics;
|
||||
|
||||
}
|
||||
|
||||
Element_BVBR::~Element_BVBR() {}
|
||||
|
@ -8,7 +8,7 @@ Element_C5::Element_C5()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_C5::Element_C5()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 88;
|
||||
Description = "Cold explosive, set off by anything cold.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID | PROP_NEUTPENETRATE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_C5::Element_C5()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_C5::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_C5 static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_C5::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
for (rx=-2; rx<3; rx++)
|
||||
for (ry=-2; ry<3; ry++)
|
||||
|
@ -8,7 +8,7 @@ Element_CAUS::Element_CAUS()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_GAS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 2.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.99f;
|
||||
@ -18,21 +18,20 @@ Element_CAUS::Element_CAUS()
|
||||
Diffusion = 1.50f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 1;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "Caustic Gas, acts like ACID.";
|
||||
|
||||
|
||||
Properties = TYPE_GAS|PROP_DEADLY;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_CAUS::Element_CAUS()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_CAUS::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_CAUS static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_CAUS::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
for (rx=-2; rx<3; rx++)
|
||||
for (ry=-2; ry<3; ry++)
|
||||
|
@ -8,7 +8,7 @@ Element_CBNW::Element_CBNW()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_CBNW::Element_CBNW()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 30;
|
||||
|
||||
|
||||
Temperature = R_TEMP-2.0f +273.15f;
|
||||
HeatConduct = 29;
|
||||
Description = "Carbonated water. Slowly releases CO2.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_CONDUCTS|PROP_LIFE_DEC|PROP_NEUTPENETRATE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_CBNW::Element_CBNW()
|
||||
LowTemperatureTransition = PT_ICEI;
|
||||
HighTemperature = 373.0f;
|
||||
HighTemperatureTransition = PT_WTRV;
|
||||
|
||||
|
||||
Update = &Element_CBNW::update;
|
||||
Graphics = &Element_CBNW::graphics;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ Element_CFLM::Element_CFLM()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.9f;
|
||||
AirDrag = 0.04f * CFDS;
|
||||
AirLoss = 0.97f;
|
||||
@ -23,21 +23,20 @@ Element_CFLM::Element_CFLM()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.0005f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 2;
|
||||
|
||||
|
||||
Temperature = 0.0f;
|
||||
HeatConduct = 88;
|
||||
Description = "Sub-zero flame.";
|
||||
|
||||
|
||||
Properties = TYPE_GAS|PROP_LIFE_DEC|PROP_LIFE_KILL;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -46,7 +45,7 @@ Element_CFLM::Element_CFLM()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
Graphics = &Element_CFLM::graphics;
|
||||
}
|
||||
@ -59,12 +58,12 @@ int Element_CFLM::graphics(GRAPHICS_FUNC_ARGS)
|
||||
*colr = hflm_data[caddress];
|
||||
*colg = hflm_data[caddress+1];
|
||||
*colb = hflm_data[caddress+2];
|
||||
|
||||
|
||||
*firea = 255;
|
||||
*firer = *colr;
|
||||
*fireg = *colg;
|
||||
*fireb = *colb;
|
||||
|
||||
|
||||
*pixel_mode = PMODE_NONE; //Clear default, don't draw pixel
|
||||
*pixel_mode |= FIRE_ADD;
|
||||
//Returning 0 means dynamic, do not cache
|
||||
|
@ -8,7 +8,7 @@ Element_CLNE::Element_CLNE()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SPECIAL;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_CLNE::Element_CLNE()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Solid. Duplicates any particles it touches.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_DRAWONCTYPE|PROP_NOCTYPEDRAW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_CLNE::Element_CLNE()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_CLNE::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_CLNE static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_CLNE::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
if (parts[i].ctype<=0 || parts[i].ctype>=PT_NUM || !sim->elements[parts[i].ctype].Enabled || (parts[i].ctype==PT_LIFE && (parts[i].tmp<0 || parts[i].tmp>=NGOL)))
|
||||
{
|
||||
int r, rx, ry, rt;
|
||||
|
@ -8,7 +8,7 @@ Element_CLST::Element_CLST()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.7f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.94f;
|
||||
@ -18,21 +18,20 @@ Element_CLST::Element_CLST()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 2;
|
||||
Hardness = 2;
|
||||
|
||||
|
||||
Weight = 55;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "Clay dust. Produces paste when mixed with water.";
|
||||
|
||||
|
||||
Properties = TYPE_PART;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_CLST::Element_CLST()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1256.0f;
|
||||
HighTemperatureTransition = PT_LAVA;
|
||||
|
||||
|
||||
Update = &Element_CLST::update;
|
||||
Graphics = &Element_CLST::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_CLST static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_CLST::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
float cxy = 0;
|
||||
for (rx=-2; rx<3; rx++)
|
||||
|
@ -8,7 +8,7 @@ Element_CNCT::Element_CNCT()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.4f;
|
||||
AirDrag = 0.04f * CFDS;
|
||||
AirLoss = 0.94f;
|
||||
@ -18,21 +18,20 @@ Element_CNCT::Element_CNCT()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 2;
|
||||
Hardness = 2;
|
||||
|
||||
|
||||
Weight = 55;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 100;
|
||||
Description = "Concrete, stronger than stone.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_HOT_GLOW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_CNCT::Element_CNCT()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1123.0f;
|
||||
HighTemperatureTransition = PT_LAVA;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_CNCT::~Element_CNCT() {}
|
||||
|
@ -8,7 +8,7 @@ Element_CO2::Element_CO2()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_GAS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 2.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.99f;
|
||||
@ -18,21 +18,20 @@ Element_CO2::Element_CO2()
|
||||
Diffusion = 1.0f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 1;
|
||||
|
||||
|
||||
Temperature = R_TEMP+273.15f;
|
||||
HeatConduct = 88;
|
||||
Description = "Carbon Dioxide. Heavy gas, drifts downwards. Carbonates water and turns to dry ice when cold.";
|
||||
|
||||
|
||||
Properties = TYPE_GAS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_CO2::Element_CO2()
|
||||
LowTemperatureTransition = PT_DRIC;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_CO2::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_CO2 static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_CO2::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
for (rx=-1; rx<2; rx++)
|
||||
for (ry=-1; ry<2; ry++)
|
||||
|
@ -8,7 +8,7 @@ Element_COAL::Element_COAL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SOLIDS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_COAL::Element_COAL()
|
||||
Diffusion = 0.0f;
|
||||
HotAir = 0.0f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 200;
|
||||
Description = "Coal, Burns very slowly. Gets red when hot.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_COAL::Element_COAL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_COAL::update;
|
||||
Graphics = &Element_COAL::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_COAL static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_COAL::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
if (parts[i].life<=0) {
|
||||
sim->create_part(i, x, y, PT_FIRE);
|
||||
return 1;
|
||||
@ -79,7 +78,7 @@ int Element_COAL::graphics(GRAPHICS_FUNC_ARGS)
|
||||
//Both COAL and Broken Coal
|
||||
{
|
||||
*colr += (cpart->tmp2-295.15f)/3;
|
||||
|
||||
|
||||
if (*colr > 170)
|
||||
*colr = 170;
|
||||
if (*colr < *colg)
|
||||
|
@ -8,7 +8,7 @@ Element_CONV::Element_CONV()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SPECIAL;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_CONV::Element_CONV()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Solid. Converts everything into whatever it first touches.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_DRAWONCTYPE|PROP_NOCTYPEDRAW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_CONV::Element_CONV()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_CONV::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_CONV static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_CONV::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
int ctype = parts[i].ctype&0xFF, ctypeExtra = parts[i].ctype>>8;
|
||||
if (ctype<=0 || ctype>=PT_NUM || !sim->elements[ctype].Enabled || ctype==PT_CONV || (ctype==PT_LIFE && (ctypeExtra<0 || ctypeExtra>=NGOL)))
|
||||
|
@ -8,7 +8,7 @@ Element_CRAY::Element_CRAY()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_CRAY::Element_CRAY()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 0;
|
||||
Description = "Particle Ray Emitter. Creates a beam of particles set by its ctype, with a range set by tmp.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_CRAY::Element_CRAY()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_CRAY::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_CRAY static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_CRAY::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int nxx, nyy, docontinue, nxi, nyi;
|
||||
// set ctype to things that touch it if it doesn't have one already
|
||||
if (parts[i].ctype<=0 || !sim->elements[parts[i].ctype&0xFF].Enabled)
|
||||
|
@ -30,7 +30,6 @@ Element_CRMC::Element_CRMC()
|
||||
HeatConduct = 35;
|
||||
Description = "Ceramic. Gets stronger under pressure.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID | PROP_NEUTPASS;
|
||||
|
||||
LowPressure = IPL;
|
||||
|
@ -8,7 +8,7 @@ Element_DCEL::Element_DCEL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_FORCE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_DCEL::Element_DCEL()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Decelerator, slows down nearby elements.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_DCEL::Element_DCEL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_DCEL::update;
|
||||
Graphics = &Element_DCEL::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_DESL::Element_DESL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 1.0f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_DESL::Element_DESL()
|
||||
Diffusion = 0.0f;
|
||||
HotAir = 0.0f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 2;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 5;
|
||||
|
||||
|
||||
Weight = 15;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 42;
|
||||
Description = "Liquid diesel. Explodes under high pressure and temperatures.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = 5.0f;
|
||||
@ -41,9 +40,8 @@ Element_DESL::Element_DESL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 335.0f;
|
||||
HighTemperatureTransition = PT_FIRE;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_DESL::~Element_DESL() {}
|
||||
|
@ -8,7 +8,7 @@ Element_DEST::Element_DEST()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = -0.05f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.95f;
|
||||
@ -18,21 +18,20 @@ Element_DEST::Element_DEST()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 101;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 150;
|
||||
Description = "More destructive Bomb, can break through virtually anything.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_LIFE_DEC|PROP_LIFE_KILL_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_DEST::Element_DEST()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_DEST::update;
|
||||
Graphics = &Element_DEST::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_DEST static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_DEST::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int rx = rand()%5-2;
|
||||
int ry = rand()%5-2;
|
||||
int r = pmap[y+ry][x+rx];
|
||||
|
@ -8,7 +8,7 @@ Element_DEUT::Element_DEUT()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_NUCLEAR;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_DEUT::Element_DEUT()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 31;
|
||||
|
||||
|
||||
Temperature = R_TEMP-2.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Deuterium oxide. Volume changes with temp, radioactive with neutrons.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_NEUTPASS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_DEUT::Element_DEUT()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_DEUT::update;
|
||||
Graphics = &Element_DEUT::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_DEUT static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_DEUT::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, trade, np;
|
||||
float gravtot = fabs(sim->gravy[(y/CELL)*(XRES/CELL)+(x/CELL)])+fabs(sim->gravx[(y/CELL)*(XRES/CELL)+(x/CELL)]);
|
||||
int maxlife = ((10000/(parts[i].temp + 1))-1);
|
||||
|
@ -8,7 +8,7 @@ Element_DLAY::Element_DLAY()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWERED;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_DLAY::Element_DLAY()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = 4.0f+273.15f;
|
||||
HeatConduct = 0;
|
||||
Description = "Conducts with temperature-dependent delay. (use HEAT/COOL).";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_DLAY::Element_DLAY()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_DLAY::update;
|
||||
Graphics = &Element_DLAY::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_DLAY static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_DLAY::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, oldl;
|
||||
oldl = parts[i].life;
|
||||
if (parts[i].life>0)
|
||||
|
@ -8,7 +8,7 @@ Element_DMG::Element_DMG()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_FORCE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_DMG::Element_DMG()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 30;
|
||||
|
||||
|
||||
Temperature = R_TEMP-2.0f +273.15f;
|
||||
HeatConduct = 29;
|
||||
Description = "Generates damaging pressure and breaks any elements it hits.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_LIFE_DEC|PROP_LIFE_KILL_DEC|PROP_SPARKSETTLE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,18 +40,18 @@ Element_DMG::Element_DMG()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_DMG::update;
|
||||
Graphics = &Element_DMG::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_DMG static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_DMG::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rr, rx, ry, nxi, nxj, t, dist;
|
||||
int rad = 25;
|
||||
float angle, fx, fy;
|
||||
|
||||
|
||||
for (rx=-1; rx<2; rx++)
|
||||
for (ry=-1; ry<2; ry++)
|
||||
if (BOUNDS_CHECK && (rx || ry))
|
||||
|
@ -8,7 +8,7 @@ Element_DMND::Element_DMND()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SPECIAL;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_DMND::Element_DMND()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 186;
|
||||
Description = "Diamond. Indestructible.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_DMND::Element_DMND()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_DMND::~Element_DMND() {}
|
||||
|
@ -30,7 +30,6 @@ Element_DRAY::Element_DRAY()
|
||||
HeatConduct = 0;
|
||||
Description = "Duplicator ray. Replicates a line of particles in front of it.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC;
|
||||
|
||||
LowPressure = IPL;
|
||||
|
@ -8,7 +8,7 @@ Element_DRIC::Element_DRIC()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SOLIDS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_DRIC::Element_DRIC()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = -0.0005f* CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = 172.65f;
|
||||
HeatConduct = 2;
|
||||
Description = "Dry Ice, formed when CO2 is cooled.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_DRIC::Element_DRIC()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 195.65f;
|
||||
HighTemperatureTransition = PT_CO2;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_DRIC::~Element_DRIC() {}
|
||||
|
@ -8,7 +8,7 @@ Element_DSTW::Element_DSTW()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_DSTW::Element_DSTW()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 30;
|
||||
|
||||
|
||||
Temperature = R_TEMP-2.0f +273.15f;
|
||||
HeatConduct = 23;
|
||||
Description = "Distilled water, does not conduct electricity.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_NEUTPASS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_DSTW::Element_DSTW()
|
||||
LowTemperatureTransition = PT_ICEI;
|
||||
HighTemperature = 373.0f;
|
||||
HighTemperatureTransition = PT_WTRV;
|
||||
|
||||
|
||||
Update = &Element_DSTW::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_DSTW static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_DSTW::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
for (rx=-1; rx<2; rx++)
|
||||
for (ry=-1; ry<2; ry++)
|
||||
|
@ -8,7 +8,7 @@ Element_DTEC::Element_DTEC()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SENSOR;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.96f;
|
||||
@ -18,21 +18,20 @@ Element_DTEC::Element_DTEC()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 0;
|
||||
Description = "Detector, creates a spark when something with its ctype is nearby.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_DTEC::Element_DTEC()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_DTEC::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_DTEC static int update(UPDATE_FUNC_ARGS)
|
||||
|
@ -8,7 +8,7 @@ Element_DUST::Element_DUST()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.7f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.96f;
|
||||
@ -18,21 +18,20 @@ Element_DUST::Element_DUST()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 10;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 30;
|
||||
|
||||
|
||||
Weight = 85;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "Very light dust. Flammable.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_LIFE_DEC|PROP_LIFE_KILL_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_DUST::Element_DUST()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
Graphics = NULL;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_DYST::Element_DYST()
|
||||
MenuVisible = 0;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.7f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.96f;
|
||||
@ -18,21 +18,20 @@ Element_DYST::Element_DYST()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 20;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 30;
|
||||
|
||||
|
||||
Weight = 80;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "Dead Yeast.";
|
||||
|
||||
|
||||
Properties = TYPE_PART;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_DYST::Element_DYST()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 473.0f;
|
||||
HighTemperatureTransition = PT_DUST;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_DYST::~Element_DYST() {}
|
||||
|
@ -8,7 +8,7 @@ Element_ELEC::Element_ELEC()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_NUCLEAR;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 1.00f;
|
||||
@ -18,21 +18,20 @@ Element_ELEC::Element_ELEC()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = -1;
|
||||
|
||||
|
||||
Temperature = R_TEMP+200.0f+273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Electrons. Sparks electronics, reacts with NEUT and WATR.";
|
||||
|
||||
|
||||
Properties = TYPE_ENERGY|PROP_LIFE_DEC|PROP_LIFE_KILL_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_ELEC::Element_ELEC()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_ELEC::update;
|
||||
Graphics = &Element_ELEC::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_ELEC static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_ELEC::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rt, rx, ry, nb, rrx, rry;
|
||||
for (rx=-2; rx<=2; rx++)
|
||||
for (ry=-2; ry<=2; ry++)
|
||||
|
@ -8,7 +8,7 @@ Element_EMBR::Element_EMBR()
|
||||
MenuVisible = 0;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.4f;
|
||||
AirDrag = 0.001f * CFDS;
|
||||
AirLoss = 0.99f;
|
||||
@ -18,21 +18,20 @@ Element_EMBR::Element_EMBR()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 30;
|
||||
|
||||
|
||||
Temperature = 500.0f +273.15f;
|
||||
HeatConduct = 29;
|
||||
Description = "Sparks. Formed by explosions.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_LIFE_DEC|PROP_LIFE_KILL|PROP_SPARKSETTLE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_EMBR::Element_EMBR()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_EMBR::update;
|
||||
Graphics = &Element_EMBR::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_EMP::Element_EMP()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_EMP::Element_EMP()
|
||||
Diffusion = 0.0f;
|
||||
HotAir = 0.0f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 3;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 121;
|
||||
Description = "Electromagnetic pulse. Breaks activated electronics.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_EMP::Element_EMP()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_EMP::update;
|
||||
Graphics = &Element_EMP::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_ETRD::Element_ETRD()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_ETRD::Element_ETRD()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Electrode. Creates a surface that allows Plasma arcs. (Use sparingly)";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_CONDUCTS|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_ETRD::Element_ETRD()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_ETRD::~Element_ETRD() {}
|
||||
|
@ -8,7 +8,7 @@ Element_EXOT::Element_EXOT()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_NUCLEAR;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.3f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.95f;
|
||||
@ -18,21 +18,20 @@ Element_EXOT::Element_EXOT()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.0003f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 2;
|
||||
|
||||
|
||||
Weight = 46;
|
||||
|
||||
|
||||
Temperature = R_TEMP-2.0f +273.15f;
|
||||
HeatConduct = 250;
|
||||
Description = "Exotic matter. Explodes with excess exposure to electrons. Has many other odd reactions.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_NEUTPASS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_EXOT::Element_EXOT()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_EXOT::update;
|
||||
Graphics = &Element_EXOT::graphics;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
unsigned char HeatConduct;
|
||||
const char *Description;
|
||||
unsigned int Properties;
|
||||
|
||||
|
||||
float LowPressure;
|
||||
int LowPressureTransition;
|
||||
float HighPressure;
|
||||
@ -50,7 +50,7 @@ public:
|
||||
int (*Update) (UPDATE_FUNC_ARGS);
|
||||
int (*Graphics) (GRAPHICS_FUNC_ARGS);
|
||||
VideoBuffer * (*IconGenerator)(int, int, int);
|
||||
|
||||
|
||||
Element();
|
||||
virtual ~Element() {}
|
||||
static int defaultGraphics(GRAPHICS_FUNC_ARGS);
|
||||
|
@ -8,7 +8,7 @@ Element_FIGH::Element_FIGH()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SPECIAL;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.5f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.2f;
|
||||
@ -18,21 +18,20 @@ Element_FIGH::Element_FIGH()
|
||||
Diffusion = 0.0f;
|
||||
HotAir = 0.00f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 50;
|
||||
|
||||
|
||||
Temperature = R_TEMP+14.6f+273.15f;
|
||||
HeatConduct = 0;
|
||||
Description = "Fighter. Tries to kill stickmen. You must first give it an element to kill him with.";
|
||||
|
||||
|
||||
Properties = PROP_NOCTYPEDRAW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_FIGH::Element_FIGH()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 620.0f;
|
||||
HighTemperatureTransition = PT_FIRE;
|
||||
|
||||
|
||||
Update = &Element_FIGH::update;
|
||||
Graphics = &Element_STKM::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_FILT::Element_FILT()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SOLIDS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_FILT::Element_FILT()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Filter for photons, changes the color.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID | PROP_NOAMBHEAT | PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_FILT::Element_FILT()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
Graphics = &Element_FILT::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_FIRE::Element_FIRE()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.9f;
|
||||
AirDrag = 0.04f * CFDS;
|
||||
AirLoss = 0.97f;
|
||||
@ -18,21 +18,20 @@ Element_FIRE::Element_FIRE()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.001f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 2;
|
||||
|
||||
|
||||
Temperature = R_TEMP+400.0f+273.15f;
|
||||
HeatConduct = 88;
|
||||
Description = "Ignites flammable materials. Heats air.";
|
||||
|
||||
|
||||
Properties = TYPE_GAS|PROP_LIFE_DEC|PROP_LIFE_KILL;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_FIRE::Element_FIRE()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 2773.0f;
|
||||
HighTemperatureTransition = PT_PLSM;
|
||||
|
||||
|
||||
Update = &Element_FIRE::update;
|
||||
Graphics = &Element_FIRE::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_FIRE static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_FIRE::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, rt, t = parts[i].type;
|
||||
switch (t)
|
||||
{
|
||||
@ -227,12 +226,12 @@ int Element_FIRE::graphics(GRAPHICS_FUNC_ARGS)
|
||||
*colr = (unsigned char)ren->flm_data[caddress];
|
||||
*colg = (unsigned char)ren->flm_data[caddress+1];
|
||||
*colb = (unsigned char)ren->flm_data[caddress+2];
|
||||
|
||||
|
||||
*firea = 255;
|
||||
*firer = *colr;
|
||||
*fireg = *colg;
|
||||
*fireb = *colb;
|
||||
|
||||
|
||||
*pixel_mode = PMODE_NONE; //Clear default, don't draw pixel
|
||||
*pixel_mode |= FIRE_ADD;
|
||||
//Returning 0 means dynamic, do not cache
|
||||
|
@ -12,7 +12,7 @@ Element_FIRW::Element_FIRW()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.2f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.96f;
|
||||
@ -22,21 +22,20 @@ Element_FIRW::Element_FIRW()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 30;
|
||||
|
||||
|
||||
Weight = 55;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "Fireworks! Colorful, set off by fire.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -45,14 +44,14 @@ Element_FIRW::Element_FIRW()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_FIRW::update;
|
||||
Graphics = &Element_FIRW::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_FIRW static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_FIRW::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, rt, np;
|
||||
if (parts[i].tmp<=0) {
|
||||
for (rx=-1; rx<2; rx++)
|
||||
|
@ -8,7 +8,7 @@ Element_FOG::Element_FOG()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_GAS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.8f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.4f;
|
||||
@ -18,21 +18,20 @@ Element_FOG::Element_FOG()
|
||||
Diffusion = 0.99f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 30;
|
||||
|
||||
|
||||
Weight = 1;
|
||||
|
||||
|
||||
Temperature = 243.15f;
|
||||
HeatConduct = 100;
|
||||
Description = "Fog, created when an electric current is passed through RIME.";
|
||||
|
||||
|
||||
Properties = TYPE_GAS|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_FOG::Element_FOG()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 373.15f;
|
||||
HighTemperatureTransition = PT_WTRV;
|
||||
|
||||
|
||||
Update = &Element_FOG::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_FOG static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_FOG::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
for (rx=-1; rx<2; rx++)
|
||||
for (ry=-1; ry<2; ry++)
|
||||
|
@ -8,7 +8,7 @@ Element_FRAY::Element_FRAY()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_FORCE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_FRAY::Element_FRAY()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = 20.0f+0.0f +273.15f;
|
||||
HeatConduct = 0;
|
||||
Description = "Force Emitter. Pushes or pulls objects based on its temperature. Use like ARAY.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_FRAY::Element_FRAY()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_FRAY::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_FRAY static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_FRAY::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, nxx, nyy, len, nxi, nyi, rx, ry;
|
||||
for (rx=-1; rx<2; rx++)
|
||||
for (ry=-1; ry<2; ry++)
|
||||
|
@ -8,7 +8,7 @@ Element_FRME::Element_FRME()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_FORCE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_FRME::Element_FRME()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 0;
|
||||
Description = "Frame, can be used with pistons to push many particles.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_FRME::Element_FRME()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Graphics = &Element_FRME::graphics;
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@ Element_FRZW::Element_FRZW()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_CRACKER2;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_FRZW::Element_FRZW()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 30;
|
||||
|
||||
|
||||
Temperature = 120.0f;
|
||||
HeatConduct = 29;
|
||||
Description = "Freeze water. Hybrid liquid formed when Freeze powder melts.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID | PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_FRZW::Element_FRZW()
|
||||
LowTemperatureTransition = PT_ICEI;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_FRZW::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_FRZW static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_FRZW::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
for (rx=-1; rx<2; rx++)
|
||||
for (ry=-1; ry<2; ry++)
|
||||
|
@ -8,7 +8,7 @@ Element_FRZZ::Element_FRZZ()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.7f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.96f;
|
||||
@ -18,21 +18,20 @@ Element_FRZZ::Element_FRZZ()
|
||||
Diffusion = 0.01f;
|
||||
HotAir = -0.00005f* CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 50;
|
||||
|
||||
|
||||
Temperature = 253.15f;
|
||||
HeatConduct = 46;
|
||||
Description = "Freeze powder. When melted, forms ice that always cools. Spreads with regular water.";
|
||||
|
||||
|
||||
Properties = TYPE_PART;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = 1.8f;
|
||||
@ -41,14 +40,13 @@ Element_FRZZ::Element_FRZZ()
|
||||
LowTemperatureTransition = PT_ICEI;
|
||||
HighTemperature = 273.15;
|
||||
HighTemperatureTransition = PT_FRZW;
|
||||
|
||||
|
||||
Update = &Element_FRZZ::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_FRZZ static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_FRZZ::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
for (rx=-1; rx<2; rx++)
|
||||
for (ry=-1; ry<2; ry++)
|
||||
|
@ -8,7 +8,7 @@ Element_FSEP::Element_FSEP()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.7f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.96f;
|
||||
@ -18,21 +18,20 @@ Element_FSEP::Element_FSEP()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 30;
|
||||
|
||||
|
||||
Weight = 70;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "Fuse Powder. Burns slowly like FUSE.";
|
||||
|
||||
|
||||
Properties = TYPE_PART;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_FSEP::Element_FSEP()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_FSEP::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_FSEP static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_FSEP::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
if (parts[i].life<=0) {
|
||||
r = sim->create_part(i, x, y, PT_PLSM);
|
||||
|
@ -8,7 +8,7 @@ Element_FUSE::Element_FUSE()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_FUSE::Element_FUSE()
|
||||
Diffusion = 0.0f;
|
||||
HotAir = 0.0f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 200;
|
||||
Description = "Burns slowly. Ignites at somewhat high temperatures or with electricity.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_FUSE::Element_FUSE()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_FUSE::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_FUSE static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_FUSE::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
if (parts[i].life<=0) {
|
||||
r = sim->create_part(i, x, y, PT_PLSM);
|
||||
@ -72,7 +70,7 @@ int Element_FUSE::update(UPDATE_FUNC_ARGS)
|
||||
}
|
||||
else if (parts[i].tmp<40)
|
||||
parts[i].tmp--;
|
||||
|
||||
|
||||
for (rx=-2; rx<3; rx++)
|
||||
for (ry=-2; ry<3; ry++)
|
||||
if (BOUNDS_CHECK && (rx || ry))
|
||||
|
@ -8,7 +8,7 @@ Element_FWRK::Element_FWRK()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.4f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.99f;
|
||||
@ -18,21 +18,20 @@ Element_FWRK::Element_FWRK()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 97;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 100;
|
||||
Description = "Original version of fireworks, activated by heat/neutrons.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_FWRK::Element_FWRK()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_FWRK::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_FWRK static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_FWRK::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
if (parts[i].life == 0 && ((surround_space && parts[i].temp>400 && (9+parts[i].temp/40)>rand()%100000) || parts[i].ctype == PT_DUST))
|
||||
{
|
||||
float gx, gy, multiplier, gmax;
|
||||
|
@ -8,7 +8,7 @@ Element_GAS::Element_GAS()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_GAS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 1.0f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.99f;
|
||||
@ -18,21 +18,20 @@ Element_GAS::Element_GAS()
|
||||
Diffusion = 0.75f;
|
||||
HotAir = 0.001f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 600;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 1;
|
||||
|
||||
|
||||
Temperature = R_TEMP+2.0f +273.15f;
|
||||
HeatConduct = 42;
|
||||
Description = "Diffuses quickly and flammable. Liquefies into OIL under pressure.";
|
||||
|
||||
|
||||
Properties = TYPE_GAS | PROP_NEUTPASS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = 6.0f;
|
||||
@ -41,9 +40,8 @@ Element_GAS::Element_GAS()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 573.0f;
|
||||
HighTemperatureTransition = PT_FIRE;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_GAS::~Element_GAS() {}
|
||||
|
@ -30,7 +30,6 @@ Element_GBMB::Element_GBMB()
|
||||
HeatConduct = 29;
|
||||
Description = "Gravity bomb. Sticks to the first object it touches then produces a strong gravity push.";
|
||||
|
||||
|
||||
Properties = TYPE_PART|PROP_LIFE_DEC|PROP_LIFE_KILL_DEC;
|
||||
|
||||
LowPressure = IPL;
|
||||
@ -48,7 +47,7 @@ Element_GBMB::Element_GBMB()
|
||||
|
||||
//#TPT-Directive ElementHeader Element_GBMB static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_GBMB::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int rx,ry,r;
|
||||
if (parts[i].life<=0)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ Element_GEL::Element_GEL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_GEL::Element_GEL()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 35;
|
||||
|
||||
|
||||
Temperature = R_TEMP-2.0f +273.15f;
|
||||
HeatConduct = 29;
|
||||
Description = "Gel. A liquid with variable viscosity and heat conductivity.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_LIFE_DEC|PROP_NEUTPENETRATE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_GEL::Element_GEL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_GEL::update;
|
||||
Graphics = &Element_GEL::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_GEL static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_GEL::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, rt;
|
||||
bool gel;
|
||||
int absorbChanceDenom;
|
||||
|
@ -8,7 +8,7 @@ Element_GLAS::Element_GLAS()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SOLIDS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_GLAS::Element_GLAS()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 150;
|
||||
Description = "Glass. Meltable. Shatters under pressure, and refracts photons.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID | PROP_NEUTPASS | PROP_HOT_GLOW | PROP_SPARKSETTLE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_GLAS::Element_GLAS()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1973.0f;
|
||||
HighTemperatureTransition = PT_LAVA;
|
||||
|
||||
|
||||
Update = &Element_GLAS::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_GLAS static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_GLAS::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
parts[i].pavg[0] = parts[i].pavg[1];
|
||||
parts[i].pavg[1] = sim->pv[y/CELL][x/CELL];
|
||||
float diff = parts[i].pavg[1] - parts[i].pavg[0];
|
||||
|
@ -8,7 +8,7 @@ Element_GLOW::Element_GLOW()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.3f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_GLOW::Element_GLOW()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 2;
|
||||
|
||||
|
||||
Weight = 40;
|
||||
|
||||
|
||||
Temperature = R_TEMP+20.0f+273.15f;
|
||||
HeatConduct = 44;
|
||||
Description = "Glow, Glows under pressure.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_GLOW::Element_GLOW()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_GLOW::update;
|
||||
Graphics = &Element_GLOW::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_GLOW static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_GLOW::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
for (rx=-1; rx<2; rx++)
|
||||
for (ry=-1; ry<2; ry++)
|
||||
@ -83,7 +82,7 @@ int Element_GLOW::graphics(GRAPHICS_FUNC_ARGS)
|
||||
*colr = restrict_flt(64.0f+cpart->temp-(275.13f+32.0f), 0, 255);
|
||||
*colg = restrict_flt(64.0f+cpart->ctype, 0, 255);
|
||||
*colb = restrict_flt(64.0f+cpart->tmp, 0, 255);
|
||||
|
||||
|
||||
*pixel_mode |= FIRE_ADD;
|
||||
return 0;
|
||||
}
|
||||
|
@ -31,7 +31,6 @@ Element_GOLD::Element_GOLD()
|
||||
HeatConduct = 251;
|
||||
Description = "Corrosion resistant metal, will reverse corrosion of iron.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_CONDUCTS|PROP_HOT_GLOW|PROP_LIFE_DEC|PROP_NEUTPASS;
|
||||
|
||||
LowPressure = IPL;
|
||||
@ -49,7 +48,7 @@ Element_GOLD::Element_GOLD()
|
||||
|
||||
//#TPT-Directive ElementHeader Element_GOLD static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_GOLD::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int rx, ry, r, rndstore;
|
||||
static int checkCoordsX[] = { -4, 4, 0, 0 };
|
||||
static int checkCoordsY[] = { 0, 0, -4, 4 };
|
||||
|
@ -8,7 +8,7 @@ Element_GOO::Element_GOO()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SOLIDS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.97f;
|
||||
@ -18,21 +18,20 @@ Element_GOO::Element_GOO()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 12;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 75;
|
||||
Description = "Deforms and disappears under pressure.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID | PROP_NEUTPENETRATE|PROP_LIFE_DEC|PROP_LIFE_KILL_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,16 +40,15 @@ Element_GOO::Element_GOO()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_GOO::update;
|
||||
|
||||
}
|
||||
|
||||
#define ADVECTION 0.1f
|
||||
|
||||
//#TPT-Directive ElementHeader Element_GOO static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_GOO::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
if (!parts[i].life && sim->pv[y/CELL][x/CELL]>1.0f)
|
||||
parts[i].life = rand()%80+300;
|
||||
if (parts[i].life)
|
||||
|
@ -8,7 +8,7 @@ Element_GPMP::Element_GPMP()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWERED;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_GPMP::Element_GPMP()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = 0.0f +273.15f;
|
||||
HeatConduct = 0;
|
||||
Description = "Gravity pump. Changes gravity to its temp when activated. (use HEAT/COOL)";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_GPMP::Element_GPMP()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_GPMP::update;
|
||||
Graphics = &Element_GPMP::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_GPMP static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_GPMP::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
if (parts[i].life!=10)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ Element_GRAV::Element_GRAV()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWDERS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.7f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 1.00f;
|
||||
@ -18,21 +18,20 @@ Element_GRAV::Element_GRAV()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 10;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 30;
|
||||
|
||||
|
||||
Weight = 85;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "Very light dust. Changes colour based on velocity.";
|
||||
|
||||
|
||||
Properties = TYPE_PART;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_GRAV::Element_GRAV()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
Graphics = &Element_GRAV::graphics;
|
||||
}
|
||||
|
@ -30,7 +30,6 @@ Element_GRVT::Element_GRVT()
|
||||
HeatConduct = 61;
|
||||
Description = "Gravitons. Create Newtonian Gravity.";
|
||||
|
||||
|
||||
Properties = TYPE_ENERGY|PROP_LIFE_DEC|PROP_LIFE_KILL_DEC;
|
||||
|
||||
LowPressure = IPL;
|
||||
|
@ -8,7 +8,7 @@ Element_GUNP::Element_GUNP()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.7f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.94f;
|
||||
@ -18,21 +18,20 @@ Element_GUNP::Element_GUNP()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 1;
|
||||
|
||||
|
||||
Flammable = 600;
|
||||
Explosive = 1;
|
||||
Meltable = 0;
|
||||
Hardness = 10;
|
||||
|
||||
|
||||
Weight = 85;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 97;
|
||||
Description = "Gunpowder. Light dust, explodes on contact with fire or spark.";
|
||||
|
||||
|
||||
Properties = TYPE_PART;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_GUNP::Element_GUNP()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 673.0f;
|
||||
HighTemperatureTransition = PT_FIRE;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_GUNP::~Element_GUNP() {}
|
||||
|
@ -8,7 +8,7 @@ Element_H2::Element_H2()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_GAS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 2.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.99f;
|
||||
@ -18,21 +18,20 @@ Element_H2::Element_H2()
|
||||
Diffusion = 3.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 1;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Hydrogen. Combusts with OXYG to make WATR. Undergoes fusion at high temperature and pressure.";
|
||||
|
||||
|
||||
Properties = TYPE_GAS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_H2::Element_H2()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_H2::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_H2 static int update(UPDATE_FUNC_ARGS)
|
||||
|
@ -8,7 +8,7 @@ Element_HSWC::Element_HSWC()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWERED;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_HSWC::Element_HSWC()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Heat switch. Conducts heat only when activated.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,14 @@ Element_HSWC::Element_HSWC()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_HSWC::update;
|
||||
Graphics = &Element_HSWC::graphics;
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_HSWC static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_HSWC::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry;
|
||||
if (parts[i].life!=10)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ Element_ICEI::Element_ICEI()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SOLIDS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_ICEI::Element_ICEI()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = -0.0003f* CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP-50.0f+273.15f;
|
||||
HeatConduct = 46;
|
||||
Description = "Crushes under pressure. Cools down air.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC|PROP_NEUTPASS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = 0.8f;
|
||||
@ -41,9 +40,8 @@ Element_ICEI::Element_ICEI()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 252.05f;
|
||||
HighTemperatureTransition = ST;
|
||||
|
||||
|
||||
Update = &Element_ICEI::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_ICEI static int update(UPDATE_FUNC_ARGS)
|
||||
|
@ -8,7 +8,7 @@ Element_IGNT::Element_IGNT()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_IGNT::Element_IGNT()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 88;
|
||||
Description = "Ignition cord. Burns slowly with fire and sparks.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID | PROP_NEUTPENETRATE | PROP_SPARKSETTLE | PROP_LIFE_KILL;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_IGNT::Element_IGNT()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 673.0f;
|
||||
HighTemperatureTransition = PT_FIRE;
|
||||
|
||||
|
||||
Update = &Element_IGNT::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_IGNT static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_IGNT::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, rt;
|
||||
if(parts[i].tmp==0)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ Element_INSL::Element_INSL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.95f;
|
||||
@ -18,21 +18,20 @@ Element_INSL::Element_INSL()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 7;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 10;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 0;
|
||||
Description = "Insulator, does not conduct heat and blocks electricity.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_INSL::Element_INSL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_INSL::~Element_INSL() {}
|
||||
|
@ -8,7 +8,7 @@ Element_INST::Element_INST()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_INST::Element_INST()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 1;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Instantly conducts, PSCN to charge, NSCN to take.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_INST::Element_INST()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_INST::~Element_INST() {}
|
||||
|
@ -8,7 +8,7 @@ Element_INVIS::Element_INVIS()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SENSOR;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_INVIS::Element_INVIS()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 15;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 164;
|
||||
Description = "Invisible to particles while under pressure.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID | PROP_NEUTPASS;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_INVIS::Element_INVIS()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_INVIS::update;
|
||||
Graphics = &Element_INVIS::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_INWR::Element_INWR()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_INWR::Element_INWR()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 1;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Insulated Wire. Doesn't conduct to metal or semiconductors.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_CONDUCTS|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_INWR::Element_INWR()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1687.0f;
|
||||
HighTemperatureTransition = PT_LAVA;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_INWR::~Element_INWR() {}
|
||||
|
@ -8,7 +8,7 @@ Element_IRON::Element_IRON()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_SOLIDS;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_IRON::Element_IRON()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 1;
|
||||
Hardness = 50;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Rusts with salt, can be used for electrolysis of WATR.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_CONDUCTS|PROP_LIFE_DEC|PROP_HOT_GLOW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_IRON::Element_IRON()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1687.0f;
|
||||
HighTemperatureTransition = PT_LAVA;
|
||||
|
||||
|
||||
Update = &Element_IRON::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_IRON static int update(UPDATE_FUNC_ARGS)
|
||||
|
@ -8,7 +8,7 @@ Element_ISOZ::Element_ISOZ()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_NUCLEAR;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_ISOZ::Element_ISOZ()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 24;
|
||||
|
||||
|
||||
Temperature = R_TEMP-2.0f +273.15f;
|
||||
HeatConduct = 29;
|
||||
Description = "Isotope-Z. Radioactive liquid, decays into photons when touching PHOT or under negative pressure.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_NEUTPENETRATE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_ISOZ::Element_ISOZ()
|
||||
LowTemperatureTransition = PT_ISZS;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_ISOZ::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_ISOZ static int update(UPDATE_FUNC_ARGS)
|
||||
|
@ -8,7 +8,7 @@ Element_ISZS::Element_ISZS()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_NUCLEAR;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_ISZS::Element_ISZS()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = -0.0007f* CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 1;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = 140.00f;
|
||||
HeatConduct = 251;
|
||||
Description = "Solid form of ISOZ, slowly decays into PHOT.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_ISZS::Element_ISZS()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 300.0f;
|
||||
HighTemperatureTransition = PT_ISOZ;
|
||||
|
||||
|
||||
Update = &Element_ISZS::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_ISZS static int update(UPDATE_FUNC_ARGS)
|
||||
|
@ -8,7 +8,7 @@ Element_LAVA::Element_LAVA()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.3f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.95f;
|
||||
@ -18,21 +18,20 @@ Element_LAVA::Element_LAVA()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.0003f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 2;
|
||||
|
||||
|
||||
Weight = 45;
|
||||
|
||||
|
||||
Temperature = R_TEMP+1500.0f+273.15f;
|
||||
HeatConduct = 60;
|
||||
Description = "Molten lava. Ignites flammable materials. Generated when metals and other materials melt, solidifies when cold.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_LAVA::Element_LAVA()
|
||||
LowTemperatureTransition = ST;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_FIRE::update;
|
||||
Graphics = &Element_LAVA::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_LCRY::Element_LCRY()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_POWERED;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_LCRY::Element_LCRY()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Liquid Crystal. Changes colour when charged. (PSCN Charges, NSCN Discharges)";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,7 @@ Element_LCRY::Element_LCRY()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1273.0f;
|
||||
HighTemperatureTransition = PT_BGLA;
|
||||
|
||||
|
||||
Update = &Element_LCRY::update;
|
||||
Graphics = &Element_LCRY::graphics;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ Element_LIFE::Element_LIFE()
|
||||
MenuVisible = 0;
|
||||
MenuSection = SC_LIFE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -22,21 +22,20 @@ Element_LIFE::Element_LIFE()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = 9000.0f;
|
||||
HeatConduct = 40;
|
||||
Description = "Game Of Life! B3/S23";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_LIFE;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -45,7 +44,7 @@ Element_LIFE::Element_LIFE()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
Graphics = &Element_LIFE::graphics;
|
||||
|
||||
|
@ -9,7 +9,7 @@ Element_LIGH::Element_LIGH()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -19,21 +19,20 @@ Element_LIGH::Element_LIGH()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 0;
|
||||
Description = "Lightning. Change the brush size to set the size of the lightning.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -42,7 +41,7 @@ Element_LIGH::Element_LIGH()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_LIGH::update;
|
||||
Graphics = &Element_LIGH::graphics;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ Element_LNTG::Element_LNTG()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_LNTG::Element_LNTG()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 30;
|
||||
|
||||
|
||||
Temperature = 70.15f;
|
||||
HeatConduct = 70;
|
||||
Description = "Liquid Nitrogen. Very cold, disappears whenever it touches anything warmer.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_LNTG::Element_LNTG()
|
||||
LowTemperatureTransition = PT_NICE;
|
||||
HighTemperature = 77.0f;
|
||||
HighTemperatureTransition = PT_NONE;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_LNTG::~Element_LNTG() {}
|
||||
|
@ -8,7 +8,7 @@ Element_LO2::Element_LO2()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.6f;
|
||||
AirDrag = 0.01f * CFDS;
|
||||
AirLoss = 0.98f;
|
||||
@ -18,21 +18,20 @@ Element_LO2::Element_LO2()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 5000;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 30;
|
||||
|
||||
|
||||
Temperature = 80.0f;
|
||||
HeatConduct = 70;
|
||||
Description = "Liquid Oxygen. Very cold. Reacts with fire.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_LO2::Element_LO2()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 90.1f;
|
||||
HighTemperatureTransition = PT_O2;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_LO2::~Element_LO2() {}
|
||||
|
@ -8,7 +8,7 @@ Element_LOLZ::Element_LOLZ()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_CRACKER2;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.00f;
|
||||
@ -18,21 +18,20 @@ Element_LOLZ::Element_LOLZ()
|
||||
Diffusion = 0.0f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = 373.0f;
|
||||
HeatConduct = 40;
|
||||
Description = "Lolz";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,6 @@ Element_LOLZ::Element_LOLZ()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_LOLZ static int RuleTable[9][9]
|
||||
|
@ -8,7 +8,7 @@ Element_LOVE::Element_LOVE()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_CRACKER2;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.00f;
|
||||
@ -18,21 +18,20 @@ Element_LOVE::Element_LOVE()
|
||||
Diffusion = 0.0f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 0;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = 373.0f;
|
||||
HeatConduct = 40;
|
||||
Description = "Love...";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,7 +40,6 @@ Element_LOVE::Element_LOVE()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_LOVE static int RuleTable[9][9]
|
||||
|
@ -8,7 +8,7 @@ Element_LRBD::Element_LRBD()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_EXPLOSIVE;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.3f;
|
||||
AirDrag = 0.02f * CFDS;
|
||||
AirLoss = 0.95f;
|
||||
@ -18,21 +18,20 @@ Element_LRBD::Element_LRBD()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000001f* CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 1000;
|
||||
Explosive = 1;
|
||||
Meltable = 0;
|
||||
Hardness = 2;
|
||||
|
||||
|
||||
Weight = 45;
|
||||
|
||||
|
||||
Temperature = R_TEMP+45.0f+273.15f;
|
||||
HeatConduct = 170;
|
||||
Description = "Liquid Rubidium.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_CONDUCTS|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_LRBD::Element_LRBD()
|
||||
LowTemperatureTransition = PT_RBDM;
|
||||
HighTemperature = 961.0f;
|
||||
HighTemperatureTransition = PT_FIRE;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_LRBD::~Element_LRBD() {}
|
||||
|
@ -8,7 +8,7 @@ Element_MERC::Element_MERC()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_LIQUID;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.4f;
|
||||
AirDrag = 0.04f * CFDS;
|
||||
AirLoss = 0.94f;
|
||||
@ -18,21 +18,20 @@ Element_MERC::Element_MERC()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 2;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 0;
|
||||
Hardness = 20;
|
||||
|
||||
|
||||
Weight = 91;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "Mercury. Volume changes with temperature, Conductive.";
|
||||
|
||||
|
||||
Properties = TYPE_LIQUID|PROP_CONDUCTS|PROP_NEUTABSORB|PROP_LIFE_DEC;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,14 +40,13 @@ Element_MERC::Element_MERC()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = ITH;
|
||||
HighTemperatureTransition = NT;
|
||||
|
||||
|
||||
Update = &Element_MERC::update;
|
||||
|
||||
}
|
||||
|
||||
//#TPT-Directive ElementHeader Element_MERC static int update(UPDATE_FUNC_ARGS)
|
||||
int Element_MERC::update(UPDATE_FUNC_ARGS)
|
||||
{
|
||||
{
|
||||
int r, rx, ry, trade, np;
|
||||
int maxtmp = ((10000/(parts[i].temp + 1))-1);
|
||||
if ((10000%((int)parts[i].temp+1))>rand()%((int)parts[i].temp+1))
|
||||
|
@ -8,7 +8,7 @@ Element_METL::Element_METL()
|
||||
MenuVisible = 1;
|
||||
MenuSection = SC_ELEC;
|
||||
Enabled = 1;
|
||||
|
||||
|
||||
Advection = 0.0f;
|
||||
AirDrag = 0.00f * CFDS;
|
||||
AirLoss = 0.90f;
|
||||
@ -18,21 +18,20 @@ Element_METL::Element_METL()
|
||||
Diffusion = 0.00f;
|
||||
HotAir = 0.000f * CFDS;
|
||||
Falldown = 0;
|
||||
|
||||
|
||||
Flammable = 0;
|
||||
Explosive = 0;
|
||||
Meltable = 1;
|
||||
Hardness = 1;
|
||||
|
||||
|
||||
Weight = 100;
|
||||
|
||||
|
||||
Temperature = R_TEMP+0.0f +273.15f;
|
||||
HeatConduct = 251;
|
||||
Description = "The basic conductor. Meltable.";
|
||||
|
||||
|
||||
Properties = TYPE_SOLID|PROP_CONDUCTS|PROP_LIFE_DEC|PROP_HOT_GLOW;
|
||||
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
HighPressure = IPH;
|
||||
@ -41,9 +40,8 @@ Element_METL::Element_METL()
|
||||
LowTemperatureTransition = NT;
|
||||
HighTemperature = 1273.0f;
|
||||
HighTemperatureTransition = PT_LAVA;
|
||||
|
||||
|
||||
Update = NULL;
|
||||
|
||||
}
|
||||
|
||||
Element_METL::~Element_METL() {}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user