mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
An extremely hacky way to generate things in holy mountains earlier. Doesn't work in the final temple for some reason. Also should probably call this once per run.
This commit is contained in:
parent
2de9d1dc03
commit
9ecf5a25c3
4 changed files with 62 additions and 1 deletions
|
@ -38,7 +38,7 @@ function net_handling.proxy.host_id(_, value)
|
|||
end
|
||||
|
||||
function net_handling.proxy.proxy_opt(_, key, value)
|
||||
print("Proxy opt [str]: "..key.." = "..value)
|
||||
print("Proxy opt [str]: "..key.." = "..tostring(value))
|
||||
ctx.proxy_opt[key] = value
|
||||
end
|
||||
|
||||
|
|
|
@ -64,6 +64,19 @@ local function show_game_effects()
|
|||
end
|
||||
end
|
||||
|
||||
local bring_cam = false
|
||||
local bring_cam_back = nil
|
||||
function module.on_world_update()
|
||||
if bring_cam then
|
||||
local cx, cy = GameGetCameraPos()
|
||||
-- GameSetCameraPos(0, 8600 - 20)
|
||||
GameSetCameraPos(-200, 1390)
|
||||
bring_cam = false
|
||||
GameSetCameraPos(cx, cy)
|
||||
bring_cam_back = nil
|
||||
end
|
||||
end
|
||||
|
||||
function module.on_world_update_post()
|
||||
if imgui.Begin("EW Debug stuff") then
|
||||
if imgui.CollapsingHeader("General") then
|
||||
|
@ -98,6 +111,16 @@ function module.on_world_update_post()
|
|||
tp_button("Essence - Laser", 16000, -1800.003)
|
||||
tp_button("Essence - Eater", 12620.563, -141.003)
|
||||
tp_button("Mines HM", -200, 1390)
|
||||
tp_button("Coal pits HM", -300, 2900)
|
||||
tp_button("Snowy HM", -300, 5000)
|
||||
tp_button("Hiisi HM", -300, 6500)
|
||||
tp_button("Jungle HM", -300, 8550)
|
||||
tp_button("Vault HM", -300, 10600)
|
||||
tp_button("Lab HM", 2200, 13150)
|
||||
|
||||
if fw_button("test_load") then
|
||||
bring_cam = true
|
||||
end
|
||||
end
|
||||
if imgui.CollapsingHeader("Game effects") then
|
||||
show_game_effects()
|
||||
|
|
37
quant.ew/files/system/hax_preload/hax_preload.lua
Normal file
37
quant.ew/files/system/hax_preload/hax_preload.lua
Normal file
|
@ -0,0 +1,37 @@
|
|||
local function preload(x, y)
|
||||
local chunkloader = util.load_ephemerial("mods/quant.ew/files/resource/entities/chunk_loader.xml", x, y)
|
||||
async(function ()
|
||||
wait(3)
|
||||
local cx, cy = GameGetCameraPos()
|
||||
GameSetCameraPos(x, y)
|
||||
GameSetCameraPos(cx, cy)
|
||||
EntityKill(chunkloader)
|
||||
end)
|
||||
end
|
||||
|
||||
local module = {}
|
||||
|
||||
local first_update = true
|
||||
|
||||
function module.on_world_update_host()
|
||||
if first_update then
|
||||
async(function ()
|
||||
preload(-300, 1400)
|
||||
wait(1)
|
||||
preload(-300, 2900)
|
||||
wait(1)
|
||||
preload(-300, 5000)
|
||||
wait(1)
|
||||
preload(-300, 6500)
|
||||
wait(1)
|
||||
preload(-300, 8550)
|
||||
wait(1)
|
||||
preload(-300, 10600)
|
||||
wait(1)
|
||||
preload(2200, 13150)
|
||||
end)
|
||||
first_update = false
|
||||
end
|
||||
end
|
||||
|
||||
return module
|
|
@ -93,6 +93,7 @@ local function load_modules()
|
|||
ctx.load_system("essence_sync")
|
||||
ctx.load_system("spectate")
|
||||
ctx.load_system("effect_data_sync")
|
||||
ctx.load_system("hax_preload")
|
||||
end
|
||||
|
||||
local function is_suitable_target(entity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue