summaryrefslogtreecommitdiff
path: root/src/elements/plut.c
diff options
context:
space:
mode:
authorjacksonmj <jacksonmj@jacksonmj.none>2011-01-13 22:51:55 (GMT)
committer jacksonmj <jacksonmj@jacksonmj.none>2011-01-13 22:51:55 (GMT)
commit0221cdd35550ca844e572facb2e819e6aa145460 (patch)
tree8de43242dddfa05425fac1b15a893b0d47b755b1 /src/elements/plut.c
parent7fb086065a8580374dac672575e1f4662ca8427a (diff)
downloadpowder-0221cdd35550ca844e572facb2e819e6aa145460.zip
powder-0221cdd35550ca844e572facb2e819e6aa145460.tar.gz
Split elements/misc.c into separate functions
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..738e29d
--- /dev/null
+++ b/src/elements/plut.c
@@ -0,0 +1,9 @@
+#include <powder.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;
+}