3 protected float m_QuantityUsedPerAction;
4 protected float m_ItemQuantity;
5 protected ref Param1<float> m_SpentUnits;
9 m_QuantityUsedPerAction = quantity_used_per_action;
16 m_SpentUnits =
new Param1<float>(0);
20 m_SpentUnits.param1 = 0;
22 m_ItemQuantity = action_data.m_MainItem.GetQuantity();
27 if ( !action_data.m_Player )
33 CalcAndSetQuantity( action_data );
39 void CalcAndSetQuantity(
ActionData action_data )
45 m_SpentUnits.param1 = m_QuantityUsedPerAction;
46 SetACData(m_SpentUnits);
49 action_data.m_MainItem.AddQuantity(- m_QuantityUsedPerAction,
false,
false);