add TOOL_CYCL lua constant, change ID to 7

This commit is contained in:
jacob1 2018-02-14 22:19:31 -05:00
parent 0a63e1afb5
commit a0a7281cc7
2 changed files with 3 additions and 2 deletions

View File

@ -791,6 +791,7 @@ void LuaScriptInterface::initSimulationAPI()
SETCONST(l, TOOL_PGRV); SETCONST(l, TOOL_PGRV);
SETCONST(l, TOOL_NGRV); SETCONST(l, TOOL_NGRV);
SETCONST(l, TOOL_MIX); SETCONST(l, TOOL_MIX);
SETCONST(l, TOOL_CYCL);
lua_pushinteger(l, luacon_sim->tools.size()); lua_setfield(l, -2, "TOOL_WIND"); lua_pushinteger(l, luacon_sim->tools.size()); lua_setfield(l, -2, "TOOL_WIND");
SETCONST(l, DECO_DRAW); SETCONST(l, DECO_DRAW);
SETCONST(l, DECO_CLEAR); SETCONST(l, DECO_CLEAR);

View File

@ -1,12 +1,12 @@
#include "ToolClasses.h" #include "ToolClasses.h"
#include "simulation/Air.h" #include "simulation/Air.h"
//#TPT-Directive ToolClass Tool_Cycl TOOL_CYCL 8 //#TPT-Directive ToolClass Tool_Cycl TOOL_CYCL 7
Tool_Cycl::Tool_Cycl() Tool_Cycl::Tool_Cycl()
{ {
Identifier = "DEFAULT_TOOL_CYCL"; Identifier = "DEFAULT_TOOL_CYCL";
Name = "CYCL"; Name = "CYCL";
Colour = PIXPACK(0x132f5b); Colour = PIXPACK(0x132f5b);
Description = "Cyclone. Produces swirling air currents"; Description = "Cyclone, produces swirling air currents";
} }
int Tool_Cycl::Perform(Simulation * sim, Particle * cpart, int x, int y, int brushX, int brushY, float strength) int Tool_Cycl::Perform(Simulation * sim, Particle * cpart, int x, int y, int brushX, int brushY, float strength)