summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/EmptyGoblet.c
blob: 2239847fdc4eb85b8c008842b0b55e55b83f56c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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));
		}
	}
}