Feature Update (#237)

See PR for details, there are too many to be included here.
This commit is contained in:
phidias authored and GitHub committed 2023-08-15 18:47:34 +01:00
1 parent cdd34ebaea
commit 46f6215d94
64 files changed
+4417 -289

No files matched your search

+24 -1
View File
@@ -17,4 +17,27 @@ end}
:set_flag('admin_only')
:register(function(_, player)
player.cheat_mode = not player.cheat_mode
end)
return Commands.success
end)
Commands.new_command('research-all', 'Set all research for your force.')
:set_flag('admin_only')
:add_param('force', true, 'force')
:set_defaults{force=function(player)
return player.force
end}
:register(function(_, force)
force.research_all_technologies()
return Commands.success
end)
Commands.new_command('toggle-always-day', 'Toggles always day in surface')
:set_flag('admin_only')
:add_param('surface', true, 'surface')
:set_defaults{surface=function(player)
return player.surface
end}
:register(function(_, surface)
surface.always_day = not surface.always_day
return Commands.success{'expcom-cheat.day', surface.always_day}
end)