[WIP] Treballant en el jefe. Per fi torna a ser jugable! Ara a pels detalls

This commit is contained in:
2026-04-18 18:45:58 +02:00
parent 8f65666a06
commit dab08a0f17
18 changed files with 144 additions and 2577 deletions

View File

@@ -59,8 +59,8 @@ function remove_actor(actor)
end
function set_actors_enabled_by_room(_enabled, _reason, room0, room1)
print("set_actors_enabled_by_room")
print(" hab_list")
-- print("set_actors_enabled_by_room")
-- print(" hab_list")
room1 = room1 or room0
local rw=(room1-room0)%mapa_rooms_per_piso
local hab_list = {}
@@ -68,25 +68,25 @@ print(" hab_list")
while y<=room1 do
for x=y, y+rw do
hab_list[x]=true
print(" "..x)
-- print(" "..x)
end
y = y+mapa_rooms_per_piso
end
for index, actor in pairs(actors) do
if hab_list[actor.hab] and actor~=abad then
if actor.name then print(" "..actor.name) end
if actor.disable_reason then print(" "..actor.disable_reason) end
if actor.enabled then print("ENABLED") end
-- if actor.name then print(" "..actor.name) end
-- if actor.disable_reason then print(" "..actor.disable_reason) end
-- if actor.enabled then print("ENABLED") end
if not _enabled then
print("DISABLE ACTORS")
-- print("DISABLE ACTORS")
-- disable
if actor.enabled then
-- Si el actor està actiu -> deshabilitar amb motiu
actor.enabled=_enabled
actor.disable_reason = _reason
print("-> ".._reason)
-- print("-> ".._reason)
end
else
-- enable