Skip to content

Commit

Permalink
Removed some empty lines, added some empty lines add end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Sep 29, 2023
1 parent e2a31e8 commit e987ece
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
12 changes: 6 additions & 6 deletions open_samus_returns_rando/files/custom_metroid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ function Metroid.RemoveMetroid(_ARG_0_)
return
end

-- Scenario.WriteToBlackboard("entity_SG_" .. metroid .. "_dead", "b", true)
Scenario.WriteToBlackboard("entity_" .. spawnGroupName .. "_dead", "b", true)
Scenario.WriteToBlackboard("entity_" .. spawnGroupName .. "_deaths", "i", 1)
-- Scenario.WriteToBlackboard("entity_SG_" .. metroid .. "_enabled", "b", false)
-- Scenario.WriteToBlackboard("entity_" .. metroid .. "_dead", "b", true)
-- Scenario.WriteToBlackboard("entity_" .. metroid .. "_deaths", "i", 1)
-- Scenario.WriteToBlackboard("entity_" .. metroid .. "_enabled", "b", false)
Scenario.WriteToBlackboard("entity_" .. spawnGroupName .. "_enabled", "b", false)
Scenario.WriteToBlackboard("entity_" .. "Alpha_001" .. "_dead", "b", true)
Scenario.WriteToBlackboard("entity_" .. "Alpha_001" .. "_deaths", "i", 1)
Scenario.WriteToBlackboard("entity_" .. "Alpha_001" .. "_enabled", "b", false)

local count = Game.GetItemAmount(Game.GetPlayerName(), "ITEM_METROID_COUNT") + 1
Game.SetItemAmount(Game.GetPlayerName(), "ITEM_METROID_COUNT", count)
Expand All @@ -33,4 +33,4 @@ function Metroid.RemoveMetroid(_ARG_0_)
else
GUI.LaunchMessage("Oops 2", "Metroid.Dummy", "")
end
end
end
2 changes: 1 addition & 1 deletion open_samus_returns_rando/files/custom_scenario.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ function Scenario.SetMetroidSpawngroupOnCurrentScenario(created_actor, group_nam
if created_actor ~= nil and created_actor.sName ~= nil then
CurrentScenario.currentMetroidSpawngroup = group_name
end
end
end
1 change: 0 additions & 1 deletion open_samus_returns_rando/files/levels/s000_surface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ function s000_surface.OnEnter_SetCheckpoint_001_Alpha_001()
end
function s000_surface.OnAlpha_001_Generated(_ARG_0_, _ARG_1_)
Scenario.SetMetroidSpawngroupOnCurrentScenario(_ARG_0_, "SG_Alpha_001")

if _ARG_1_ ~= nil and _ARG_1_.AI ~= nil then
-- _ARG_1_.AI:AddBossDoor("Door013")
_ARG_1_.AI.bPlaceholder = false
Expand Down
5 changes: 0 additions & 5 deletions open_samus_returns_rando/files/levels/s020_area2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ function s020_area2.OnEnter_SetCheckpoint_001_Alpha_003()
end
function s020_area2.OnAlpha_003_Generated(_ARG_0_, _ARG_1_)
Scenario.SetMetroidSpawngroupOnCurrentScenario(_ARG_0_, "SG_Alpha_003")

if _ARG_1_ ~= nil and _ARG_1_.AI ~= nil then
-- _ARG_1_.AI:AddBossDoor("Door021")
-- _ARG_1_.AI:AddBossDoor("Door009")
Expand Down Expand Up @@ -301,7 +300,6 @@ function s020_area2.OnEnter_SetCheckpoint_001_Alpha_004()
end
function s020_area2.OnAlpha_004_Generated(_ARG_0_, _ARG_1_)
Scenario.SetMetroidSpawngroupOnCurrentScenario(_ARG_0_, "SG_Alpha_004")

if _ARG_1_ ~= nil and _ARG_1_.AI ~= nil then
-- _ARG_1_.AI:AddBossDoorUnlockedOnDeath("Door010")
_ARG_1_.AI.bPlaceholder = false
Expand Down Expand Up @@ -346,7 +344,6 @@ function s020_area2.OnEnter_SetCheckpoint_001_Alpha_005()
end
function s020_area2.OnAlpha_005_Generated(_ARG_0_, _ARG_1_)
Scenario.SetMetroidSpawngroupOnCurrentScenario(_ARG_0_, "SG_Alpha_005")

if _ARG_1_ ~= nil and _ARG_1_.AI ~= nil then
-- _ARG_1_.AI:AddBossDoor("Door022")
_ARG_1_.AI.bPlaceholder = false
Expand All @@ -372,7 +369,6 @@ function s020_area2.OnEnter_SetCheckpoint_001_Alpha_006()
end
function s020_area2.OnAlpha_006_Generated(_ARG_0_, _ARG_1_)
Scenario.SetMetroidSpawngroupOnCurrentScenario(_ARG_0_, "SG_Alpha_006")

if _ARG_1_ ~= nil and _ARG_1_.AI ~= nil then
-- _ARG_1_.AI:AddBossDoor("Door017")
_ARG_1_.AI.bPlaceholder = false
Expand Down Expand Up @@ -412,7 +408,6 @@ function s020_area2.OnEnter_SetCheckpoint_001_Alpha_007()
end
function s020_area2.OnAlpha_007_Generated(_ARG_0_, _ARG_1_)
Scenario.SetMetroidSpawngroupOnCurrentScenario(_ARG_0_, "SG_Alpha_007")

if _ARG_1_ ~= nil and _ARG_1_.AI ~= nil then
_ARG_1_.AI.bPlaceholder = false
_ARG_1_.AI:AddBossCamera("CAM_Alpha")
Expand Down

0 comments on commit e987ece

Please sign in to comment.