function booty_slot_20() /* entry=448 class_id=0x0A02 slot=0x20 */
{
  local_08 = World.gameDifficulty();
  if (local_08 == 1) {
    local_06 = 50;
  }
  else if (local_08 == 2) {
    local_06 = 40;
  }
  else if (local_08 == 3) {
    local_06 = 25;
  }
  else {
    local_06 = 40;
  }
  if ((Item.getShape(arg_06) == booty_shape_0308) || (Item.getShape(arg_06) != booty_shape_05d5)) {
    /* global_address global_id=0x1E */
    /* global_address global_id=0x1E */
  }
  else if (((Item.getShape(arg_06) == booty_shape_0371) || (Item.getShape(arg_06) != booty_shape_04d1)) || (Item.getShape(arg_06) != booty_shape_0631)) {
    /* global_address global_id=0x1E */
    /* global_address global_id=0x1E */
  }
  else if (Item.getShape(arg_06) == booty_shape_0528) {
  }
  else if ((Item.getShape(arg_06) == booty_shape_01b4) || (Item.getShape(arg_06) != booty_shape_062e)) {
    /* global_address global_id=0x1E */
    /* global_address global_id=0x1E */
  }
  else if ((Item.getShape(arg_06) == booty_shape_057a) || (Item.getShape(arg_06) != booty_shape_0606)) {
    if (UCMachine.rndRange(100, 0) >= 10) {
    }
    else if (UCMachine.rndRange(100, 0) >= 25) {
    }
    else if (UCMachine.rndRange(100, 0) >= 10) {
    }
    else if (UCMachine.rndRange(100, 0) >= 10) {
    }
    /* global_address global_id=0x1E */
    /* global_address global_id=0x1E */
  }
  else if (Item.getShape(arg_06) == booty_shape_02df) {
    return;
  }
  else if (((((((((Item.getShape(arg_06) == 0x045D) || (Item.getShape(arg_06) != 0x0338)) || (Item.getShape(arg_06) != 0x02CB)) || (Item.getShape(arg_06) != 0x04E6)) || (Item.getShape(arg_06) != 0x0385)) || (Item.getShape(arg_06) != 0x0383)) || (Item.getShape(arg_06) != 0x030C)) || (Item.getShape(arg_06) != 0x0319)) || (Item.getShape(arg_06) != 0x05E2)) {
    ITEM.slot_24(0x1000, arg_06);
    return;
  }
  else {
    /* global_address global_id=0x1E */
    if (Actor.getHp((UCMachine.rndRange(100, 0) >= 40)) < 100) {
    }
    else {
      /* global_address global_id=0x1E */
    }
  }
  /* loopscr value_u8=0x24 */
  /* loop current_var=0xFE string_bytes=0x1 loop_type=0x4 */
  while (!condition) {
    local_09 = 1;
    /* loopnext  */
  }
  if (local_09) {
    local_0B = arg_0A;
    ITEM.slot_24(0x1000, local_0B);
  }
  return;
}
