10 override void CreateConditionComponents()
30 if ( target_item && item &&
Liquid.CanFillContainer( item, target_item.GetLiquidType(),
true ) &&
Liquid.CanFillContainer( target_item, item.GetLiquidType(),
true ) && !
GetGame().IsInventoryOpen() )
32 if ( target_item.GetQuantity() > target_item.GetQuantityMin() && item.GetQuantity() < item.GetQuantityMax() && !player.GetLiquidTendencyDrain() &&
Liquid.CanFillContainer( item, target_item.GetLiquidType() ) )
34 if (
Liquid.CanFillContainer( target_item, item.GetLiquidType() ) )
41 player.SetLiquidTendencyDrain(
true);
45 if ( item.GetQuantity() > item.GetQuantityMin() && target_item.GetQuantity() < target_item.GetQuantityMax() && player.GetLiquidTendencyDrain() &&
Liquid.CanFillContainer( target_item, item.GetLiquidType() ) )
47 if (
Liquid.CanFillContainer( item, target_item.GetLiquidType() ) )
54 player.SetLiquidTendencyDrain(
false);
64 super.Start( action_data );
66 state = action_data.m_Player.GetLiquidTendencyDrain();
67 action_data.m_Player.SetLiquidTendencyDrain(!state);
72 override bool IsLocal()
77 override bool IsInstant()
82 override bool RemoveForceTargetAfterUse()