The-Powder-Toy/elements/plut.cpp
Simon Robertshaw b0ea52690b Initial
2012-01-08 17:39:03 +00:00

10 lines
189 B
C++

#include "element.h"
int update_PLUT(UPDATE_FUNC_ARGS) {
if (1>rand()%100 && ((int)(5.0f*sim->pv[y/CELL][x/CELL]))>(rand()%1000))
{
sim->create_part(i, x, y, PT_NEUT);
}
return 0;
}