mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 03:09:53 +02:00
Fix solidification temperature of molten TUGN
Previously it was 973 K, not the same as the melting point of TUGN
This commit is contained in:
@@ -4001,6 +4001,9 @@ void Simulation::update_particles_i(int start, int inc)
|
|||||||
if (parts[i].ctype>0 && parts[i].ctype<PT_NUM && parts[i].ctype!=PT_LAVA) {
|
if (parts[i].ctype>0 && parts[i].ctype<PT_NUM && parts[i].ctype!=PT_LAVA) {
|
||||||
if (parts[i].ctype==PT_THRM&&pt>=elements[PT_BMTL].HighTemperature) s = 0;
|
if (parts[i].ctype==PT_THRM&&pt>=elements[PT_BMTL].HighTemperature) s = 0;
|
||||||
else if ((parts[i].ctype==PT_VIBR || parts[i].ctype==PT_BVBR) && pt>=273.15f) s = 0;
|
else if ((parts[i].ctype==PT_VIBR || parts[i].ctype==PT_BVBR) && pt>=273.15f) s = 0;
|
||||||
|
else if (parts[i].ctype==PT_TUGN) {
|
||||||
|
if (pt>3695.0) s = 0;
|
||||||
|
}
|
||||||
else if (elements[parts[i].ctype].HighTemperatureTransition==PT_LAVA) {
|
else if (elements[parts[i].ctype].HighTemperatureTransition==PT_LAVA) {
|
||||||
if (pt>=elements[parts[i].ctype].HighTemperature) s = 0;
|
if (pt>=elements[parts[i].ctype].HighTemperature) s = 0;
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,7 @@ Element_LAVA::Element_LAVA()
|
|||||||
LowPressureTransition = NT;
|
LowPressureTransition = NT;
|
||||||
HighPressure = IPH;
|
HighPressure = IPH;
|
||||||
HighPressureTransition = NT;
|
HighPressureTransition = NT;
|
||||||
LowTemperature = 2573.15f;
|
LowTemperature = 3695.0f;// Highest temperature at which any type of lava can solidify
|
||||||
LowTemperatureTransition = ST;
|
LowTemperatureTransition = ST;
|
||||||
HighTemperature = ITH;
|
HighTemperature = ITH;
|
||||||
HighTemperatureTransition = NT;
|
HighTemperatureTransition = NT;
|
||||||
@@ -68,4 +68,4 @@ int Element_LAVA::graphics(GRAPHICS_FUNC_ARGS)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Element_LAVA::~Element_LAVA() {}
|
Element_LAVA::~Element_LAVA() {}
|
||||||
|
@@ -40,7 +40,7 @@ Element_TUGN::Element_TUGN()
|
|||||||
HighPressureTransition = NT;
|
HighPressureTransition = NT;
|
||||||
LowTemperature = ITL;
|
LowTemperature = ITL;
|
||||||
LowTemperatureTransition = NT;
|
LowTemperatureTransition = NT;
|
||||||
HighTemperature = ITL;
|
HighTemperature = ITH;
|
||||||
HighTemperatureTransition = NT;
|
HighTemperatureTransition = NT;
|
||||||
/*HighTemperature = 3895.0f;
|
/*HighTemperature = 3895.0f;
|
||||||
HighTemperatureTransition = PT_LAVA;*/
|
HighTemperatureTransition = PT_LAVA;*/
|
||||||
|
Reference in New Issue
Block a user