This file is indexed.

/usr/share/gravit/spawn/many-galaxy.gravitspawn is in gravit-data 0.5.1+dfsg-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
-- vim:syntax=lua tabstop=4

load("functions.lua")

function describe()
    log("Many elliptical and spiral galaxies with initial velocities")
end

function spawn()
	-- work out a number of galaxies based on spawnparticles
	local galaxysize = randomint(200,1000)
	local galaxies = math.floor(spawnparticles / galaxysize) + 1
	for i=0,galaxies-1 do
		local pos = randomrange(galaxies * 2000)
		local vel = randomrange(100)
		local rad = randomfloat(50, 1000)
		local massmin = randomfloat(10,1000)
		local massmax = randomfloat(10,1000)
		local particlestart = math.floor(spawnparticles/galaxies)*i
		local particlecount = math.floor(spawnparticles/galaxies)
		if (i == galaxies-1) then 
		      particlecount = spawnparticles - particlestart
		end

		makegalaxy(pos, vel, rad, massmin, massmax, particlestart, particlecount)
	end
end