Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "simulation/Elements.h"
- //#TPT-Directive ElementClass Element_AURL PT_AURL 60461
- Element_AURL::Element_AURL()
- {
- Identifier = "DEFAULT_PT_AURL";
- Name = "AURL";
- Colour = PIXPACK(0xC9B316);
- MenuVisible = 1;
- MenuSection = SC_NUCLEAR;
- Enabled = 1;
- Advection = 0.4f;
- AirDrag = 0.01f * CFDS;
- AirLoss = 0.99f;
- Loss = 0.95f;
- Collision = 0.0f;
- Gravity = 0.4f;
- Diffusion = 0.00f;
- HotAir = 0.000f * CFDS;
- Falldown = 1;
- Flammable = 1;
- Explosive = 0;
- Meltable = 0;
- Hardness = 45;
- Weight = 65;
- Temperature = 330.6;
- HeatConduct = 254;
- Description = "Aurelium. Warm, heavy particles. Generates pressure when heated. Flammable and radioactive. Fissile under pressure like PLUT.";
- State = ST_POWDER;
- Properties = TYPE_PART | PROP_RADIOACTIVE;
- LowPressure = IPL;
- LowPressureTransition = NT;
- HighPressure = IPH;
- HighPressureTransition = NT;
- LowTemperature = ITL;
- LowTemperatureTransition = NT;
- HighTemperature = ITH;
- HighTemperatureTransition = NT;
- Update = &Element_AURL::update;
- }
- //#TPT-Directive ElementHeader Element_AURL static int update(UPDATE_FUNC_ARGS)
- int Element_AURL::update(UPDATE_FUNC_ARGS)
- {
- if (!sim->legacy_enable && sim->temp[y/CELL][x/CELL]>20C)
- {
- if (parts[i].temp => MIN_TEMP)
- {
- if (parts[i];temp =< MAX_TEMP)
- {
- parts[i].pv += .01f;
- {
- }
- else
- {
- return 0;
- }
- }
- return 0;
- }
- Element_AURL::~Element_AURL() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement