Skip to content

Commit

Permalink
Fix collecting aeion items
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Sep 17, 2023
1 parent d40980b commit 384e851
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
28 changes: 28 additions & 0 deletions open_samus_returns_rando/files/randomizer_powerup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -300,3 +300,31 @@ function RandomizerBabyHatchling.OnPickedUp(actor, progression)
RandomizerPowerup.OnPickedUp(actor, progression)
Game.GetDefaultPlayer("Samus").BABYHATCHLINGCREATION:SpawnBaby()
end

RandomizerScanningPulse = {}
setmetatable(RandomizerScanningPulse, {__index = RandomizerPowerup})
function RandomizerScanningPulse.OnPickedUp(actor, progression)
RandomizerPowerup.OnPickedUp(actor, progression)
Player.SetAbilityUnlocked("ScanningPulse", true)
end

RandomizerEnergyShield = {}
setmetatable(RandomizerEnergyShield, {__index = RandomizerPowerup})
function RandomizerEnergyShield.OnPickedUp(actor, progression)
RandomizerPowerup.OnPickedUp(actor, progression)
Player.SetAbilityUnlocked("EnergyShield", true)
end

RandomizerEnergyWave = {}
setmetatable(RandomizerEnergyWave, {__index = RandomizerPowerup})
function RandomizerEnergyWave.OnPickedUp(actor, progression)
RandomizerPowerup.OnPickedUp(actor, progression)
Player.SetAbilityUnlocked("EnergyWave", true)
end

RandomizerPhaseDisplacement = {}
setmetatable(RandomizerPhaseDisplacement, {__index = RandomizerPowerup})
function RandomizerPhaseDisplacement.OnPickedUp(actor, progression)
RandomizerPowerup.OnPickedUp(actor, progression)
Player.SetAbilityUnlocked("PhaseDisplacement", true)
end
6 changes: 5 additions & 1 deletion open_samus_returns_rando/lua_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ def _read_level_lua(level_id: str) -> str:
"ITEM_WEAPON_SUPER_MISSILE_MAX": "RandomizerSuperMissile",
"ITEM_RANDO_LOCKED_SUPERS": "RandomizerSuperMissileTank",
"ITEM_WEAPON_POWER_BOMB_MAX": "RandomizerPowerBomb",
"ITEM_RANDO_LOCKED_PBS": "RandomizerPowerBombTank"
"ITEM_RANDO_LOCKED_PBS": "RandomizerPowerBombTank",
"ITEM_SPECIAL_ENERGY_SCANNING_PULSE": "RandomizerScanningPulse",
"ITEM_SPECIAL_ENERGY_ENERGY_SHIELD": "RandomizerEnergyShield",
"ITEM_SPECIAL_ENERGY_ENERGY_WAVE": "RandomizerEnergyWave",
"ITEM_SPECIAL_ENERGY_PHASE_DISPLACEMENT": "RandomizerPhaseDisplacement",
}


Expand Down

0 comments on commit 384e851

Please sign in to comment.