| 1 |
--[[ Copyright (c) 2010 Manuel "Roujin" Wolf |
| 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 = "jelly_moulder" |
| 23 |
object.thob = 47 |
| 24 |
object.research_category = "cure" |
| 25 |
object.research_fallback = 12 |
| 26 |
object.name = _S.object.jelly_moulder |
| 27 |
object.tooltip = _S.tooltip.objects.jelly_moulder |
| 28 |
object.ticks = false |
| 29 |
object.build_preview_animation = 928 |
| 30 |
object.default_strength = 7 |
| 31 |
object.crashed_animation = 3312 |
| 32 |
object.show_in_town_map = true |
| 33 |
object.smoke_animation = 3440 |
| 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 = 1302, |
| 40 |
} |
| 41 |
|
| 42 |
-- Animations in order: |
| 43 |
-- male female |
| 44 |
-- idle 1302 |
| 45 |
-- patient enters room .. |
| 46 |
-- doctor goes to button, presses 1382 |
| 47 |
-- door opens 1310 |
| 48 |
-- patient climbs stairs 1334 3958 |
| 49 |
-- patient stands on top 1338 3962 (repeatable) NYI |
| 50 |
-- gets sucked in 1342 3966 |
| 51 |
-- floor opens 1314 |
| 52 |
-- floor stays open 1318 (repeatable) NYI |
| 53 |
-- skeleton rises 1322 |
| 54 |
-- door closes 1326 |
| 55 |
-- door stays closed 1330 (repeatable) NYI |
| 56 |
-- patient on skeleton 1346 3970 |
| 57 |
-- patient stands inside 1350 3974 (repeatable) NYI |
| 58 |
-- door opens 1354 3978 |
| 59 |
-- patient steps out 1358 3982 |
| 60 |
-- door closes 1306 |
| 61 |
|
| 62 |
object.walk_in_to_use = true -- This is only considered by use_object, not multi_use_object. |
| 63 |
object.usage_animations = copy_north_to_south { |
| 64 |
north = { |
| 65 |
in_use = {["Handyman"] = 3502}, -- (3508: duplicate with error?) |
| 66 |
}, |
| 67 |
} |
| 68 |
|
| 69 |
-- Note that for this particular machine the staff is the primary user, not the patient |
| 70 |
-- This was done in order to be able to let the patient be visible a while longer. |
| 71 |
object.multi_usage_animations = { |
| 72 |
["Doctor - Standard Male Patient"] = copy_north_to_south { |
| 73 |
north = { |
| 74 |
begin_use = 1382, |
| 75 |
begin_use_2 = 1310, |
| 76 |
begin_use_3 = 1334, |
| 77 |
begin_use_4 = 1342, |
| 78 |
begin_use_5 = 1314, |
| 79 |
in_use = 1322, |
| 80 |
finish_use = 1326, |
| 81 |
finish_use_2 = 1346, |
| 82 |
finish_use_3 = 1354, |
| 83 |
finish_use_4 = 1358, |
| 84 |
finish_use_5 = 1306, |
| 85 |
}, |
| 86 |
}, |
| 87 |
["Doctor - Standard Female Patient"] = copy_north_to_south { |
| 88 |
north = { |
| 89 |
begin_use = 1382, |
| 90 |
begin_use_2 = 1310, |
| 91 |
begin_use_3 = 3958, |
| 92 |
begin_use_4 = 3966, |
| 93 |
begin_use_5 = 1314, |
| 94 |
in_use = 1322, |
| 95 |
finish_use = 1326, |
| 96 |
finish_use_2 = 3970, |
| 97 |
finish_use_3 = 3978, |
| 98 |
finish_use_4 = 3982, |
| 99 |
finish_use_5 = 1306, |
| 100 |
}, |
| 101 |
}, |
| 102 |
} |
| 103 |
|
| 104 |
object.orientations = { |
| 105 |
north = { |
| 106 |
handyman_position = {2, -1}, |
| 107 |
walk_in_tile = {1, -1}, |
| 108 |
use_position = {-1, 1}, |
| 109 |
use_position_secondary = {1, -1}, |
| 110 |
finish_use_position = {-1, 1}, |
| 111 |
finish_use_position_secondary = {1, 0}, |
| 112 |
finish_use_orientation_secondary = "east", |
| 113 |
footprint = { {-1, -1}, {0, -1}, {1, -1, only_passable = true}, |
| 114 |
{-1, 0}, {0, 0, complete_cell = true}, {1, 0, only_passable = true}, |
| 115 |
{-1, 1, only_passable = true, need_east_side = true}, }, |
| 116 |
render_attach_position = {0, -1}, |
| 117 |
smoke_position = {0, 0}, |
| 118 |
}, |
| 119 |
east = { |
| 120 |
handyman_position = {-1, 2}, |
| 121 |
walk_in_tile = {-1, 1}, |
| 122 |
use_position = {1, -1}, |
| 123 |
use_position_secondary = {-1, 1}, |
| 124 |
finish_use_position = {1, -1}, |
| 125 |
finish_use_position_secondary = {0, 1}, |
| 126 |
finish_use_orientation_secondary = "south", |
| 127 |
footprint = { {-1, -1}, {0, -1}, {1, -1, only_passable = true, need_south_side = true}, |
| 128 |
{-1, 0}, {0, 0, complete_cell = true}, |
| 129 |
{-1, 1, only_passable = true}, {0, 1, only_passable = true}, }, |
| 130 |
render_attach_position = {-1, 0}, |
| 131 |
smoke_position = {0, 0}, |
| 132 |
}, |
| 133 |
} |
| 134 |
|
| 135 |
return object |