// Chest in hidden ritual chamber

ON INIT {
 SET £type "chest_1"
 set §genInv 0
 SET §unlock 1
 ACCEPT
}

ON LOAD {
 USEMESH "chest_1\\chest_1.teo"
 ACCEPT
}

ON INVENTORY2_OPEN {
>>RANDOM_ITEM
 IF ( §genInv == 1 ) ACCEPT
  IF (#RANDOMIZER < 3) {
  INVENTORY ADDMULTI "\Quest_item\ritual_blooding_device\ritual_blooding_device" 5
  }
  IF (#RANDOMIZER == 3) {
  INVENTORY ADDMULTI "\Quest_item\ritual_blooding_device\ritual_blooding_device" 4
  INVENTORY ADDMULTI "PROVISIONS\\BOTTLE_BLOOD\\BOTTLE_BLOOD" 1
  }
  IF (#RANDOMIZER == 4) {
  INVENTORY ADDMULTI "\Quest_item\ritual_blooding_device\ritual_blooding_device" 3
  INVENTORY ADDMULTI "PROVISIONS\\BOTTLE_BLOOD\\BOTTLE_BLOOD" 2
  }
  IF (#RANDOMIZER == 5) {
  INVENTORY ADDMULTI "\Quest_item\ritual_blooding_device\ritual_blooding_device" 2
  INVENTORY ADDMULTI "PROVISIONS\\BOTTLE_BLOOD\\BOTTLE_BLOOD" 3
  }
  IF (#RANDOMIZER > 5) {
  INVENTORY ADDMULTI "\Quest_item\ritual_blooding_device\ritual_blooding_device" 3
  INVENTORY ADDMULTI "PROVISIONS\\BOTTLE_BLOOD\\BOTTLE_BLOOD" 1
  INVENTORY ADDMULTI "PROVISIONS\\BOTTLE_EMPTY\\BOTTLE_EMPTY" 2
  }
  set §genInv 1
  ACCEPT
 }
 set §genInv 1
 ACCEPT
}