/usr/share/games/kiki-the-nano-bot/py/levels/mutants.py is in kiki-the-nano-bot-data 1.0.2+dfsg1-6.
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 | # .................................................................................................................
level_dict["mutants"] = {
"scheme": "blue_scheme",
"size": (9,9,9),
"intro": "mutants",
"help": (
"$scale(1.5)mission:\ndeactivate the mutants!\n\n" + \
"to deactivate a mutant,\nshoot him until it get's transparent\n\n" + \
"the exit will open,\nwhen all mutant bots\nare deactivated",
),
"player": { "position": (0,-1,0),
},
"exits": [
{
"name": "exit",
"active": 0,
"position": (0,0,0),
"world": lambda: outro(),
},
],
"create":
"""
s = world.getSize()
world.addObjectLine (KikiWall, (2, 2, 2), (s.x - 3, 2, 2))
world.addObjectLine (KikiWall, (s.x - 3, 2, 2), (s.x - 3, s.y - 3, 2))
world.addObjectLine (KikiWall, (s.x - 3, s.y - 3, 2), (s.x - 3, s.y - 3, s.z - 3))
world.addObjectLine (KikiWall, (s.x - 3, s.y - 3, s.z - 3), (2, s.y - 3, s.z - 3))
world.addObjectLine (KikiWall, (2, s.y - 3, s.z - 3), (2, 2, s.z - 3))
world.addObjectLine (KikiWall, (2, 2, s.z - 3), (2, 2, 2))
world.num_mutants = 5
world.death_counter = 0
def botDied():
world.death_counter += 1
if world.death_counter >= world.num_mutants:
world.activate("exit")
for i in range (world.num_mutants):
mutant = KikiMutant()
mutant.getEventWithName ("died").addAction (once (botDied))
world.setObjectRandom (mutant)
""",
}
|