1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Merge pull request #1120 from Refactorio/arty-pickup-bug-fix

Update events.lua to temporarily disable some anti-cheese that went wrong
This commit is contained in:
Jayefuu 2020-12-14 19:29:35 +00:00 committed by GitHub
commit 7d4e8e6ac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,12 +320,12 @@ local function do_bot_spawn(entity_name, entity, event)
-- If there is no cause then the player probably picked up an artillery turret before the projectile hit the entity. -- If there is no cause then the player probably picked up an artillery turret before the projectile hit the entity.
-- This causes no bots to spawn because there is no cause. Punish the player for the behaviour by sending some bots to spawn instead of their location -- This causes no bots to spawn because there is no cause. Punish the player for the behaviour by sending some bots to spawn instead of their location
if not cause then if not cause then
for i = 1, 30 do --[[for i = 1, 30 do
spawn_entity.name = 'destroyer-capsule' spawn_entity.name = 'destroyer-capsule'
spawn_entity.speed = 0.4 spawn_entity.speed = 0.4
spawn_entity.target = {0,0} spawn_entity.target = {0,0}
create_entity(spawn_entity) create_entity(spawn_entity)
end end]]
return return
end end