summaryrefslogtreecommitdiff
path: root/src/elements/plut.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/plut.c')
-rw-r--r--src/elements/plut.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/elements/plut.c b/src/elements/plut.c
new file mode 100644
index 0000000..cbc9b7b
--- /dev/null
+++ b/src/elements/plut.c
@@ -0,0 +1,9 @@
+#include <element.h>
+
+int update_PLUT(UPDATE_FUNC_ARGS) {
+ if (1>rand()%100 && ((int)(5.0f*pv[y/CELL][x/CELL]))>(rand()%1000))
+ {
+ create_part(i, x, y, PT_NEUT);
+ }
+ return 0;
+}