1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-09-16 09:06:21 +02:00

biter spawners and tureets now have random chance to drop 0-2 darts, updated readme

This commit is contained in:
pacific.mottled.lumpsucker
2019-10-05 17:23:14 -04:00
parent 6ddd8c8600
commit 2d90734fae

View File

@@ -13,7 +13,7 @@ global.map_info.text = [[
You cannot mine things.
You cannot deconstruct things ... the only way to "deconstruct" is your railgun.
You cannot destroy things ... except the biters ... railgun darts may be found within their nests.
You cannot destroy things ... except the biters ... and they have been known to hoard railgun darts.
Have fun <3
]]
@@ -71,7 +71,7 @@ end
local function on_entity_died(event)
if not event.entity.valid then return end
if event.entity.type == "unit-spawner" or event.entity.type == "turret" then
event.entity.surface.spill_item_stack({event.entity.position.x, event.entity.position.y + 2}, {name = "railgun-dart", count = 1}, false)
event.entity.surface.spill_item_stack({event.entity.position.x, event.entity.position.y + 2}, {name = "railgun-dart", count = math.random(0, 2)}, false)
end
end