3 override void CreateActionComponent()
25 override void CreateConditionComponents()
34 if (
Class.CastTo(garden_base, target.GetObject()))
39 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
42 for (
int s = 0; s < selections.Count(); s++)
44 selection = selections[s];
45 slot = garden_base.GetSlotBySelection( selection );
50 if ( slot && slot.GetPlant() )
52 m_Plant = PlantBase.Cast(slot.GetPlant());
53 if ( m_Plant.IsGrowing() && m_Plant.NeedsSpraying() )
55 if ( m_Plant.GetPlantStateIndex() < 1 )
58 if ( item.GetQuantity() > 0 )
81 override void OnFinishProgressServer(
ActionData action_data)
83 Object targetObject = action_data.m_Target.GetObject();
84 Param1<float> nacdata = Param1<float>.Cast( action_data.m_ActionComponent.GetACData() );
91 override void OnFinishProgressClient(
ActionData action_data)
93 Object targetObject = action_data.m_Target.GetObject();
94 Param1<float> nacdata = Param1<float>.Cast( action_data.m_ActionComponent.GetACData() );