5    if (!
super.CanPutAsAttachment(parent)) 
return false;
 
    6    const int SLOTS_ARRAY = 8;
 
   10    string slot_names[SLOTS_ARRAY] = { 
"BerryR", 
"BerryB", 
"Plant", 
"OakBark", 
"BirchBark", 
"Nails", 
"Disinfectant", 
"Guts" };
 
   14    if (parent.IsKindOf(
"Barrel_ColorBase"))
 
   18    if (
is_barrel && parent.GetAnimationPhase(
"Lid") == 1)
 
   22    for (
int i = 0; 
i < SLOTS_ARRAY ; 
i++)
 
   24      if (parent.FindAttachmentBySlotName(slot_names[
i]) != 
NULL)