Skip to content

Commit

Permalink
Fixed a things in Shrine 1st floor SW map.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertram25 committed Mar 18, 2014
1 parent 14c40bf commit 30ca6e3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dat/maps/mt_elbrus/mt_elbrus_shrine6_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function _CreateObjects()

object = CreateObject(Map, "Candle Holder1", 43, 20);
Map:AddGroundObject(object);
object = CreateObject(Map, "Candle Holder1", 43, 31);
object = CreateObject(Map, "Candle Holder1", 43, 30);
Map:AddGroundObject(object);

object = CreateObject(Map, "Stone Fence1", 13, 11);
Expand All @@ -122,12 +122,16 @@ function _CreateObjects()
object = CreateObject(Map, "Stone Fence1", 43, 16);
Map:AddGroundObject(object);

object = CreateObject(Map, "Stone Fence1", 34, 13);
Map:AddGroundObject(object);
object = CreateObject(Map, "Stone Fence1", 26, 19);
Map:AddGroundObject(object);

-- Add flames preventing from using the doors
-- Top Right door: Unlocked by trigger
local fence1_trigger1_x_position = 27.0;
local fence2_trigger1_x_position = 29.0;
-- Sets the passage open if the enemies were already beaten
-- FIXME: USE a trigger event instead.
if (GlobalManager:GetEventValue("triggers", "mt elbrus shrine 6 trigger 1") == 1) then
fence1_trigger1_x_position = 25.0;
fence2_trigger1_x_position = 31.0;
Expand All @@ -142,8 +146,7 @@ function _CreateObjects()
local fence1_trigger2_y_position = 34.0;
local fence2_trigger2_y_position = 36.0;
-- Sets the passage open if the enemies were already beaten
-- FIXME: USE a trigger event instead.
if (GlobalManager:GetEventValue("story", "mountain_shrine_1st_NE_trigger_pushed") == 1) then
if (GlobalManager:GetEventValue("triggers", "mt elbrus shrine 8 gate 7 trigger") == 1) then
fence1_trigger2_y_position = 32.0;
fence2_trigger2_y_position = 38.0;
end
Expand Down

0 comments on commit 30ca6e3

Please sign in to comment.