1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-10 00:43:27 +02:00
ComfyFactorio/maps/pirates/noise_pregen/noise_pregen.lua
danielmartin0 fc08a81da3 locale fix, improvements
- reorder lines in locale file for clarity
- localise a few additional renderings
- players in the cabin now see the large 'outside world minimap' rather than the small spontaneous camera
- play sounds along with error messages
- correctly print info message when player joins a game with _DEBUG=true
2022-05-30 16:51:08 +01:00

30 lines
940 B
Lua

local Public = {}
-- no longer using the below code
Public.encoding = [[!#$%&'()*+'-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ/^_`abcdefghijklmnopqrstuvwxyz{}|~]]
Public.encoding_length = 91
Public.enc = {}
Public.dec = {}
for i=1,Public.encoding_length do
Public.enc[i]=Public.encoding:sub(i,i)
Public.dec[Public.encoding:sub(i,i)]=i
end
Public.island1 = {}
Public.island1.Data = require 'maps.pirates.noise_pregen.perlinwavelength100boxsize1000octaves5gain0p8lacunity2lengthpower1rms0p05423'
Public.island1.upperscale = 100
Public.island1.boxsize = 1000
Public.island1.wordlength = 5
Public.island1.factor = 0.1925/0.05423
Public.forest1 = {}
Public.forest1.Data = require 'maps.pirates.noise_pregen.simplexwavelength100boxsize1000octaves5gain0p65lacunity2lengthpower1p2rms0p06243'
Public.forest1.upperscale = 100
Public.forest1.boxsize = 1000
Public.forest1.wordlength = 5
Public.forest1.factor = 0.1925/0.06243
return Public