Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2017
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. local   hothead = RegisterMod( "Hothead" );
  2. local   pyrokinesis_item = Isaac.GetItemIdByName( "Pyrokinesis" )
  3.  
  4. local text = "0"
  5.  
  6. function hothead:use_pyrokinesis( )
  7.     local   player = Isaac.GetPlayer(0)
  8.     local   entities = Isaac.GetRoomEntities()
  9.    
  10.     --text = tostring(#entities)
  11.     text = tostring(entities[0]:Type)
  12.     --Isaac.DebugString("hi")
  13.     for i = 1, #entities do
  14.         if (entities[i]:IsVulnerableEnemy()) then
  15.             entities[ i ]:AddBurn(EntityRef(player), 24, 10)
  16.         end
  17.     end
  18. end
  19.  
  20. function hothead:debug_text()
  21.     Isaac.RenderText(text, 100, 100, 255, 0, 0, 255)
  22. end
  23.  
  24. hothead:AddCallback( ModCallbacks.MC_USE_ITEM, hothead.use_pyrokinesis, pyrokinesis_item );
  25. hothead:AddCallback( ModCallbacks.MC_POST_RENDER, hothead.debug_text);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement