mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-03-20 06:09:51 +01:00
add TOOL_CYCL lua constant, change ID to 7
This commit is contained in:
parent
0a63e1afb5
commit
a0a7281cc7
@ -791,6 +791,7 @@ void LuaScriptInterface::initSimulationAPI()
|
||||
SETCONST(l, TOOL_PGRV);
|
||||
SETCONST(l, TOOL_NGRV);
|
||||
SETCONST(l, TOOL_MIX);
|
||||
SETCONST(l, TOOL_CYCL);
|
||||
lua_pushinteger(l, luacon_sim->tools.size()); lua_setfield(l, -2, "TOOL_WIND");
|
||||
SETCONST(l, DECO_DRAW);
|
||||
SETCONST(l, DECO_CLEAR);
|
||||
|
@ -1,12 +1,12 @@
|
||||
#include "ToolClasses.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()
|
||||
{
|
||||
Identifier = "DEFAULT_TOOL_CYCL";
|
||||
Name = "CYCL";
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user