// Maria's tools stock

ON INIT {
>>FREE_REFILL
 SET_SHOP YES
 SHOP_CATEGORY PROVISIONS
 SHOP_MULTIPLY 1.1
 INVENTORY ADD "PROVISIONS\FISHING_POLE\FISHING_POLE"
 INVENTORY ADD "PROVISIONS\\PICK_AXE\\PICK_AXE"
 INVENTORY ADDMULTI "PROVISIONS\\SHOVEL\\SHOVEL" 3
 INVENTORY ADDMULTI "PROVISIONS\\LOCKPICKS\\LOCKPICKS" 3
 SET §unlock 1
 SET £key "KEY_BASE_0072"
 ACCEPT 
}
 
ON INITEND {
 SENDEVENT -ri IDENTIFY 100 ""
 ACCEPT
}

ON RESET {
 INVENTORY DESTROY
 GOTO FREE_REFILL
 ACCEPT
}

ON CUSTOM {  
  IF (^$PARAM1 == "DEAD") {
    SET_SHOP NO
    SET §unlock 0
    ACCEPT
  }
 IF (^$PARAM1 == "LOCK") {
   SET §unlock 0
   SET_SHOP NO
   ACCEPT
 }  
 IF (^$PARAM1 == "UNLOCK") {
   SET §unlock 1
   SET_SHOP YES
   ACCEPT
 }
 ACCEPT 
}
ON INVENTORY2_OPEN {
 IF (#SHOPPING == 1) ACCEPT
 SET #SHOPPING 1
 HEROSAY [tutorial_shop]
 ACCEPT
}