| 1 |
--[[ Copyright (c) 2009 Edvin "Lego3" Linge |
| 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 = "slicer" |
| 23 |
object.thob = 26 |
| 24 |
object.research_category = "cure" |
| 25 |
object.research_fallback = 7 |
| 26 |
object.name = _S.object.slicer |
| 27 |
object.tooltip = _S.tooltip.objects.slicer |
| 28 |
object.ticks = false |
| 29 |
object.build_preview_animation = 932 |
| 30 |
object.default_strength = 8 |
| 31 |
object.crashed_animation = 3400 |
| 32 |
object.show_in_town_map = true |
| 33 |
object.smoke_animation = 3464 |
| 34 |
local function copy_north_to_south(t) |
| 35 |
t.south = t.north |
| 36 |
return t |
| 37 |
end |
| 38 |
object.idle_animations = copy_north_to_south { |
| 39 |
north = 1386, |
| 40 |
} |
| 41 |
object.usage_animations = copy_north_to_south { |
| 42 |
north = { |
| 43 |
in_use = {["Handyman"] = 3490}, |
| 44 |
}, |
| 45 |
} |
| 46 |
object.multi_usage_animations = { |
| 47 |
["Slack Male Patient - Doctor"] = copy_north_to_south { |
| 48 |
north = { |
| 49 |
in_use = 1390, -- Patient gets the tongue drawn out |
| 50 |
}, |
| 51 |
}, |
| 52 |
["Slack Female Patient - Doctor"] = copy_north_to_south { |
| 53 |
north = { |
| 54 |
in_use = 1394, -- Patient gets the tongue drawn out |
| 55 |
}, |
| 56 |
}, |
| 57 |
} |
| 58 |
|
| 59 |
object.orientations = { |
| 60 |
north = { |
| 61 |
footprint = { |
| 62 |
{-1, -1, only_passable = true}, {-1, 0}, {-1, 1}, |
| 63 |
{0, -1, only_passable = true}, {0, 0, only_passable = true, need_east_side = true}, {0, 1, only_passable = true}, |
| 64 |
}, |
| 65 |
use_position = {0, 0}, |
| 66 |
handyman_position = {1, -1}, |
| 67 |
use_position_secondary = {-1, -1}, |
| 68 |
smoke_position = {0, 0}, |
| 69 |
}, |
| 70 |
east = { |
| 71 |
footprint = { |
| 72 |
{-1, -1, only_passable = true}, {0, -1}, {1, -1}, |
| 73 |
{-1, 0, only_passable = true}, {0, 0, only_passable = true, need_south_side = true}, {1, 0, only_passable = true}, |
| 74 |
}, |
| 75 |
use_position = {0, 0}, |
| 76 |
handyman_position = {-1, 1}, |
| 77 |
use_position_secondary = {-1, -1}, |
| 78 |
early_list = true, |
| 79 |
smoke_position = {0, 0}, |
| 80 |
}, |
| 81 |
} |
| 82 |
local anim_mgr = TheApp.animation_manager |
| 83 |
anim_mgr:setPatientMarker(object.idle_animations.north, {-1.2, -0.8}) |
| 84 |
|
| 85 |
anim_mgr:setStaffMarker(3490, {28, -20, "px"}) |
| 86 |
|
| 87 |
return object |