1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-24 03:47:58 +02:00

Merge pull request #321 from blubFisch/develop-blub

Disable artillery
This commit is contained in:
Gerkiz 2022-10-05 20:48:40 +02:00 committed by GitHub
commit 63d085b8b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -616,16 +616,16 @@ local function disable_deconstruct(permission_group)
end
end
local function enable_artillery(force, permission_group)
permission_group.set_allows_action(defines.input_action.use_artillery_remote, true)
force.technologies['artillery'].enabled = true
force.technologies['artillery-shell-range-1'].enabled = true
force.technologies['artillery-shell-speed-1'].enabled = true
force.recipes['artillery-turret'].enabled = false
force.recipes['artillery-wagon'].enabled = false
force.recipes['artillery-targeting-remote'].enabled = false
force.recipes['artillery-shell'].enabled = false
end
--local function enable_artillery(force, permission_group)
-- permission_group.set_allows_action(defines.input_action.use_artillery_remote, true)
-- force.technologies['artillery'].enabled = true
-- force.technologies['artillery-shell-range-1'].enabled = true
-- force.technologies['artillery-shell-speed-1'].enabled = true
-- force.recipes['artillery-turret'].enabled = false
-- force.recipes['artillery-wagon'].enabled = false
-- force.recipes['artillery-targeting-remote'].enabled = false
-- force.recipes['artillery-shell'].enabled = false
--end
local function disable_artillery(force, permission_group)
permission_group.set_allows_action(defines.input_action.use_artillery_remote, false)
@ -691,7 +691,7 @@ function Public.add_new_force(force_name)
reset_permissions(permission_group)
enable_blueprints(permission_group)
enable_deconstruct(permission_group)
enable_artillery(force, permission_group)
disable_artillery(force, permission_group)
disable_spidertron(force, permission_group)
disable_rockets(force)
disable_nukes(force)