mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
fix tower for real
This commit is contained in:
parent
f698f1356e
commit
a310055401
1 changed files with 13 additions and 2 deletions
|
@ -188,13 +188,24 @@ local was_notplayer = false
|
||||||
function module.on_world_update()
|
function module.on_world_update()
|
||||||
if GameGetFrameNum() % 10 == 7 then
|
if GameGetFrameNum() % 10 == 7 then
|
||||||
local x2, y2 = EntityGetTransform(ctx.my_player.entity)
|
local x2, y2 = EntityGetTransform(ctx.my_player.entity)
|
||||||
if is_in_box(9200, 11000, 8300, 9800, x2, y2) then
|
if np.GetGameModeNr() ~= 2
|
||||||
|
and tonumber(SessionNumbersGetValue("NEW_GAME_PLUS_COUNT")) == 0
|
||||||
|
and is_in_box(9200, 11000, 8300, 9800, x2, y2) then
|
||||||
local any_not = false
|
local any_not = false
|
||||||
for _, player in pairs(ctx.players) do
|
for _, player in pairs(ctx.players) do
|
||||||
local x, y = EntityGetTransform(player.entity)
|
local x, y = EntityGetTransform(player.entity)
|
||||||
if not is_in_box(9200, 11000, 8300, 9800, x, y) then
|
if not is_in_box(9200, 11000, 4000, 9800, x, y) then
|
||||||
any_not = true
|
any_not = true
|
||||||
end
|
end
|
||||||
|
if is_in_box(0, 1000, -2000, 0, x, y) then
|
||||||
|
async(function()
|
||||||
|
EntitySetTransform(ctx.my_player.entity, 770, 900)
|
||||||
|
wait(30)
|
||||||
|
EntitySetTransform(ctx.my_player.entity, 770, 900)
|
||||||
|
float()
|
||||||
|
end)
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if any_not then
|
if any_not then
|
||||||
rpc.teleport_to_tower()
|
rpc.teleport_to_tower()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue