This file is indexed.

/usr/share/infon-server/level/stripeslice.lua is in infon-server 0~r198-8+b1.

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
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
-- Mapname: Stripe Slice
-- Author: Dunedan
-- Version: 0.3

function maplayout()

	tile = {}
	tile["S"] = TILE_GFX_SOLID;
	tile["P"] = TILE_GFX_PLAIN;
	tile["B"] = TILE_GFX_BORDER;
	tile["T"] = TILE_GFX_SNOW_SOLID;
	tile["U"] = TILE_GFX_SNOW_PLAIN;
	tile["V"] = TILE_GFX_SNOW_BORDER;
	tile["W"] = TILE_GFX_WATER;
	tile["L"] = TILE_GFX_LAVA;
	tile["N"] = TILE_GFX_NONE;
	tile["K"] = TILE_GFX_KOTH;
	tile["D"] = TILE_GFX_DESERT;

	m = {}
	m[1] = 	"WWWWWWWWWWWWWWWWWWWWUUTTTUUUUUUTTUUUUUWWWWWWWWWWWWWWWWWWWW";
	m[2] = 	"WWWWWWWWWWWWWWWWWUUUUUTTUUUUUUUTTUUUUUUUUWWWWWWWWWWWWWWWWW";
	m[3] = 	"WWWWWWWWWWWWWWUUUUUUUUUUUUUUUUTTTUUUUSSSSSSSWWWWWWWWWWWWWW";
	m[4] = 	"WWWWWWWWWWWUUUUUUUUUUUUUUTTUUUUTUUUUSSSUUU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SSSSSSS";
	m[20] = "PPLLLPPPPSSSSPPPPPPPPPPPPPPPPPPPPPPPPSPPPTTTPPPPSSSSSSSPPP";
	m[21] = "WPPPPPPPPPSSSPPPPPTTTTTPPPPPPPPPTTPPPSSPPTTTPPPPPSSSPPPPPW";
	m[22] = "WWPPPPPPPPTTPPPPPPPTTTTPPPPPPPTTTTPPPPPPPPTTPPPPUUSSPPPPWW";
	m[23] = "WWWWUUUUUUTTTUUUPPPTTTUUUUUUUUUTUUUUUPPPUUTTUUUUUUUUUUWWWW";
	m[24] = "WWWWWWUUUUUUUUUUUUUTTTUUUUUUUUUTUUUUUUUUUUTTUUUUUUUUWWWWWW";
	m[25] = "WWWWWWWWUUUUUUUUUUUTTUUUUUUUUUTTUUUUUUUUUUTTUUUUUUWWWWWWWW";
	m[26] = "WWWWWWWWWWWTTUUUUUUUUUUUUUUTTTTTTTUUUUUUUUUUUUUWWWWWWWWWWW";
	m[27] = "WWWWWWWWWWWWWWUUUUUUUUUTTTTTTTTTUUUUUTTTUUUUWWWWWWWWWWWWWW";
	m[28] = "WWWWWWWWWWWWWWWWWUUUUUUUUUUUUUUUUUUUUUTTUWWWWWWWWWWWWWWWWW";
	m[29] = "WWWWWWWWWWWWWWWWWWWWTTUUUUUUUUUUUUUUUUWWWWWWWWWWWWWWWWWWWW";
end


function level_size()

	local mapsizeX = 1
	local mapsizeY = 1
	maplayout()
	arraySize = table.getn(m);
	for i=1, arraySize, 1 do
		if string.len(m[i]) > mapsizeX then
			mapsizeX = string.len(m[i])
		end
	end
	mapsizeY = arraySize
	return mapsizeX+2, mapsizeY+2
end


function level_koth_pos()

	local kothX = 1
	local kothY = 1
	maplayout()
	arraySize = table.getn(m);
	for i=1, arraySize, 1 do
		for j=1, string.len(m[i]), 1 do
			k = string.upper(string.sub(m[i],j,j))
			if k == "K" then
				kothX = j
				kothY = i
			end
		end
	end
	return kothX, kothY
end

-- wird aufgerufen wenn ein Bot joint
-- player ist, uh wie erstaunlich, die Spielernummer
--function level_spawn_point(player)
--	availSpawnpoints = {{2,2},{15,15}}
--	return world_tile_center(15, 15)
--end


function level_init()

	maplayout()
	arraySize = table.getn(m);
	for i=1, arraySize, 1 do
		for j=1, string.len(m[i]), 1 do
			k = string.upper(string.sub(m[i],j,j))
			if k == "P" or k == "U" or k == "D" or k == "K" then
				world_set_type(j,i, TILE_PLAIN)
			end
			world_set_gfx(j,i, tile[k])
		end
	end
	world_make_border(TILE_GFX_WATER)

	food_spawner = {}
	for s = 0, 15 do
		local dx, dy = world_find_digged()
		food_spawner[s] = {	x = dx,
					y = dy,
					r = math.random(2),
					a = math.random(100) + 30,
					i = math.random(1000) + 1000,
					n = game_time() }
		world_add_food(food_spawner[s].x, food_spawner[s].y, 10000)
	end
	last_food = game_time()
end

-- wird, wie der Name schon sagt, jede Runde ausgefuehrt
function level_tick()
	if game_time() > last_food + 10000 then
		for n, spawner in pairs(food_spawner) do
			if game_time() > spawner.n then 
				world_add_food(spawner.x + math.random(spawner.r * 2 + 1) - spawner.r,
				spawner.y + math.random(spawner.r * 2 + 1) - spawner.r,
				spawner.a)
			spawner.n = spawner.n + spawner.i
			end
		end
	end
end