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

29 lines
1.3 KiB
Lua
Raw Normal View History

2018-09-28 16:47:45 +02:00
function cheat_mode()
2018-09-28 21:50:26 +02:00
local surface = game.players[1].surface
2018-09-28 16:47:45 +02:00
game.player.cheat_mode=true
game.players[1].insert({name="power-armor-mk2"})
game.players[1].insert({name="fusion-reactor-equipment", count=4})
game.players[1].insert({name="personal-laser-defense-equipment", count=8})
game.players[1].insert({name="rocket-launcher"})
game.players[1].insert({name="explosive-rocket", count=200})
2018-10-03 21:17:12 +02:00
2018-09-28 16:47:45 +02:00
game.players[1].insert({name="loader"})
game.players[1].insert({name="fast-loader"})
game.players[1].insert({name="express-loader"})
game.players[1].insert({name="infinity-chest"})
2018-09-30 17:50:36 +02:00
game.players[1].insert({name="computer", count=2})
game.players[1].insert({name="raw-fish", count=100})
2018-10-03 21:17:12 +02:00
game.players[1].insert({name="submachine-gun", count=1})
game.players[1].insert({name="uranium-rounds-magazine", count=200})
2018-10-18 18:02:05 +02:00
game.players[1].insert({name="steel-chest", count=200})
game.players[1].insert({name="explosives", count=2000})
2018-10-22 16:53:51 +02:00
game.forces.player.manual_mining_speed_modifier = 100
game.forces.player.character_reach_distance_bonus = 10000
2018-10-18 18:02:05 +02:00
game.speed = 1
2018-09-28 16:47:45 +02:00
surface.daytime = 1
surface.freeze_daytime = 1
game.player.force.research_all_technologies()
--game.forces["enemy"].evolution_factor = 0.2
2018-09-30 17:50:36 +02:00
local chart = 200
2018-09-28 16:47:45 +02:00
game.forces["player"].chart(surface, {lefttop = {x = chart*-1, y = chart*-1}, rightbottom = {x = chart, y = chart}})
end