This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/simulation/elements/VRSS.cpp
Tamás Bálint Misius ca6c67c16c
Factor functions shared between elements into headers
The signature duplication was getting out of hand; too easy to get wrong.
2023-12-09 16:37:49 +01:00

59 lines
1.1 KiB
C++

#include "simulation/ElementCommon.h"
#include "VIRS.h"
static int graphics(GRAPHICS_FUNC_ARGS);
void Element::Element_VRSS()
{
Identifier = "DEFAULT_PT_VRSS";
Name = "VRSS";
Colour = 0xD408CD_rgb;
MenuVisible = 0;
MenuSection = SC_SOLIDS;
Enabled = 1;
Advection = 0.0f;
AirDrag = 0.00f * CFDS;
AirLoss = 0.90f;
Loss = 0.00f;
Collision = 0.0f;
Gravity = 0.0f;
Diffusion = 0.00f;
HotAir = 0.000f * CFDS;
Falldown = 0;
Flammable = 0;
Explosive = 0;
Meltable = 0;
Hardness = 1;
Weight = 100;
DefaultProperties.temp = R_TEMP + 273.15f;
HeatConduct = 251;
Description = "Solid Virus. Turns everything it touches into virus.";
Properties = TYPE_SOLID|PROP_DEADLY;
CarriesTypeIn = 1U << FIELD_TMP2;
LowPressure = IPL;
LowPressureTransition = NT;
HighPressure = IPH;
HighPressureTransition = NT;
LowTemperature = ITL;
LowTemperatureTransition = NT;
HighTemperature = 305.0f;
HighTemperatureTransition = PT_VIRS;
DefaultProperties.tmp4 = 250;
Update = &Element_VIRS_update;
Graphics = &graphics;
}
static int graphics(GRAPHICS_FUNC_ARGS)
{
*pixel_mode |= NO_DECO;
return 1;
}