21 override typename GetInputType()
26 Slot GetPlantSlot(ActionTarget target)
29 if (
Class.CastTo(garden_base, target.GetObject()))
34 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
37 for (
int s = 0; s < selections.Count(); s++)
39 selection = selections[s];
40 slot = garden_base.GetSlotBySelection( selection );
45 if ( slot && slot.GetPlant() )
53 override void OnActionInfoUpdate(
PlayerBase player, ActionTarget target,
ItemBase item )
57 Slot slot = GetPlantSlot(target);
61 m_Plant = PlantBase.Cast(slot.GetPlant());
62 m_Text+=
" " + MiscGameplayFunctions.GetItemDisplayName(m_Plant.GetCropsType());
67 override void CreateConditionComponents()
76 if (
Class.CastTo(garden_base, target.GetObject()))
78 Slot slot = GetPlantSlot(target);
82 m_Plant = PlantBase.Cast(slot.GetPlant());
83 if ( m_Plant && m_Plant.IsHarvestable())
91 override void OnFinishProgressServer( ActionData action_data )
95 m_Plant.Harvest( action_data.m_Player );