diff options
Diffstat (limited to 'elements/plut.cpp')
| -rw-r--r-- | elements/plut.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/elements/plut.cpp b/elements/plut.cpp new file mode 100644 index 0000000..3e2820d --- /dev/null +++ b/elements/plut.cpp @@ -0,0 +1,9 @@ +#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; +} |
