function free_slot_3C() /* entry=382 class_id=0x0A0C slot=0x3C */
{
  var
    item, /* [BP-02h] type=0x24 */
    ref, /* [BP-04h] type=0x69 */
    rndVoice; /* [BP-06h] type=0x69 */

  set_info(1, 0);
  class_0A0C_slot_33(0x022B, 0);
  ref = 1;
  if (Ultima8Engine.getAvatarInStasis() == 1) {
    return;
  }
  else {
    rndVoice = UCMachine.rndRange(100, 0);
    if (rndVoice >= 30) {
      spawn class_0A0C_slot_21(pid, 15, 0x00000000);
      suspend;
      rndVoice = UCMachine.rndRange(100, 0);
      if (rndVoice >= 50) {
        spawn class_0A0C_slot_21(pid, 14, 0x00000000);
        suspend;
      }
      return;
    }
    else if (rndVoice <= 60) {
      spawn class_0A0C_slot_21(pid, 14, 0x00000000);
      suspend;
      rndVoice = UCMachine.rndRange(100, 0);
      if (rndVoice >= 30) {
        spawn class_0A0C_slot_21(pid, 15, 0x00000000);
        suspend;
      }
      if (rndVoice <= 60) {
        spawn class_0A0C_slot_21(pid, 0x00B6, 0x00000000);
        suspend;
      }
      return;
    }
    else {
      spawn class_0A0C_slot_21(pid, 0x00D2, 0x00000000);
      suspend;
      rndVoice = UCMachine.rndRange(100, 0);
      if (rndVoice >= 30) {
        spawn class_0A0C_slot_21(pid, 14, 0x00000000);
        suspend;
      }
      if (rndVoice <= 60) {
        spawn class_0A0C_slot_21(pid, 0x00B6, 0x00000000);
        suspend;
      }
    }
  }
  return;
}
