// Barrel in goblin kingdom, kitchen

ON INVENTORY2_OPEN {
 SENDEVENT CUSTOM GOBLIN_BASE_0013 "Thief"
 IF ( §genInv == 0 ) {
  IF (#RANDOMIZER < 3) {
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_CHICKEN_UNCOOKED\\FOOD_CHICKEN_UNCOOKED" 4
  INVENTORY ADDMULTI "PROVISIONS\\RIBS_MINI\\RIBS_MINI" 4
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_APPLE\\FOOD_APPLE" 4
  }
  IF (#RANDOMIZER == 3) {
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_CHICKEN_UNCOOKED\\FOOD_CHICKEN_UNCOOKED" 5
  INVENTORY ADDMULTI "PROVISIONS\\RIBS_MINI\\RIBS_MINI" 4
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_APPLE\\FOOD_APPLE" 3
  }
  IF (#RANDOMIZER == 4) {
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_CHICKEN_UNCOOKED\\FOOD_CHICKEN_UNCOOKED" 3
  INVENTORY ADDMULTI "PROVISIONS\\RIBS_MINI\\RIBS_MINI" 5
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_APPLE\\FOOD_APPLE" 4
  }
  IF (#RANDOMIZER == 5) {
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_CHICKEN_UNCOOKED\\FOOD_CHICKEN_UNCOOKED" 3
  INVENTORY ADDMULTI "PROVISIONS\\RIBS_MINI\\RIBS_MINI" 4
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_APPLE\\FOOD_APPLE" 5
  }
  IF (#RANDOMIZER == 6) {
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_CHICKEN_UNCOOKED\\FOOD_CHICKEN_UNCOOKED" 3
  INVENTORY ADDMULTI "PROVISIONS\\RIBS_MINI\\RIBS_MINI" 3
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_APPLE\\FOOD_APPLE" 6
  }
  IF (#RANDOMIZER == 7) {
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_CHICKEN_UNCOOKED\\FOOD_CHICKEN_UNCOOKED" 6
  INVENTORY ADDMULTI "PROVISIONS\\RIBS_MINI\\RIBS_MINI" 3
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_APPLE\\FOOD_APPLE" 3
  }
  IF (#RANDOMIZER == 8) {
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_CHICKEN_UNCOOKED\\FOOD_CHICKEN_UNCOOKED" 3
  INVENTORY ADDMULTI "PROVISIONS\\RIBS_MINI\\RIBS_MINI" 6
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_APPLE\\FOOD_APPLE" 3
  }
  IF (#RANDOMIZER > 8) {
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_CHICKEN_UNCOOKED\\FOOD_CHICKEN_UNCOOKED" 4
  INVENTORY ADDMULTI "PROVISIONS\\RIBS_MINI\\RIBS_MINI" 3
  INVENTORY ADDMULTI "PROVISIONS\\FOOD_APPLE\\FOOD_APPLE" 5
  }
  RANDOM 40 { INVENTORY ADD "PROVISIONS\\GARLIC\\GARLIC" }
  set §genInv 1
  ACCEPT
 }
 ACCEPT
}