| 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 = "pool_table" |
| 23 |
object.thob = 10 |
| 24 |
object.name = _S.object.pool_table |
| 25 |
object.tooltip = _S.tooltip.objects.pool_table |
| 26 |
object.ticks = false |
| 27 |
object.build_preview_animation = 5058 |
| 28 |
object.idle_animations = { |
| 29 |
north = 2130, |
| 30 |
south = 2130, |
| 31 |
} |
| 32 |
-- There are five animations, for each the doctor and the handyman. |
| 33 |
-- The nurses don't like pool, apparently. |
| 34 |
-- |
| 35 |
-- anim | doctor | handyman |
| 36 |
-- ----------------------------- |
| 37 |
-- aim | 1230 | 3924 |
| 38 |
-- shoot | 1234 | 3928 |
| 39 |
-- chalk | 1238 | 3932 |
| 40 |
-- take cue | 1244 | 3936 |
| 41 |
-- leave cue | 1248 | 3940 |
| 42 |
-- |
| 43 |
-- the playing procedure is: take cue, chalk, aim, shoot, leave cue |
| 44 |
|
| 45 |
object.usage_animations = { |
| 46 |
north = { |
| 47 |
begin_use = { |
| 48 |
Doctor = 1244, |
| 49 |
Handyman = 3936, |
| 50 |
}, |
| 51 |
begin_use_2 = { |
| 52 |
Doctor = 1238, |
| 53 |
Handyman = 3932, |
| 54 |
}, |
| 55 |
begin_use_3 = { |
| 56 |
Doctor = 1230, |
| 57 |
Handyman = 3924, |
| 58 |
}, |
| 59 |
in_use = { |
| 60 |
Doctor = 1234, |
| 61 |
Handyman = 3928, |
| 62 |
}, |
| 63 |
finish_use = { |
| 64 |
Doctor = 1248, |
| 65 |
Handyman = 3940, |
| 66 |
}, |
| 67 |
}, |
| 68 |
south = { -- duplicate of north |
| 69 |
begin_use = { |
| 70 |
Doctor = 1244, |
| 71 |
Handyman = 3936, |
| 72 |
}, |
| 73 |
begin_use_2 = { |
| 74 |
Doctor = 1238, |
| 75 |
Handyman = 3932, |
| 76 |
}, |
| 77 |
begin_use_3 = { |
| 78 |
Doctor = 1230, |
| 79 |
Handyman = 3924, |
| 80 |
}, |
| 81 |
in_use = { |
| 82 |
Doctor = 1234, |
| 83 |
Handyman = 3928, |
| 84 |
}, |
| 85 |
finish_use = { |
| 86 |
Doctor = 1248, |
| 87 |
Handyman = 3940, |
| 88 |
}, |
| 89 |
}, |
| 90 |
} |
| 91 |
|
| 92 |
object.orientations = { |
| 93 |
north = { |
| 94 |
footprint = { {-1, -2, only_passable = true}, {0, -2, need_north_side = true},{1, -2, only_passable = true}, |
| 95 |
{-1, -1, only_passable = true}, {0, -1}, {1, -1, only_passable = true}, |
| 96 |
{-1, 0, only_passable = true}, {0, 0, only_passable = true, complete_cell = true}, |
| 97 |
{1, 0, only_passable = true} }, |
| 98 |
render_attach_position = {-1, 0}, |
| 99 |
use_position = {0, 0}, |
| 100 |
}, |
| 101 |
east = { |
| 102 |
footprint = {{-2, -1, only_passable = true}, {-1, -1, only_passable = true}, {0, -1, only_passable = true}, |
| 103 |
{-2, 0, complete_cell = true}, {-1, 0}, {0, 0, only_passable = true, complete_cell = true}, |
| 104 |
{-2, 1, only_passable = true}, {-1, 1, only_passable = true}, {0, 1, only_passable = true} }, |
| 105 |
render_attach_position = {0, -1}, |
| 106 |
use_position = {0, 0}, |
| 107 |
}, |
| 108 |
} |
| 109 |
|
| 110 |
return object |