daily pastebin goal
31%
SHARE
TWEET

Synergy Bomb Bugs/Hive Mind/Bursting Sack

Josh64 Jun 19th, 2018 (edited) 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- now we spawn something
  2.  
  3. local rng = player:GetCollectibleRNG(bombBugs)
  4. local roll = rng:RandomInt(100)
  5. if player:HasCollectible(377) then  -- 377 is Bursting Sack
  6.     if roll < 85 then
  7.         for e = 1, 4 do
  8.                     Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0, bombs[j].Position, Vector(0,0), player)
  9.         end
  10.     elseif roll < 95 then
  11.             if(player:GetTrinket(0) ~= TrinketType.TRINKET_TICK and player:GetTrinket(1) ~= TrinketType.TRINKET_TICK and player:GetTrinket(0) ~= TrinketType.TRINKET_MATCH_STICK and player:GetTrinket(1) ~= TrinketType.TRINKET_MATCH_STICK) then   -- the game tries to give the player the Tick
  12.                     player:DropTrinket(player.Position, false)   -- if the player has a trinket it will be dropped
  13.                         player:AddTrinket(TrinketType.TRINKET_TICK)  --  add the tick to the player
  14.         else
  15.                         for f = 1, 4 do
  16.                             Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0, bombs[j].Position, Vector(0,0), player)
  17.             end
  18.         end
  19.     else
  20.         if player:HasCollectible(248) then  -- 248 is Hive Mind
  21.             local spider = Isaac.Spawn(EntityType.ENTITY_BIGSPIDER, 2, 1, bombs[j].Position, Vector(0,0), player) -- needs
  22. testing
  23.             spider:AddCharmed(-1)
  24.             spider:AddEntityFlags(EntityFlag.FLAG_FRIENDLY)
  25.         else
  26.             for g = 1, 4 do
  27.                             Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0, bombs[j].Position, Vector(0,0), player)
  28.             end
  29.  
  30.         end
  31.     end
  32. else
  33.     if roll < 85 then
  34.         Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0, bombs[j].Position, Vector(0,0), player)
  35.     elseif roll < 95 then
  36.         if(player:GetTrinket(0) ~= TrinketType.TRINKET_TICK and player:GetTrinket(1) ~= TrinketType.TRINKET_TICK and player:GetTrinket(0) ~= TrinketType.TRINKET_MATCH_STICK and player:GetTrinket(1) ~= TrinketType.TRINKET_MATCH_STICK) then              player:DropTrinket(player.Position, false)  
  37.                         player:AddTrinket(TrinketType.TRINKET_TICK)
  38.         else
  39.                         Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0, bombs[j].Position, Vector(0,0), player)
  40.         end
  41.     else
  42.         -- spawns a Big or normal red spider with a 5% chance
  43.         if player:HasCollectible(248) then  -- 248 is Hive Mind
  44.             Isaac.Spawn(EntityType.ENTITY_BIGSPIDER, 2, 1, bombs[j].Position, Vector(0,0), player) -- needs
  45. testing
  46.         else
  47.             Isaac.Spawn(EntityType.ENTITY_SPIDER, 2, 1, bombs[j].Position, Vector(0,0), player)
  48.         end
  49.     end
  50. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top