31 if ( target_item && item && Liquid.CanFillContainer( item, target_item.GetLiquidType(),
true ) && Liquid.CanFillContainer( target_item, item.GetLiquidType(),
true ) && !
GetGame().IsInventoryOpen() )
33 if ( target_item.GetQuantity() > target_item.GetQuantityMin() && item.GetQuantity() < item.GetQuantityMax() && !player.GetLiquidTendencyDrain() && Liquid.CanFillContainer( item, target_item.GetLiquidType() ) )
35 if ( Liquid.CanFillContainer( target_item, item.GetLiquidType() ) )
42 player.SetLiquidTendencyDrain(
true);
46 if ( item.GetQuantity() > item.GetQuantityMin() && target_item.GetQuantity() < target_item.GetQuantityMax() && player.GetLiquidTendencyDrain() && Liquid.CanFillContainer( target_item, item.GetLiquidType() ) )
48 if ( Liquid.CanFillContainer( item, target_item.GetLiquidType() ) )
55 player.SetLiquidTendencyDrain(
false);