mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
add lukki sprite back, have map respect player colors, try to make colors more reliable, dont send adventure perk to peers
This commit is contained in:
parent
e673eb9930
commit
594af87651
14 changed files with 713 additions and 31 deletions
|
@ -274,6 +274,14 @@ function OnPlayerSpawned( player_entity ) -- This runs when player entity has be
|
|||
end
|
||||
local controls_component = EntityGetFirstComponentIncludingDisabled(player_entity, "ControlsComponent")
|
||||
ComponentSetValue2(controls_component, "enabled", true)
|
||||
for _, child in ipairs(EntityGetAllChildren(player_entity) or {}) do
|
||||
local com = EntityGetFirstComponentIncludingDisabled(child, "LuaComponent")
|
||||
if com ~= nil and ComponentGetValue2(com, "script_source_file") == "data/scripts/perks/map.lua" then
|
||||
EntityRemoveComponent(child, com)
|
||||
EntityAddComponent2(child, "LuaComponent", {script_source_file = "data/scripts/perks/map.lua"})
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function change_homing(x, y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue