| 1 |
--[[ Copyright (c) 2010 Wendell Misiedjan |
| 2 |
|
| 3 |
Edited by: Wendell Misiedjan |
| 4 |
|
| 5 |
Based on: Manuel König files. |
| 6 |
|
| 7 |
Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 8 |
this software and associated documentation files (the "Software"), to deal in |
| 9 |
the Software without restriction, including without limitation the rights to |
| 10 |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 11 |
of the Software, and to permit persons to whom the Software is furnished to do |
| 12 |
so, subject to the following conditions: |
| 13 |
|
| 14 |
The above copyright notice and this permission notice shall be included in all |
| 15 |
copies or substantial portions of the Software. |
| 16 |
|
| 17 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 18 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 19 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 20 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 21 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 22 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 23 |
SOFTWARE. --]] |
| 24 |
|
| 25 |
local object = {} |
| 26 |
object.id = "radiation_shield" |
| 27 |
object.slave_id = "radiation_shield_b" |
| 28 |
object.class = "RadiationShield" |
| 29 |
object.thob = 28 |
| 30 |
object.name = _S.object.radiation_shield |
| 31 |
object.tooltip = _S.tooltip.objects.radiation_shield |
| 32 |
object.ticks = true |
| 33 |
object.build_preview_animation = 922 |
| 34 |
object.show_in_town_map = true |
| 35 |
|
| 36 |
local function copy_north_to_south(t) |
| 37 |
t.south = t.north |
| 38 |
return t |
| 39 |
end |
| 40 |
|
| 41 |
object.idle_animations = copy_north_to_south { |
| 42 |
north = 794, |
| 43 |
} |
| 44 |
|
| 45 |
object.usage_animations = copy_north_to_south { |
| 46 |
north = { |
| 47 |
begin_use = {Doctor = 798}, -- Doctor sits down |
| 48 |
begin_use_2 = {Doctor = 806}, -- Pulls the handle |
| 49 |
in_use = {Doctor = { |
| 50 |
810, -- Sits idle |
| 51 |
814, -- Pushing buttons |
| 52 |
}}, |
| 53 |
finish_use = {Doctor = 802}, -- Doctor stands up |
| 54 |
}, |
| 55 |
} |
| 56 |
object.orientations = { |
| 57 |
north = { |
| 58 |
render_attach_position = {0, -1}, |
| 59 |
footprint = { {-2, -1}, {-1, -1}, {0, -1}, |
| 60 |
{-2, 0}, {-1, 0}, {0, 0, only_passable = true}, |
| 61 |
{-2, 1}, {-1, 1}, {0, 1}}, |
| 62 |
use_position = {0, 0} |
| 63 |
}, |
| 64 |
east = { |
| 65 |
render_attach_position = {0, -1}, |
| 66 |
footprint = { {-1, -2}, {0, -2},{1, -2}, |
| 67 |
{-1, -1}, {0, -1},{1, -1}, |
| 68 |
{-1, 0}, {0, 0, only_passable = true},{1, 0} }, |
| 69 |
use_position = {0, 0} |
| 70 |
}, |
| 71 |
} |
| 72 |
|
| 73 |
class "RadiationShield" (Object) |
| 74 |
|
| 75 |
---@type RadiationShield |
| 76 |
local RadiationShield = _G["RadiationShield"] |
| 77 |
|
| 78 |
RadiationShield:slaveMixinClass() |
| 79 |
|
| 80 |
return object |