spell book 
        
    
            
        
| Vars | |
| entries | A list to all spellbook entries within | 
|---|---|
| full_random_bonus | The bonus that you get from going full random. | 
| owner | The mind that first used the book. Automatically assigned when a wizard spawns. | 
| refunds_allowed | Determines if this spellbook can refund anything. | 
| semi_random_bonus | The bonus that you get from going semi-random. | 
| uses | The number of book charges we have to buy spells | 
| Procs | |
| on_magic_charge | Signal proc for COMSIG_ITEM_MAGICALLY_CHARGED | 
| prepare_spells | Instantiates our list of spellbook entries. | 
| purchase_entry | Attempts to purchased the passed entry [to_buy] for [user]. | 
| randomize | Purchases a fully random wizard loadout for [wizard], with a point bonus [bonus_to_give]. If passed a number [bonus_to_give], the wizard is given additional uses on their spellbook, used in randomization. | 
| semirandomize | Purchases a semi-random wizard loadout for [wizard] If passed a number [bonus_to_give], the wizard is given additional uses on their spellbook, used in randomization. | 
| wizard_loadout | Purchases a wizard loadout [loadout] for [wizard]. | 
Var Details
entries
            
        
    
            
        
        A list to all spellbook entries within
full_random_bonus
            
        
    
            
        
        The bonus that you get from going full random.
owner
            
        
    
            
        
        The mind that first used the book. Automatically assigned when a wizard spawns.
refunds_allowed
            
        
    
            
        
        Determines if this spellbook can refund anything.
semi_random_bonus
            
        
    
            
        
        The bonus that you get from going semi-random.
uses
            
        
    
            
        
        The number of book charges we have to buy spells
Proc Details
on_magic_charge
Signal proc for COMSIG_ITEM_MAGICALLY_CHARGED
Has no effect on charge, but gives a funny message to people who think they're clever.
prepare_spells
Instantiates our list of spellbook entries.
purchase_entry
Attempts to purchased the passed entry [to_buy] for [user].
randomize
Purchases a fully random wizard loadout for [wizard], with a point bonus [bonus_to_give]. If passed a number [bonus_to_give], the wizard is given additional uses on their spellbook, used in randomization.
semirandomize
Purchases a semi-random wizard loadout for [wizard] If passed a number [bonus_to_give], the wizard is given additional uses on their spellbook, used in randomization.
wizard_loadout
Purchases a wizard loadout [loadout] for [wizard].