This file is indexed.

/usr/share/freedroidrpg/map/tuxrender_specs.lua is in freedroidrpg-data 0.16.1-3.

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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
------------------------------------------------------------------------------
-- This file defines the animation and rendering of Tux.
------------------------------------------------------------------------------

------------------------------------------------------------------------------
-- Specification of Tux animations.
--
-- Keyframe numbering starts at 0.
--
-- 'duration' is the duration of the related animation, in seconds.
--
-- For walk and run animations, 'distance' is the number of tiles covered by
-- Tux during a whole sequence of animation.
--
-- Note: there is currently no standing animation is the image-archive file,
-- so we only use a single keyframe.
------------------------------------------------------------------------------

tux_animation {
  standing_keyframe = 24,

  attack = { duration = 0.55,
             first_keyframe = 0,
             last_keyframe = 13 },

  walk = { distance = 0.8,
           first_keyframe  = 14,
           last_keyframe = 23 },

  run = { distance = 10.0/3.0,
          first_keyframe = 25,
          last_keyframe = 34 }
}

------------------------------------------------------------------------------
-- Global configuration of Tux rendering
--
-- motion_class_names: list of motion class names
--   Those names are used in the next section of this file to define the ordering
--   of Tux's parts rendering, and in item_archetypes.dat to associate a
--   motion class to a weapon.
--   The first motion_class is the one used when Tux has no weapon in hand.
------------------------------------------------------------------------------

tux_rendering_config {
  motion_class_names = { "1hmelee", "2hranged", "1hranged", "2h_heavy_melee" },
  default_parts = { head = "iso_head",
                    torso = "iso_torso",
                    weaponarm = "iso_weaponarm",
                    -- weapon = "", / No default value
                    shieldarm = "iso_shieldarm",
                    feet      = "iso_feet" },
  gun_muzzle_height      = 65
}

------------------------------------------------------------------------------
-- Specification of how to order Tux parts' during rendering
--
-- The definition is:
--
--   tux_ordering {
--     type        : one of the motion_class value - example: "1hmelee"
--     rotations   : comma-separated list of rotation values - example: { 0, 1, 2 }
--     phase_start : first phase to which this order applies (optional - default value: 0)
--     phase_end   : last phase to which this order applies (optional - default value: -1,
--                   which denotes the last phase number)
--     order       : one of the parts' order definition - example: part_order.FTHASW
--   }
--
-- It is thus possible to specify the same order for several rotations and several
-- animation phases.
--
-- When a specific order is needed for a specific phase, it has to be defined
-- *before* the less specific set. For example:
--
--   tux_ordering {
--     type = "2hranged",
--     rotations = { 1, 2 },
--     phase_start = 4,
--     phase_end = 11,
--     order = part_order.FTHSWA
--   }
--
--   tux_ordering {
--     type = "2hranged",
--     rotations = { 1, 2 },
--     order = part_order.FSTHWA
--   }
------------------------------------------------------------------------------

--------------------
-- "part_order" is the definition of a list of orders.
-- The name of an order has no real meaning.
-- Here we chose the first letter of each part (with A = weaponarm).
--
-- (Note: part_order is a Lua variable, internal to this script. It does not
--  call a table constructor).
--------------------

part_order = {
  FTSWAH = { "feet", "torso",     "shieldarm", "weapon",    "weaponarm", "head"      },
  FTHSWA = { "feet", "torso",     "head",      "shieldarm", "weapon",    "weaponarm" },
  FTHSAW = { "feet", "torso",     "head",      "shieldarm", "weaponarm", "weapon"    },
  FTSAWH = { "feet", "torso",     "shieldarm", "weaponarm", "weapon",    "head"      },
  FTSAHW = { "feet", "torso",     "shieldarm", "weaponarm", "head",      "weapon"    },
  FTASWH = { "feet", "torso",     "weaponarm", "shieldarm", "weapon",    "head"      },
  FTAWSH = { "feet", "torso",     "weaponarm", "weapon",    "shieldarm", "head"      },
  FTWASH = { "feet", "torso",     "weapon",    "weaponarm", "shieldarm", "head"      },
  FATWSH = { "feet", "weaponarm", "torso",     "weapon",    "shieldarm", "head"      },
  FATSWH = { "feet", "weaponarm", "torso",     "shieldarm", "weapon",    "head"      },
  FATHWS = { "feet", "weaponarm", "torso",     "head",      "weapon",    "shieldarm" },
  FSTHWA = { "feet", "shieldarm", "torso",     "head",      "weapon",    "weaponarm" },
  FSWTAH = { "feet", "shieldarm", "weapon",    "torso",     "weaponarm", "head"      },
  FSWATH = { "feet", "shieldarm", "weapon",    "weaponarm", "torso",     "head"      },
  FSTWAH = { "feet", "shieldarm", "torso",     "weapon",    "weaponarm", "head"      },
  FSTAWH = { "feet", "shieldarm", "torso",     "weaponarm", "weapon",    "head"      },
  FWATSH = { "feet", "weapon",    "weaponarm", "torso",     "shieldarm", "head"      },
  FWASTH = { "feet", "weapon",    "weaponarm", "shieldarm", "torso",     "head"      },
  FWTASH = { "feet", "weapon",    "torso",     "weaponarm", "shieldarm", "head"      },
  FWSTAH = { "feet", "weapon",    "shieldarm", "torso",     "weaponarm", "head"      },
  FAWTSH = { "feet", "weaponarm", "weapon",    "torso",     "shieldarm", "head"      },
  FATWSH = { "feet", "weaponarm", "torso",     "weapon",    "shieldarm", "head"      },
  WFASTH = { "weapon", "feet",    "weaponarm", "shieldarm", "torso",     "head"      }
}

