27 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
30 for (
int s = 0; s < selections.Count(); s++)
32 selection = selections[s];
33 slot = garden_base.GetSlotBySelection( selection );
38 if ( slot && slot.GetPlant() )
54 m_Plant = PlantBase.Cast(slot.GetPlant());
55 m_Text+=
" " + MiscGameplayFunctions.GetItemDisplayName(
m_Plant.GetCropsType());
75 m_Plant = PlantBase.Cast(slot.GetPlant());
76 bool is_mature =
m_Plant.IsMature();
77 bool is_spoiled =
m_Plant.IsSpoiled();
78 bool has_crops =
m_Plant.HasCrops();
79 int plant_state =
m_Plant.GetPlantState();
81 if ( is_mature && has_crops )
protected float m_SpecialtyWeight
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
class ActionTargets ActionTarget
override void OnExecuteServer(ActionData action_data)
override void OnActionInfoUpdate(PlayerBase player, ActionTarget target, ItemBase item)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void ActionHarvestCrops()
Slot GetPlantSlot(ActionTarget target)
Super root of all classes in Enforce script.
const float PRECISE_MEDIUM
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.