summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s/System.c4g')
-rw-r--r--TemplePushing.c4s/System.c4g/EmptyGoblet.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/TemplePushing.c4s/System.c4g/EmptyGoblet.c b/TemplePushing.c4s/System.c4g/EmptyGoblet.c
new file mode 100644
index 0000000..2239847
--- /dev/null
+++ b/TemplePushing.c4s/System.c4g/EmptyGoblet.c
@@ -0,0 +1,18 @@
+/*-- Not refillable --*/
+
+#strict 3
+#appendto EGBL
+
+func FillCheck()
+{
+ if (++iTimer >= 5)
+ {
+ iTimer = 0;
+ if (!Contained())
+ {
+ var iX = Sin(GetR(), RandomX(-4, 8));
+ var iY = -Cos(GetR(), RandomX(-4, 4));
+ CreateParticle("NoGravSpark", iX, iY, 0, 0, RandomX(25, 55), RGBa(255, 255, 0, 120));
+ }
+ }
+}