automagically add the beguiller to the items
This commit is contained in:
		
							parent
							
								
									45a67dcce6
								
							
						
					
					
						commit
						e788f4fbc5
					
				
					 2 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -7,6 +7,9 @@
 | 
			
		|||
      "name": "Jean-Marie 'Histausse' Mineau"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "esmodules": [
 | 
			
		||||
    "modules/settings.js"
 | 
			
		||||
  ],
 | 
			
		||||
  "version": "0.0.1",
 | 
			
		||||
  "compatibility": {
 | 
			
		||||
    "minimum": "10",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								modules/settings.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								modules/settings.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
Hooks.on("ready", function() {
 | 
			
		||||
  
 | 
			
		||||
  console.log("Adding the Beguiller class");
 | 
			
		||||
 | 
			
		||||
  if (game.items.filter((item) => item.name == 'The Beguiler' && item.type == 'class').length == 0) {
 | 
			
		||||
    game.items.importFromCompendium(game.packs.get("the_beguiler_module.dwgl-classe"), "vtwvUr31f4qcVSWx")
 | 
			
		||||
  }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue