Another experimental element, floats on water, supports other structures
This commit is contained in:
parent
4a3f3e763c
commit
b8e2113b05
@ -2044,6 +2044,10 @@ void Simulation::init_can_move()
|
|||||||
can_move[movingType][PT_VIBR] = 1;
|
can_move[movingType][PT_VIBR] = 1;
|
||||||
can_move[movingType][PT_BVBR] = 1;
|
can_move[movingType][PT_BVBR] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//E181 cannot be displaced by other powders
|
||||||
|
if (elements[movingType].Properties & TYPE_PART)
|
||||||
|
can_move[movingType][PT_E181] = 0;
|
||||||
}
|
}
|
||||||
//a list of lots of things PHOT can move through
|
//a list of lots of things PHOT can move through
|
||||||
// TODO: replace with property
|
// TODO: replace with property
|
||||||
|
52
src/simulation/elements/181.cpp
Normal file
52
src/simulation/elements/181.cpp
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
#include "simulation/Elements.h"
|
||||||
|
//#TPT-Directive ElementClass Element_E181 PT_E181 181
|
||||||
|
Element_E181::Element_E181()
|
||||||
|
{
|
||||||
|
Identifier = "DEFAULT_PT_E181";
|
||||||
|
Name = "E181";
|
||||||
|
Colour = PIXPACK(0xF0F0A0);
|
||||||
|
MenuVisible = 1;
|
||||||
|
MenuSection = SC_POWDERS;
|
||||||
|
#ifdef DEBUG
|
||||||
|
Enabled = 1;
|
||||||
|
#else
|
||||||
|
Enabled = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Advection = 0.7f;
|
||||||
|
AirDrag = 0.02f * CFDS;
|
||||||
|
AirLoss = 0.96f;
|
||||||
|
Loss = 0.80f;
|
||||||
|
Collision = 0.0f;
|
||||||
|
Gravity = 0.1f;
|
||||||
|
Diffusion = 0.00f;
|
||||||
|
HotAir = 0.000f * CFDS;
|
||||||
|
Falldown = 1;
|
||||||
|
|
||||||
|
Flammable = 10;
|
||||||
|
Explosive = 0;
|
||||||
|
Meltable = 0;
|
||||||
|
Hardness = 30;
|
||||||
|
|
||||||
|
Weight = 18;
|
||||||
|
|
||||||
|
Temperature = R_TEMP+0.0f +273.15f;
|
||||||
|
HeatConduct = 70;
|
||||||
|
Description = "Experimental element, floats on water";
|
||||||
|
|
||||||
|
Properties = TYPE_PART|PROP_LIFE_DEC|PROP_LIFE_KILL_DEC;
|
||||||
|
|
||||||
|
LowPressure = IPL;
|
||||||
|
LowPressureTransition = NT;
|
||||||
|
HighPressure = IPH;
|
||||||
|
HighPressureTransition = NT;
|
||||||
|
LowTemperature = ITL;
|
||||||
|
LowTemperatureTransition = NT;
|
||||||
|
HighTemperature = ITH;
|
||||||
|
HighTemperatureTransition = NT;
|
||||||
|
|
||||||
|
Update = NULL;
|
||||||
|
Graphics = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
Element_E181::~Element_E181() {}
|
Reference in New Issue
Block a user