Add a reaction to produce BCOL

This commit is contained in:
moonheart08 2020-04-08 16:28:45 -05:00 committed by Tamás Bálint Misius
parent 9413a1f0b6
commit 85ab70adb3

View File

@ -52,6 +52,14 @@ static int update(UPDATE_FUNC_ARGS)
{
if (parts[i].temp > 450 && parts[i].temp > parts[i].tmp)
parts[i].tmp = (int)parts[i].temp;
if (parts[i].temp > 773.0f && sim->pv[y/CELL][x/CELL] <= -10.0f)
{
float temp = parts[i].temp;
sim->create_part(i, x, y, PT_BCOL);
parts[i].temp = temp;
}
return 0;
}