--------------------
-- 1-Handed Melee animation
--------------------

tux_ordering {
  type = "1hmelee",
  rotations = { 0 },
  order = part_order.FTHSWA
}

tux_ordering {
  type = "1hmelee",
  rotations = { 1 },
  phase_start = 0,
  phase_end = 10,
  order = part_order.FTHSWA
}

tux_ordering {
  type = "1hmelee",
  rotations = { 1, 2, 3, 4, 5, 6 },
  order = part_order.FSTHWA
}

tux_ordering {
  type = "1hmelee",
  rotations = { 7 },
  order = part_order.FSTWAH
}

tux_ordering {
  type = "1hmelee",
  rotations = { 8 },
  order = part_order.FSWTAH
}

tux_ordering {
  type = "1hmelee",
  rotations = { 9, 10, 11 },
  order = part_order.FWATSH
}

tux_ordering {
  type = "1hmelee",
  rotations = { 12, 13, 14, 15 },
  order = part_order.FAWTSH
}

--------------------
-- 2-Handed Ranged Animation
--------------------

tux_ordering {
  type = "2hranged",
  rotations = { 0, 1, 2 },
  order = part_order.FTSWAH
}

tux_ordering {
  type = "2hranged",
  rotations = { 3, 4 },
  order = part_order.FSTWAH
}

tux_ordering {
  type = "2hranged",
  rotations = { 5, 6, 7 },
  order = part_order.FSWTAH
}

tux_ordering {
  type = "2hranged",
  rotations = { 8 },
  order = part_order.FSWATH
}

tux_ordering {
  type = "2hranged",
  rotations = { 9 },
  order = part_order.FWASTH
}

tux_ordering {
  type = "2hranged",
  rotations = { 10 },
  order = part_order.FWATSH
}

tux_ordering {
  type = "2hranged",
  rotations = { 11 },
  order = part_order.FAWTSH
}

tux_ordering {
  type = "2hranged",
  rotations = { 12 },
  order = part_order.FATWSH
}

tux_ordering {
  type = "2hranged",
  rotations = { 13, 14 },
  order = part_order.FATSWH
}

tux_ordering {
  type = "2hranged",
  rotations = { 15 },
  order = part_order.FTSAWH
}

--------------------
-- 1-Handed Ranged Animation
--------------------

tux_ordering {
  type = "1hranged",
  rotations = { 0 },
  phase_start = 17,
  phase_end = 22,
  order = part_order.FTWASH
}

tux_ordering {
  type = "1hranged",
  rotations = { 0 },
  phase_start = 24,
  phase_end = 24,
  order = part_order.FTSWAH
}

tux_ordering {
  type = "1hranged",
  rotations = { 0 },
  phase_start = 25,
  phase_end = 28,
  order = part_order.FWTASH
}

tux_ordering {
  type = "1hranged",
  rotations = { 0 },
  phase_start = 32,
  phase_end = 34,
  order = part_order.FWTASH
}

tux_ordering {
  type = "1hranged",
  rotations = { 0 },
  order = part_order.FTSAHW
}

tux_ordering {
  type = "1hranged",
  rotations = { 1, 2, 3, 4, 5, 6, 7 },
  order = part_order.FSTWAH
}

tux_ordering {
  type = "1hranged",
  rotations = { 8 },
  phase_start = 0,
  phase_end = 1,
  order = part_order.FSWATH
}

tux_ordering {
  type = "1hranged",
  rotations = { 8 },
  phase_start = 25,
  phase_end = 27,
  order = part_order.FSTWAH
}

tux_ordering {
  type = "1hranged",
  rotations = { 8 },
  phase_start = 32,
  phase_end = 34,
  order = part_order.FSTWAH
}

tux_ordering {
  type = "1hranged",
  rotations = { 8 },
  order = part_order.FSWTAH
}

tux_ordering {
  type = "1hranged",
  rotations = { 9 },
  order = part_order.FWATSH
}

tux_ordering {
  type = "1hranged",
  rotations = { 15 },
  phase_start = 2,
  phase_end = 11,
  order = part_order.FTASWH
}

tux_ordering {
  type = "1hranged",
  rotations = { 10, 11, 12, 13, 14, 15 },
  order = part_order.FAWTSH
}

--------------------
-- 2-Handed Long Handle Melee Animation
--------------------

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 1, 2 },
  phase_start = 7,
  phase_end = 10,
  order = part_order.FTSWAH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 0, 1, 2 },
  order = part_order.FTSAHW
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 3, 4 },
  phase_start = 1,
  phase_end = 5,
  order = part_order.FTSAHW
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 3, 4 },
  phase_start = 6,
  phase_end = 11,
  order = part_order.FSTWAH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 3 },
  order = part_order.FSTAWH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 4 },
  order = part_order.FSTAWH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 5, 6 },
  phase_start = 1,
  phase_end = 5,
  order = part_order.FTSAHW
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 5, 6, 7 },
  order = part_order.FWSTAH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 8 },
  phase_start = 3,
  phase_end = 5,
  order = part_order.FSWTAH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 8 },
  order = part_order.FWASTH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 9, 10 },
  phase_start = 3,
  phase_end = 12,
  order = part_order.FWASTH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 9, 10 },
  order = part_order.FWATSH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 11 },
  order = part_order.FAWTSH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 12, 13, 14 },
  order = part_order.FATWSH
}

tux_ordering {
  type = "2h_heavy_melee",
  rotations = { 15 },
  order = part_order.FTAWSH
}