11 override void CreateConditionComponents()
17 override bool HasTarget()
26 if (gardenBase && (!gardenBase.IsHologram() || !gardenBase.IsBeingPlaced()))
29 gardenBase.GetActionComponentNameList(target.GetComponentIndex(), selections);
31 foreach (
string selection : selections)
33 Slot slot = gardenBase.GetSlotBySelection(selection);
36 if (item != null && item.GetQuantity() > 0 && gardenBase.CanPlantSeed(selection))
45 override void OnExecuteServer(ActionData action_data)
47 super.OnExecuteServer(action_data);
52 void Process(ActionData action_data)
60 gardenBase.GetActionComponentNameList(action_data.m_Target.GetComponentIndex(), selections);
62 foreach (
string selection : selections)
64 Slot slot = gardenBase.GetSlotBySelection(selection);
67 slotID = slot.GetSlotId();
73 if (seed.GetQuantity() > 1)
74 seed.SplitIntoStackMax(gardenBase, slotID, action_data.m_Player);
76 gardenBase.ServerTakeEntityToTargetAttachmentEx(gardenBase, seed, slotID);