mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
dont have an instance of kick for each instance of noita for shiny orb
This commit is contained in:
parent
89498171c0
commit
0986cb1938
3 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,3 @@
|
|||
function kick()
|
||||
CrossCall("ew_kicked_orb", GetUpdatedEntityID(), false)
|
||||
function kick(entity_who_kicked)
|
||||
CrossCall("ew_kicked_orb", GetUpdatedEntityID(), entity_who_kicked, false)
|
||||
end
|
|
@ -1,3 +1,3 @@
|
|||
function kick()
|
||||
CrossCall("ew_kicked_orb", GetUpdatedEntityID(), true)
|
||||
function kick(entity_who_kicked)
|
||||
CrossCall("ew_kicked_orb", GetUpdatedEntityID(), entity_who_kicked, true)
|
||||
end
|
|
@ -29,7 +29,10 @@ function rpc.kicked_orb(gid, rx, ry, greed)
|
|||
drop()
|
||||
end
|
||||
|
||||
np.CrossCallAdd("ew_kicked_orb", function(entity, greed)
|
||||
np.CrossCallAdd("ew_kicked_orb", function(entity, entity_who_kicked, greed)
|
||||
if entity_who_kicked ~= ctx.my_player.entity then
|
||||
return
|
||||
end
|
||||
local x, y = EntityGetTransform( entity )
|
||||
rpc.kicked_orb(item_sync.get_global_item_id(entity), x + entity, y - GameGetFrameNum(), greed)
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue