238 {
239 if ( item.IsInherited( ZombieBase ) || item.IsInherited( Car ) ) return;
240
242
243 if( item_base && item_base.GetQuantity() > 0 && item_base.
IsBloodContainer() )
244 {
245 BloodContainerBase blood_container = BloodContainerBase.Cast( item_base );
246
247 if( blood_container.GetBloodTypeVisible() )
248 {
249 string type;
250 bool positive;
251 string blood_type_name = BloodTypes.GetBloodTypeName(blood_container.GetLiquidType(), type, positive);
252 WidgetTrySetText(root_widget,
"ItemLiquidTypeWidget",
"#inv_inspect_blood: " + blood_type_name,
Colors.COLOR_LIQUID);
253 }
254 else
255 {
257 }
258 }
259 else if( item_base && item_base.GetQuantity() > 0 && item_base.IsLiquidContainer() )
260 {
261 int liquid_type = item_base.GetLiquidType();
262
263 switch(liquid_type)
264 {
266 {
268 break;
269 }
270
272 {
274 break;
275 }
276
278 {
280 break;
281 }
282
284 {
286 break;
287 }
288
290 {
292 break;
293 }
294
296 {
298 break;
299 }
300
302 {
304 break;
305 }
306
308 {
310 break;
311 }
312
313 default:
314 {
316 break;
317 }
318 }
319 }
320 else
321 {
323 }
324 }
class GP5GasMask extends MaskBase ItemBase
override bool IsBloodContainer()
const int LIQUID_FRESHWATER
const int LIQUID_DISINFECTANT
const int LIQUID_GASOLINE