53 {
54 GardenBase gardenBase = GardenBase.Cast(action_data.m_Target.GetObject());
55
56 if (gardenBase)
57 {
58 int slotID;
59 array<string> selections = new array<string>();
60 gardenBase.GetActionComponentNameList(action_data.m_Target.GetComponentIndex(), selections);
61
62 foreach (string selection : selections)
63 {
64 Slot slot = gardenBase.GetSlotBySelection(selection);
65 if (slot)
66 {
67 slotID = slot.GetSlotId();
68 break;
69 }
70 }
71
73 if (seed.GetQuantity() > 1)
74 seed.SplitIntoStackMax(gardenBase, slotID, action_data.m_Player);
75 else
76 gardenBase.ServerTakeEntityToTargetAttachmentEx(gardenBase, seed, slotID);
77 }
78 }
class GP5GasMask extends MaskBase ItemBase