DayZ 1.24
Loading...
Searching...
No Matches
CannedFood.c
Go to the documentation of this file.
1//-------------Animal food-----------------------------------------------
3{
4 override void Open()
5 {
6 //super.Open();
7 ReplaceEdibleWithNew("DogFoodCan_Opened");
8 }
9
10 override void SetActions()
11 {
12 super.SetActions();
13
15 }
16
17 override bool IsOpen()
18 {
19 return false;
20 }
21}
22
24{
25 override bool CanDecay()
26 {
27 return true;
28 }
29
30 override bool CanProcessDecay()
31 {
32 return !(GetAgents() & eAgents.FOOD_POISON);
33 }
34
35 override void SetActions()
36 {
37 super.SetActions();
38
43
45{
46 override void Open()
47 {
48 //super.Open();
49 ReplaceEdibleWithNew("CatFoodCan_Opened");
50 }
51
52 override bool IsOpen()
53 {
54 return false;
55 }
56}
57
59{
60
61};
62
63//-------------PorkCan-----------------------------------------------
65{
66 override void Open()
67 {
68 //super.Open();
69 ReplaceEdibleWithNew("PorkCan_Opened");
70 }
71
72 override void SetActions()
73 {
74 super.SetActions();
75
77 }
78
79 override bool IsOpen()
80 {
81 return false;
82 }
83}
84
86{
87 override bool CanDecay()
88 {
89 return true;
90 }
91
92 override bool CanProcessDecay()
93 {
94 return !(GetAgents() & eAgents.FOOD_POISON);
95 }
96
97 override void SetActions()
98 {
99 super.SetActions();
100
103 }
104};
105
106//-------------Lunchmeat-----------------------------------------------
108{
109 override void Open()
110 {
111 //super.Open();
112 ReplaceEdibleWithNew("Lunchmeat_Opened");
113 }
114
115 override void SetActions()
116 {
117 super.SetActions();
118
120 }
121
122 override bool IsOpen()
123 {
124 return false;
125 }
126}
127
129{
130 override bool CanDecay()
131 {
132 return true;
133 }
134
135 override bool CanProcessDecay()
136 {
137 return !(GetAgents() & eAgents.FOOD_POISON);
138 }
139
140 override void SetActions()
141 {
142 super.SetActions();
143
146 }
147};
148
149//-------------Unknown Food-----------------------------------------------
151{
152 override void Open()
153 {
154 //super.Open();
155 ReplaceEdibleWithNew("UnknownFoodCan_Opened");
156 }
157
158 override bool IsOpen()
159 {
160 return false;
161 }
162}
163
165{
167 {
168 InsertAgent(eAgents.FOOD_POISON, 1);
169 }
170
171 override bool CanDecay()
172 {
173 return true;
174 }
175
176 override bool CanProcessDecay()
177 {
178 return !(GetAgents() & eAgents.FOOD_POISON);
179 }
180
181 override void SetActions()
182 {
183 super.SetActions();
184
187 }
188
189 override bool IsOpen()
190 {
191 return false;
192 }
193};
194
195//-------------Pajka-----------------------------------------------
197{
198 override void Open()
199 {
200 //super.Open();
201 ReplaceEdibleWithNew("Pajka_Opened");
202 }
203
204 override void SetActions()
205 {
206 super.SetActions();
207
209 }
210
211 override bool IsOpen()
212 {
213 return false;
214 }
215}
216
218{
219 override bool CanDecay()
220 {
221 return true;
222 }
223
224 override bool CanProcessDecay()
225 {
226 return !(GetAgents() & eAgents.FOOD_POISON);
227 }
228
229 override void SetActions()
230 {
231 super.SetActions();
232
235 }
236
237 override bool IsOpen()
238 {
239 return false;
240 }
241};
242
243//-------------Pate-----------------------------------------------
245{
246 override void Open()
247 {
248 //super.Open();
249 ReplaceEdibleWithNew("Pate_Opened");
250 }
251
252 override void SetActions()
253 {
254 super.SetActions();
255
257 }
258
259 override bool IsOpen()
260 {
261 return false;
262 }
263}
264
266{
267 override bool CanDecay()
268 {
269 return true;
270 }
271
272 override bool CanProcessDecay()
273 {
274 return !(GetAgents() & eAgents.FOOD_POISON);
275 }
276
277 override void SetActions()
278 {
279 super.SetActions();
280
283 }
284
285 override bool IsOpen()
286 {
287 return false;
288 }
289};
290
291//-------------BrisketSpread-----------------------------------------------
293{
294 override void Open()
295 {
296 //super.Open();
297 ReplaceEdibleWithNew("BrisketSpread_Opened");
298 }
299
300 override void SetActions()
301 {
302 super.SetActions();
303
305 }
306
307 override bool IsOpen()
308 {
309 return false;
310 }
311}
312
314{
315 override bool CanDecay()
316 {
317 return true;
318 }
319
320 override bool CanProcessDecay()
321 {
322 return !(GetAgents() & eAgents.FOOD_POISON);
323 }
324
325 override void SetActions()
326 {
327 super.SetActions();
328
331 }
332};
void AddAction(typename actionName)
void SetActions()
UnknownFoodCan Edible_Base UnknownFoodCan_Opened()
Definition CannedFood.c:166
CatFoodCan DogFoodCan_Opened
eAgents
Definition EAgents.c:3
override void InsertAgent(int agent, float count=1)
Definition ItemBase.c:8539
bool IsOpen()
Definition ItemBase.c:8672
bool CanDecay()
Definition ItemBase.c:9213
bool CanProcessDecay()
Definition ItemBase.c:9219
override int GetAgents()
Definition ItemBase.c:8554
override void SetActions()
Definition CannedFood.c:300
override bool IsOpen()
Definition CannedFood.c:307
override void Open()
Definition CannedFood.c:294
override bool IsOpen()
Definition CannedFood.c:52
override void Open()
Definition CannedFood.c:46
override bool IsOpen()
Definition CannedFood.c:17
override void SetActions()
Definition CannedFood.c:10
override void Open()
Definition CannedFood.c:4
override bool CanDecay()
override void SetActions()
override bool CanProcessDecay()
void ReplaceEdibleWithNew(string typeName)
override bool IsOpen()
Definition CannedFood.c:122
override void SetActions()
Definition CannedFood.c:115
override void Open()
Definition CannedFood.c:109
override void Open()
Definition CannedFood.c:198
override void SetActions()
Definition CannedFood.c:204
override bool IsOpen()
Definition CannedFood.c:211
override void Open()
Definition CannedFood.c:246
override void SetActions()
Definition CannedFood.c:252
override bool IsOpen()
Definition CannedFood.c:259
override bool IsOpen()
Definition CannedFood.c:79
override void Open()
Definition CannedFood.c:66
override void SetActions()
Definition CannedFood.c:72
override void Open()
Definition CannedFood.c:152
override bool IsOpen()
Definition CannedFood.c:158