summaryrefslogtreecommitdiff
path: root/src/simulation/tools/Cool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/tools/Cool.cpp')
-rw-r--r--src/simulation/tools/Cool.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/simulation/tools/Cool.cpp b/src/simulation/tools/Cool.cpp
index b1b57b1..bc49634 100644
--- a/src/simulation/tools/Cool.cpp
+++ b/src/simulation/tools/Cool.cpp
@@ -1,4 +1,4 @@
-#include "simulation/Tools.h"
+#include "ToolClasses.h"
//#TPT-Directive ToolClass Tool_Cool TOOL_COOL 1
Tool_Cool::Tool_Cool()
{
@@ -12,7 +12,10 @@ int Tool_Cool::Perform(Simulation * sim, Particle * cpart, int x, int y, float s
{
if(!cpart)
return 0;
- cpart->temp -= strength;
+ if (cpart->type == PT_PUMP || cpart->type == PT_GPMP)
+ cpart->temp -= .1f*strength;
+ else
+ cpart->temp -= strength;
if(cpart->temp > MAX_TEMP)
cpart->temp = MAX_TEMP;
if(cpart->temp < 0)
@@ -20,4 +23,4 @@ int Tool_Cool::Perform(Simulation * sim, Particle * cpart, int x, int y, float s
return 1;
}
-Tool_Cool::~Tool_Cool() {} \ No newline at end of file
+Tool_Cool::~Tool_Cool() {}