//Golden Crawla script
//I wanted to make it drop rings upon defeat, just so it can differentiate itself a little more from the vanilla Crawlas.

//Here's what happened sometimes when cooking up this script:
// - the lua wouldn't work
// - the game would crash upon collecting the dropped ring
// - I N F I N I T E  R I N G S  (no really, everything dropped infinite rings and even the level rings were infinite)

//Anyway here's what I came up with for this lol.

freeslot("MT_GOLDCRAWLA")

addHook("MobjDeath", function(MT_GOLDCRAWLA)
	P_SpawnMobjFromMobj(MT_GOLDCRAWLA, 0, 0, 0, MT_RING)
	P_SpawnMobjFromMobj(MT_GOLDCRAWLA, 3*FRACUNIT, 20*FRACUNIT, 0, MT_RING)
	P_SpawnMobjFromMobj(MT_GOLDCRAWLA, 19*FRACUNIT, 4*FRACUNIT, 0, MT_RING)
end, MT_GOLDCRAWLA)
