| 1 |
--[[ Copyright (c) 2009 Peter "Corsix" Cawley |
| 2 |
|
| 3 |
Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 4 |
this software and associated documentation files (the "Software"), to deal in |
| 5 |
the Software without restriction, including without limitation the rights to |
| 6 |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 7 |
of the Software, and to permit persons to whom the Software is furnished to do |
| 8 |
so, subject to the following conditions: |
| 9 |
|
| 10 |
The above copyright notice and this permission notice shall be included in all |
| 11 |
copies or substantial portions of the Software. |
| 12 |
|
| 13 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 14 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 16 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 17 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 18 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 19 |
SOFTWARE. --]] |
| 20 |
|
| 21 |
local object = {} |
| 22 |
object.id = "video_game" |
| 23 |
object.thob = 57 |
| 24 |
object.name = _S.object.video_game |
| 25 |
object.tooltip = _S.tooltip.objects.video_game |
| 26 |
object.ticks = false |
| 27 |
object.build_preview_animation = 5106 |
| 28 |
object.idle_animations = { |
| 29 |
north = 3696, |
| 30 |
south = 3696, |
| 31 |
} |
| 32 |
-- There are only animations for the doctor and the nurse. |
| 33 |
-- It seems the handyman doesn't play video games. |
| 34 |
-- |
| 35 |
-- For the Doctor, there's an additional animation standing still. |
| 36 |
-- Don't know how to use that one... |
| 37 |
|
| 38 |
object.usage_animations = { |
| 39 |
north = { |
| 40 |
in_use = { |
| 41 |
Doctor = 3700, -- also 3692, standing still in front of the game |
| 42 |
Nurse = 4764, |
| 43 |
}, |
| 44 |
}, |
| 45 |
south = { -- duplicate of north |
| 46 |
in_use = { |
| 47 |
Doctor = 3700, |
| 48 |
Nurse = 4764, |
| 49 |
}, |
| 50 |
}, |
| 51 |
} |
| 52 |
|
| 53 |
object.orientations = { |
| 54 |
north = { |
| 55 |
footprint = { {0, 0, complete_cell = true}, {0, 1, only_passable = true} }, |
| 56 |
use_position = "passable", |
| 57 |
use_animate_from_use_position = true, |
| 58 |
}, |
| 59 |
east = { |
| 60 |
footprint = { {0, 0, complete_cell = true}, {1, 0, only_passable = true} }, |
| 61 |
use_position = "passable", |
| 62 |
use_animate_from_use_position = true, |
| 63 |
}, |
| 64 |
} |
| 65 |
|
| 66 |
return object |