Debian Codegraph @

CorsixTH/Lua/objects/drinks_machine.lua

raw
1 --[[ Copyright (c) 2009 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 = "drinks_machine"
23 object.thob = 7
24 object.name = _S.object.drinks_machine
25 object.tooltip = _S.tooltip.objects.drinks_machine
26 object.ticks = false
27 object.corridor_object = 3
28 object.build_preview_animation = 906
29 object.multiple_users_allowed = true
30 object.dynamic_info = true
31 object.idle_animations = {
32 south = 170,
33 west = 172,
34 north = 174,
35 east = 176,
36 }
37 object.usage_animations = {
38 south = {
39 in_use = {
40 ["Standard Male Patient" ] = 190,
41 ["Standard Female Patient" ] = 250,
42 ["Slack Female Patient" ] = 250,
43 ["Transparent Male Patient" ] = 1112,
44 ["Slack Male Patient" ] = 1532,
45 ["Invisible Patient" ] = 1804,
46 ["Alternate Male Patient" ] = 2756,
47 ["Transparent Female Patient"] = 3060, -- is 426 an initial try at this?
48 ["Chewbacca Patient" ] = 3768,
49 ["Elvis Patient" ] = 198,
50 ["Alien Male Patient" ] = 190,
51 ["Alien Female Patient" ] = 250,
52 },
53 },
54 east = {
55 in_use = {
56 ["Standard Male Patient" ] = 196,
57 ["Standard Female Patient" ] = 256,
58 ["Slack Female Patient" ] = 256,
59 ["Transparent Male Patient" ] = 1118,
60 ["Slack Male Patient" ] = 1538,
61 ["Invisible Patient" ] = 1810,
62 ["Alternate Male Patient" ] = 2762,
63 ["Transparent Female Patient"] = 3066,
64 ["Chewbacca Patient" ] = 3774,
65 ["Elvis Patient" ] = 204,
66 ["Alien Male Patient" ] = 196,
67 ["Alien Female Patient" ] = 256,
68 },
69 },
70 west = {
71 in_use = {
72 ["Standard Male Patient" ] = 192,
73 ["Standard Female Patient" ] = 252,
74 ["Slack Female Patient" ] = 252,
75 ["Transparent Male Patient" ] = 1114,
76 ["Slack Male Patient" ] = 1534,
77 ["Invisible Patient" ] = 1806,
78 ["Alternate Male Patient" ] = 2758,
79 ["Transparent Female Patient"] = 3062,
80 ["Chewbacca Patient" ] = 3770,
81 ["Elvis Patient" ] = 200,
82 ["Alien Male Patient" ] = 192,
83 ["Alien Female Patient" ] = 252,
84 },
85 },
86 }
87 object.orientations = {
88 north = {
89 footprint = { {0, 0, complete_cell = true}, {0, -1, only_passable = true} },
90 use_position = "passable",
91 added_animation_offset_while_in_use = {-1, 0},
92 },
93 east = {
94 footprint = { {0, 0, complete_cell = true}, {1, 0, only_passable = true} },
95 use_position = "passable",
96 use_animate_from_use_position = true,
97 },
98 south = {
99 footprint = { {0, 0, complete_cell = true}, {0, 1, only_passable = true} },
100 use_position = "passable",
101 use_animate_from_use_position = true,
102 },
103 west = {
104 footprint = { {0, 0, complete_cell = true}, {-1, 0, only_passable = true} },
105 use_position = "passable",
106 },
107 }
108
109 return object