From 76b92952b12f0eeaedbf3f2e4231dbd72b6d902a Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 6 Jun 2013 22:19:51 -0400 Subject: [PATCH] adjust tool strengths a little, to make them a little faster --- src/simulation/tools/AirTool.cpp | 2 +- src/simulation/tools/Cool.cpp | 4 ++-- src/simulation/tools/Heat.cpp | 4 ++-- src/simulation/tools/NGrv.cpp | 2 +- src/simulation/tools/PGrv.cpp | 2 +- src/simulation/tools/Vac.cpp | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/simulation/tools/AirTool.cpp b/src/simulation/tools/AirTool.cpp index 4e7ebde5a..5d7f4054b 100644 --- a/src/simulation/tools/AirTool.cpp +++ b/src/simulation/tools/AirTool.cpp @@ -11,7 +11,7 @@ Tool_Air::Tool_Air() int Tool_Air::Perform(Simulation * sim, Particle * cpart, int x, int y, float strength) { - sim->air->pv[y/CELL][x/CELL] += 0.03f*strength; + sim->air->pv[y/CELL][x/CELL] += strength*0.05f; if(sim->air->pv[y/CELL][x/CELL] > 256.0f) sim->air->pv[y/CELL][x/CELL] = 256.0f; if(sim->air->pv[y/CELL][x/CELL] < -256.0f) diff --git a/src/simulation/tools/Cool.cpp b/src/simulation/tools/Cool.cpp index bc4963432..16a7f91e7 100644 --- a/src/simulation/tools/Cool.cpp +++ b/src/simulation/tools/Cool.cpp @@ -13,9 +13,9 @@ int Tool_Cool::Perform(Simulation * sim, Particle * cpart, int x, int y, float s if(!cpart) return 0; if (cpart->type == PT_PUMP || cpart->type == PT_GPMP) - cpart->temp -= .1f*strength; + cpart->temp -= strength*.1f; else - cpart->temp -= strength; + cpart->temp -= strength*2.0f; if(cpart->temp > MAX_TEMP) cpart->temp = MAX_TEMP; if(cpart->temp < 0) diff --git a/src/simulation/tools/Heat.cpp b/src/simulation/tools/Heat.cpp index 903efe31b..0d77d5558 100644 --- a/src/simulation/tools/Heat.cpp +++ b/src/simulation/tools/Heat.cpp @@ -13,9 +13,9 @@ int Tool_Heat::Perform(Simulation * sim, Particle * cpart, int x, int y, float s if(!cpart) return 0; if (cpart->type == PT_PUMP || cpart->type == PT_GPMP) - cpart->temp += .1f*strength; + cpart->temp += strength*.1f; else - cpart->temp += strength; + cpart->temp += strength*2.0f; if(cpart->temp > MAX_TEMP) cpart->temp = MAX_TEMP; if(cpart->temp < 0) diff --git a/src/simulation/tools/NGrv.cpp b/src/simulation/tools/NGrv.cpp index 65530c58f..89af1ea86 100644 --- a/src/simulation/tools/NGrv.cpp +++ b/src/simulation/tools/NGrv.cpp @@ -11,7 +11,7 @@ Tool_NGrv::Tool_NGrv() int Tool_NGrv::Perform(Simulation * sim, Particle * cpart, int x, int y, float strength) { - sim->gravmap[((y/CELL)*(XRES/CELL))+(x/CELL)] -= 0.03f*strength; + sim->gravmap[((y/CELL)*(XRES/CELL))+(x/CELL)] = strength*-5.0f; return 1; } diff --git a/src/simulation/tools/PGrv.cpp b/src/simulation/tools/PGrv.cpp index cfa381c06..e2c9fb0e5 100644 --- a/src/simulation/tools/PGrv.cpp +++ b/src/simulation/tools/PGrv.cpp @@ -11,7 +11,7 @@ Tool_PGrv::Tool_PGrv() int Tool_PGrv::Perform(Simulation * sim, Particle * cpart, int x, int y, float strength) { - sim->gravmap[((y/CELL)*(XRES/CELL))+(x/CELL)] += 0.03f*strength; + sim->gravmap[((y/CELL)*(XRES/CELL))+(x/CELL)] = strength*5.0f; return 1; } diff --git a/src/simulation/tools/Vac.cpp b/src/simulation/tools/Vac.cpp index fbf7e85c8..86beb5475 100644 --- a/src/simulation/tools/Vac.cpp +++ b/src/simulation/tools/Vac.cpp @@ -11,7 +11,7 @@ Tool_Vac::Tool_Vac() int Tool_Vac::Perform(Simulation * sim, Particle * cpart, int x, int y, float strength) { - sim->air->pv[y/CELL][x/CELL] -= 0.03f*strength; + sim->air->pv[y/CELL][x/CELL] -= strength*0.05f;; if(sim->air->pv[y/CELL][x/CELL] > 256.0f) sim->air->pv[y/CELL][x/CELL] = 256.0f; if(sim->air->pv[y/CELL][x/CELL] < -256.0f)