mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Add several comments.
This commit is contained in:
parent
9ad1ac0219
commit
9d0837810c
2 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,7 @@ local function run_spawn_fn(fn_name, x, y, ...)
|
|||
if fn_info.kind == "item" then
|
||||
local eid = ret
|
||||
ctx.cap.item_sync.globalize(eid, true, ctx.rpc_peer_id)
|
||||
-- Avoid item losing it's cost on host.
|
||||
local x, y = EntityGetTransform(eid)
|
||||
local minishop = EntityLoad("mods/quant.ew/files/system/gen_sync/tmp_shop_area.xml", x, y)
|
||||
EntityAddChild(eid, minishop)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
-- Deletes the temporary shop entity after the world has been properly generated.
|
||||
|
||||
local ent = GetUpdatedEntityID()
|
||||
local x, y = EntityGetTransform(ent)
|
||||
if DoesWorldExistAt(x-5, y-5, x+5, y+5) then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue