Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- now we spawn something
- local rng = player:GetCollectibleRNG(bombBugs)
- local roll = rng:RandomInt(100)
- if player:HasCollectible(377) then -- 377 is Bursting Sack
- if roll < 85 then
- for e = 1, 4 do
- Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0, bombs[j].Position, Vector(0,0), player)
- end
- elseif roll < 95 then
- 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
- player:DropTrinket(player.Position, false) -- if the player has a trinket it will be dropped
- player:AddTrinket(TrinketType.TRINKET_TICK) -- add the tick to the player
- else
- for f = 1, 4 do
- Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0, bombs[j].Position, Vector(0,0), player)
- end
- end
- else
- if player:HasCollectible(248) then -- 248 is Hive Mind
- local spider = Isaac.Spawn(EntityType.ENTITY_BIGSPIDER, 2, 1, bombs[j].Position, Vector(0,0), player) -- needs
- testing
- spider:AddCharmed(-1)
- spider:AddEntityFlags(EntityFlag.FLAG_FRIENDLY)
- else
- for g = 1, 4 do
- Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0, bombs[j].Position, Vector(0,0), player)
- end
- end
- end
- else
- if roll < 85 then
- Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0, bombs[j].Position, Vector(0,0), player)
- elseif roll < 95 then
- 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)
- player:AddTrinket(TrinketType.TRINKET_TICK)
- else
- Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0, bombs[j].Position, Vector(0,0), player)
- end
- else
- -- spawns a Big or normal red spider with a 5% chance
- if player:HasCollectible(248) then -- 248 is Hive Mind
- Isaac.Spawn(EntityType.ENTITY_BIGSPIDER, 2, 1, bombs[j].Position, Vector(0,0), player) -- needs
- testing
- else
- Isaac.Spawn(EntityType.ENTITY_SPIDER, 2, 1, bombs[j].Position, Vector(0,0), player)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement