Change AMTR and MORT to TYPE_GAS, and THDR to TYPE_ENERGY

This commit is contained in:
jacob1
2015-12-18 00:48:07 -05:00
parent 76aeef24a4
commit d2807cb28f
3 changed files with 6 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ Element_AMTR::Element_AMTR()
Description = "Anti-Matter, destroys a majority of particles."; Description = "Anti-Matter, destroys a majority of particles.";
State = ST_NONE; State = ST_NONE;
Properties = TYPE_PART; Properties = TYPE_GAS;
LowPressure = IPL; LowPressure = IPL;
LowPressureTransition = NT; LowPressureTransition = NT;
@@ -48,8 +48,8 @@ Element_AMTR::Element_AMTR()
//#TPT-Directive ElementHeader Element_AMTR static int update(UPDATE_FUNC_ARGS) //#TPT-Directive ElementHeader Element_AMTR static int update(UPDATE_FUNC_ARGS)
int Element_AMTR::update(UPDATE_FUNC_ARGS) int Element_AMTR::update(UPDATE_FUNC_ARGS)
{ {
int r, rx, ry, rt; int r, rx, ry, rt;
for (rx=-1; rx<2; rx++) for (rx=-1; rx<2; rx++)
for (ry=-1; ry<2; ry++) for (ry=-1; ry<2; ry++)
if (BOUNDS_CHECK && (rx || ry)) if (BOUNDS_CHECK && (rx || ry))

View File

@@ -31,7 +31,7 @@ Element_MORT::Element_MORT()
Description = "Steam Train."; Description = "Steam Train.";
State = ST_NONE; State = ST_NONE;
Properties = TYPE_PART; Properties = TYPE_GAS;
LowPressure = IPL; LowPressure = IPL;
LowPressureTransition = NT; LowPressureTransition = NT;
@@ -48,7 +48,7 @@ Element_MORT::Element_MORT()
//#TPT-Directive ElementHeader Element_MORT static int update(UPDATE_FUNC_ARGS) //#TPT-Directive ElementHeader Element_MORT static int update(UPDATE_FUNC_ARGS)
int Element_MORT::update(UPDATE_FUNC_ARGS) int Element_MORT::update(UPDATE_FUNC_ARGS)
{ {
sim->create_part(-1, x, y-1, PT_SMKE); sim->create_part(-1, x, y-1, PT_SMKE);
return 0; return 0;
} }

View File

@@ -31,7 +31,7 @@ Element_THDR::Element_THDR()
Description = "Lightning! Very hot, inflicts damage upon most materials, and transfers current to metals."; Description = "Lightning! Very hot, inflicts damage upon most materials, and transfers current to metals.";
State = ST_NONE; State = ST_NONE;
Properties = TYPE_PART; Properties = TYPE_ENERGY;
LowPressure = IPL; LowPressure = IPL;
LowPressureTransition = NT; LowPressureTransition = NT;