anchor.diff:  	return 0
   
   /datum/spellbook_entry/proc/Refund(mob/living/carbon/human/user,obj/item/weapon/spellbook/book) //return point value or -1 for failure
  -	var/area/wizard_station/A = locate()
  -	if(!(user in A.contents))
  -		to_chat(user, "<span clas=='warning'>You can only refund spells at the wizard lair</span>")
  +	var/canRefund = book.RefundAllowed(user)
  +	if(!canRefund)
  +		to_chat(user, "<span class='warning'>You can only refund spells at the wizard lair!</span>")
   		return -1
   	if(!S)
   		S = new spell_type()
  
positive.code: 	refundable = 0
  	buy_word = "Summon"
  	var/item_path= null
  
  
  /datum/spellbook_entry/item/Buy(mob/living/carbon/human/user,obj/item/weapon/spellbook/book)
  
negative.code: 	var/mob/living/carbon/human/owner
  	var/list/datum/spellbook_entry/entries = list()
  	var/list/categories = list()
  	var/refund_rules = REFUND_FLAG_SHIP
  
  /obj/item/weapon/spellbook/examine(mob/user)
  	..()
  