235 {
236 if (!container)
237 return false;
238
239 bool isContainerFull = container.IsFullQuantity();
240 if (isContainerFull && !ignore_fullness_check)
241 {
242
243 return false;
244
245 }
246
247 int containerMask = container.GetLiquidContainerMask();
248 if (containerMask == 0)
249 {
250
251 return false;
252 }
253
254 if ((liquid_type & containerMask) == 0)
255 {
256
257 return false;
258 }
259
260 float containerQuantity = container.GetQuantity();
261
262 int containerLiquidType = container.GetLiquidType();
263
265 {
266
267 return false;
268 }
269 return true;
270 }
static int TranslateLiquidType(int liquidType)
Translates 'administrative' liquid types into liquid types with valid config class.