32 {
33 GardenBase garden_base;
34 if ( Class.CastTo(garden_base, target.GetObject()))
35 {
36 Slot slot;
37
38 array<string> selections = new array<string>;
39 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
40 string selection;
41
42 for (int s = 0; s < selections.Count(); s++)
43 {
44 selection = selections[s];
45 slot = garden_base.GetSlotBySelection( selection );
46 if (slot)
47 break;
48 }
49
50 if ( garden_base.NeedsFertilization( selection ) )
51 {
52 if ( item.GetQuantity() > 0 )
53 {
54 return true;
55 }
56 }
57 }
58 return false;
59 }