ON INIT {
 SETNAME [description_ribs_uncooked]
 SET_MATERIAL FLESH
 SET_GROUP PROVISIONS
 SET_GROUP FOOD
 SET_PRICE 15
 PLAYERSTACKSIZE 10
 SET_STEAL 50
 SET_WEIGHT 1
 ACCEPT
}

ON INVENTORYUSE {
 SPEAK -p [player_off_uncooked] NOP
 ACCEPT
}

ON COMBINE {
 IF (^$param1 ISCLASS "CRUSHER") {
 PLAY "CRUSHING"
  INVENTORY PLAYERADD \\provisions\\shredded_meat\\shredded_meat
 REPLACEME \\provisions\\shredded_meat\\shredded_meat
 ACCEPT
 }
 if (^$PARAM1 ISCLASS "CARROT" ) {
  DESTROY ^$PARAM1
  INVENTORY PLAYERADD "\\provisions\\food_prep\\food_prep"
  REPLACEME "\\provisions\\food_prep\\food_prep"
  ACCEPT
 }
 if (^$PARAM1 ISCLASS "FOOD_APPLE" ) {
  DESTROY ^$PARAM1
  INVENTORY PLAYERADD "\\provisions\\food_prep\\food_prep"
  REPLACEME "\\provisions\\food_prep\\food_prep"
  ACCEPT
 }
 if (^$PARAM1 ISCLASS "MUSHROOM" ) {
  DESTROY ^$PARAM1
  INVENTORY PLAYERADD "\\provisions\\food_prep\\food_prep"
  REPLACEME "\\provisions\\food_prep\\food_prep"
  ACCEPT
 }
 if (^$PARAM1 ISCLASS "FOOD_LEEK" ) {
  DESTROY ^$PARAM1
  INVENTORY PLAYERADD "\\provisions\\food_prep\\food_prep"
  REPLACEME "\\provisions\\food_prep\\food_prep"
  ACCEPT
 }
 ACCEPT
}

ON CUSTOM {
 IF (^$PARAM1 == "COOK") GOTO COOKIT
 ACCEPT
}

ON COOK {
 IF (^INPLAYERINVENTORY == 1) ACCEPT
 SET_INTERACTIVITY NONE
 PLAY "cooking"
 TIMERpoule 1 5 GOTO COOKIT
 ACCEPT
}

>>COOKIT
 SET_INTERACTIVITY YES
 REPLACEME "\\provisions\\ribs_cooked\\ribs_cooked"
 ACCEPT 