Skip to content

Commit

Permalink
Hasty hasty...
Browse files Browse the repository at this point in the history
  • Loading branch information
RogueClaris committed Jun 30, 2022
1 parent da89027 commit 605c662
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions liberations/loot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ local Loot = {
Async.await(player_session.player:message_with_mug("But it doesn't open anything..."))
return
end
local id = gates[1].custom_properties["Gate Key"]
local points = player_session:find_gate_points(id)
local function unlock_gates()
for i = 1, #gates, 1 do
instance:remove_panel(gates[i])
end
end
local id = gates[1].custom_properties["Gate Key"]
local points = player_session:find_gate_points(id)
if #points > 0 then
local hold_time = .4
local slide_time = .4
Expand All @@ -133,12 +133,12 @@ local Loot = {
total_camera_time = total_camera_time + hold_time
unlock_gates()
end
else
unlock_gates()
end
total_camera_time = total_camera_time + slide_time
Net.slide_player_camera(player_session.player.id, player_session.player.x, player_session.player.y, player_session.player.z, slide_time)
Async.await(Async.sleep(total_camera_time))
else
unlock_gates()
end
end)

Expand Down

0 comments on commit 605c662

Please sign in to comment.