Skip to content

Commit

Permalink
Ghavoran: Activate EMMI by default
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquegemignani committed May 9, 2022
1 parent 83b0808 commit aca441c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions open_dread_rando/files/levels/s050_forest.lc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ function s050_forest.SetupDebugGameBlackboard()
Blackboard.SetProp("PLAYER_INVENTORY", "ITEM_METROIDNIZATION", "f", 0)
end




function s050_forest.IsEmmiActive()
return true
end



Expand Down Expand Up @@ -341,7 +341,7 @@ function s050_forest.OnEmmyForestGenerated(_ARG_0_, _ARG_1_)
AI.SetWorldGraphToEmmy("LE_WorldGraph", _ARG_1_.sName)
s050_forest.ChangePatrolEmmy("PATROLROUTE_03")
print("EMMY: Generation OK. Starting patrol: " .. _ARG_1_.AI.sCurrentPatrol)
if QUARENTINE_OPENED == true then
if s050_forest.IsEmmiActive() then
print("QUARANTINE IS OPENED")
else
CurrentScenario.oEmmyEntity.bEnabled = false
Expand Down Expand Up @@ -516,7 +516,7 @@ function s050_forest.OnWalkThroughEmmyDoor(_ARG_0_, _ARG_1_, _ARG_2_)



if QUARENTINE_OPENED == true and Scenario.CheckEmmyAlive(CurrentScenario.oEmmyEntity) then
if s050_forest.IsEmmiActive() and Scenario.CheckEmmyAlive(CurrentScenario.oEmmyEntity) then
if _ARG_1_ then
if CurrentScenario.oEmmyEntity ~= nil then
if _ARG_2_ then
Expand Down

0 comments on commit aca441c

Please sign in to comment.