mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +02:00
Change AMTR and MORT to TYPE_GAS, and THDR to TYPE_ENERGY
This commit is contained in:
@@ -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))
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user