| 1 |
--[[ Copyright (c) 2013 Luís "driverpt" Duarte |
| 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 |
|
| 23 |
object.id = "gates_to_hell" |
| 24 |
object.name = "Gates to Hell" |
| 25 |
object.thob = 48 |
| 26 |
object.ticks = true |
| 27 |
object.walk_in_to_use = true |
| 28 |
|
| 29 |
object.idle_animations = { |
| 30 |
south = 1602, |
| 31 |
east = 1602 |
| 32 |
} |
| 33 |
|
| 34 |
object.usage_animations = { |
| 35 |
south = { |
| 36 |
in_use = { |
| 37 |
["Standard Male Patient"] = 4560, |
| 38 |
}, |
| 39 |
}, |
| 40 |
east = { |
| 41 |
in_use = { |
| 42 |
["Standard Male Patient"] = 4560, |
| 43 |
}, |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
local anim_mgr = TheApp.animation_manager |
| 48 |
anim_mgr:setPatientMarker(object.usage_animations.south.in_use, 0, {0,0}) |
| 49 |
anim_mgr:setPatientMarker(object.usage_animations.east.in_use, 0, {0,0}) |
| 50 |
|
| 51 |
-- Orientation directions are relative to the patient's death location: |
| 52 |
object.orientations = { |
| 53 |
south = { |
| 54 |
use_position = {0, 0}, |
| 55 |
footprint = { {1, 0, only_passable = true}, |
| 56 |
{0, 0, complete_cell = true}, |
| 57 |
{-1, 0, only_passable = true} }, |
| 58 |
use_animate_from_use_position = false |
| 59 |
}, |
| 60 |
east = { |
| 61 |
use_position = {0, 0}, |
| 62 |
footprint = { {0, -1, only_passable = true}, {0, 0, complete_cell = true}, {0, 1, only_passable = true} }, |
| 63 |
use_animate_from_use_position = false |
| 64 |
} |
| 65 |
} |
| 66 |
|
| 67 |
return object |