From 85ab70adb3f5babcbcd4ca6667476b73c73f2a2e Mon Sep 17 00:00:00 2001 From: moonheart08 Date: Wed, 8 Apr 2020 16:28:45 -0500 Subject: [PATCH] Add a reaction to produce BCOL --- src/simulation/elements/WOOD.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/simulation/elements/WOOD.cpp b/src/simulation/elements/WOOD.cpp index 627c9f717..8bcbd3e97 100644 --- a/src/simulation/elements/WOOD.cpp +++ b/src/simulation/elements/WOOD.cpp @@ -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; }