{"size": 456, "ext": "js", "max_stars_repo_path": "lib/npcs/perks/quadriped.js", "max_stars_repo_name": "schematical/wheezy-world", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/npcs/perks/quadriped.js", "max_issues_repo_name": "schematical/wheezy-world", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/npcs/perks/quadriped.js", "max_forks_repo_name": "schematical/wheezy-world", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.8, "max_line_length": 49, "alphanum_fraction": 0.6842105263}

module.exports = function(app){
	app.perks.QuadripedBasePerk = function(options){
		if(!options.npc){
			throw new Error('Need an npc set');
		}
		options.perk_class = 'QuadripedBasePerk';

		var perk_base = new app.PerkBase(options);
		var teeth = new app.objects.Teeth({
			id: options.npc.id + '-teeth',
			world: options.npc.world
		});
		options.npc.add_to_inventory(teeth);
		options.npc.equipped_slots = {
			head:teeth
		}
		return perk_base;
	}
}