Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local hothead = RegisterMod( "Hothead" );
- local pyrokinesis_item = Isaac.GetItemIdByName( "Pyrokinesis" )
- local text = "0"
- function hothead:use_pyrokinesis( )
- local player = Isaac.GetPlayer(0)
- local entities = Isaac.GetRoomEntities()
- --text = tostring(#entities)
- text = tostring(entities[0]:Type)
- --Isaac.DebugString("hi")
- for i = 1, #entities do
- if (entities[i]:IsVulnerableEnemy()) then
- entities[ i ]:AddBurn(EntityRef(player), 24, 10)
- end
- end
- end
- function hothead:debug_text()
- Isaac.RenderText(text, 100, 100, 255, 0, 0, 255)
- end
- hothead:AddCallback( ModCallbacks.MC_USE_ITEM, hothead.use_pyrokinesis, pyrokinesis_item );
- hothead:AddCallback( ModCallbacks.MC_POST_RENDER, hothead.debug_text);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement