| 1 |
--[[ Copyright (c) 2010 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 = "operating_table_b" |
| 23 |
object.class = "OperatingTable" |
| 24 |
object.thob = 12 |
| 25 |
object.name = _S.object.operating_table |
| 26 |
object.tooltip = _S.tooltip.objects.operating_table |
| 27 |
object.ticks = false |
| 28 |
object.crashed_animation = 0 |
| 29 |
object.show_in_town_map = true |
| 30 |
local function copy_north_to_south(t) |
| 31 |
t.south = t.north |
| 32 |
return t |
| 33 |
end |
| 34 |
object.idle_animations = copy_north_to_south { |
| 35 |
north = 2310, |
| 36 |
} |
| 37 |
object.usage_animations = copy_north_to_south { |
| 38 |
north = { |
| 39 |
begin_use = { Surgeon = 2306 }, |
| 40 |
begin_use_2 = { Surgeon = 2330 }, |
| 41 |
in_use = { Surgeon = {4890, 2326} }, |
| 42 |
finish_use = { Surgeon = 2334 }, |
| 43 |
finish_use_2 = { Surgeon = 2342 }, |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
local anim_mgr = TheApp.animation_manager |
| 48 |
local kf1, kf2 = {0, 0}, {-0.7, -0.4} |
| 49 |
anim_mgr:setStaffMarker({2306, 2342}, kf1) |
| 50 |
anim_mgr:setStaffMarker(2330, kf1, kf2) |
| 51 |
anim_mgr:setStaffMarker({4890, 2326}, kf2) |
| 52 |
anim_mgr:setStaffMarker(2334, kf2, kf1) |
| 53 |
|
| 54 |
|
| 55 |
object.orientations = { |
| 56 |
north = { |
| 57 |
use_position = {0, 0}, |
| 58 |
footprint = {}, |
| 59 |
}, |
| 60 |
east = { |
| 61 |
use_position = {0, 0}, |
| 62 |
footprint = {}, |
| 63 |
}, |
| 64 |
} |
| 65 |
|
| 66 |
return object |