This file is indexed.

/usr/share/crawl/dat/dlua/stress.lua is in crawl-common 2:0.17.1-1.

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
-- helper functions for stress tests

util.namespace("stress")

function stress.awaken_level()
  local gxm, gym = dgn.max_bounds()
  local wander = mons.behaviour("wander")
  for p in iter.rect_iterator(dgn.point(1, 1), dgn.point(gxm-2, gym-2)) do
    local mons = dgn.mons_at(p.x, p.y)
    if mons ~= nil then
      mons.beh = wander
    end
  end
end

function stress.entomb()
  local x, y = you.pos()
  for p in iter.rect_iterator(dgn.point(x-1, y-1), dgn.point(x+1, y+1)) do
    dgn.terrain_changed(p.x, p.y, "metal_wall", false, false, false)
  end
end

function stress.boost_monster_hp()
  local gxm, gym = dgn.max_bounds()
  for p in iter.rect_iterator(dgn.point(1, 1), dgn.point(gxm-2, gym-2)) do
    local mons = dgn.mons_at(p.x, p.y)
    if mons ~= nil then
      mons.set_max_hp(10000)
    end
  end
end

function stress.fill_level(x)
  local gxm, gym = dgn.max_bounds()
  for p in iter.rect_iterator(dgn.point(1, 1), dgn.point(gxm-2, gym-2)) do
    dgn.terrain_changed(p.x, p.y, x, false, false, false)
  end
end