Add several comments.

This commit is contained in:
IQuant 2024-09-16 18:21:05 +03:00
parent 9ad1ac0219
commit 9d0837810c
2 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -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