local npcManager = require("npcManager")
local npcutils = require("npcs/npcutils")

local ai = require("maskCollection/scripts/npc/fauxPlayer")


local fauxPlayer = {}
local npcID = NPC_ID

local fauxPlayerSettings = table.join({
	id = npcID,

	gfxwidth = 32,
	gfxheight = 40,

	width = 28,
	height = 28,

	gfxoffsetx = 0,
	gfxoffsety = 2,

	frames = 4,
	framestyle = 1,
	framespeed = 8,

	animationSet = {
		idle = {1},
		walk = {1,2, frameDelay = 12},
		jump = {3},
		fall = {3},
		skid = {4},
	},
},ai.sharedSettings)

npcManager.setNpcSettings(fauxPlayerSettings)
npcManager.registerHarmTypes(npcID,
	{
		HARM_TYPE_JUMP,
		HARM_TYPE_FROMBELOW,
		HARM_TYPE_NPC,
		HARM_TYPE_PROJECTILE_USED,
		HARM_TYPE_LAVA,
		HARM_TYPE_HELD,
		HARM_TYPE_TAIL,
		HARM_TYPE_SPINJUMP,
		HARM_TYPE_OFFSCREEN,
		HARM_TYPE_SWORD
	}, 
	{
		--[HARM_TYPE_JUMP]=10,
		--[HARM_TYPE_FROMBELOW]=10,
		--[HARM_TYPE_NPC]=10,
		--[HARM_TYPE_PROJECTILE_USED]=10,
		--[HARM_TYPE_LAVA]={id=13, xoffset=0.5, xoffsetBack = 0, yoffset=1, yoffsetBack = 1.5},
		--[HARM_TYPE_HELD]=10,
		--[HARM_TYPE_TAIL]=10,
		--[HARM_TYPE_SPINJUMP]=10,
		--[HARM_TYPE_OFFSCREEN]=10,
		--[HARM_TYPE_SWORD]=10,
	}
)


ai.register(npcID)


return fauxPlayer