diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2020-12-07 21:03:41 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2020-12-07 21:03:41 +0100 |
| commit | 98a8e54acc979e7b0265d83d4225d48df31fabad (patch) | |
| tree | 6f0e95783ac323cee4d9ab5f6725a55f43018d39 /TemplePushing.c4s | |
| parent | 5df80c78c94e2f5c01fd02f8d603a59b8c5fd4b1 (diff) | |
| download | tempelschubsen-98a8e54acc979e7b0265d83d4225d48df31fabad.tar.gz tempelschubsen-98a8e54acc979e7b0265d83d4225d48df31fabad.zip | |
Make goblet not refillable
Diffstat (limited to 'TemplePushing.c4s')
| -rw-r--r-- | TemplePushing.c4s/System.c4g/EmptyGoblet.c | 18 |
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)); + } + } +} |
