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"})
|
2018-12-19 16:59:31 +02:00
|
|
|
game.players[1].insert({name="railgun", count=1})
|
|
|
|
game.players[1].insert({name="railgun-dart", count=10})
|
2018-11-20 23:30:08 +02:00
|
|
|
game.players[1].insert({name="coin", count = 100000})
|
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"})
|
2019-01-04 02:28:14 +02:00
|
|
|
game.players[1].insert({name="infinity-chest", count = 15})
|
2018-09-30 17:50:36 +02:00
|
|
|
game.players[1].insert({name="computer", count=2})
|
2018-10-30 08:48:02 +02:00
|
|
|
game.players[1].insert({name="raw-fish", count=2000})
|
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})
|
2019-06-07 11:18:08 +02:00
|
|
|
game.players[1].insert({name="electric-energy-interface", count=2})
|
2018-12-25 18:24:26 +02:00
|
|
|
game.forces.player.manual_mining_speed_modifier = 3
|
|
|
|
game.forces.player.character_reach_distance_bonus = 1000
|
2019-06-07 11:18:08 +02:00
|
|
|
game.forces.player.character_health_bonus = 1000
|
2019-08-13 10:33:14 +02:00
|
|
|
game.speed = 1
|
2019-02-23 16:11:49 +02:00
|
|
|
surface.daytime = 1
|
2019-03-09 00:47:38 +02:00
|
|
|
--surface.freeze_daytime = 1
|
2018-09-28 16:47:45 +02:00
|
|
|
game.player.force.research_all_technologies()
|
2019-03-09 00:47:38 +02:00
|
|
|
game.forces["enemy"].evolution_factor = 0.1
|
2019-08-06 03:04:35 +02:00
|
|
|
local chart = 128
|
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
|