Skip to content

Commit

Permalink
Merge pull request #250 from steven11sjf/feature/bomb-shield-without-…
Browse files Browse the repository at this point in the history
…cross

Bomb Shields require normal bombs to open
  • Loading branch information
duncathan authored Aug 15, 2023
2 parents 40ad17c + 41d6d9e commit a346609
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/open_dread_rando/door_locks/custom_door_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ class ShieldData:
"bomb": ShieldData(
name="doorshieldbomb",
type=DoorTemplates.TRIANGLES,
weaknesses=["BOMB"],
weaknesses=[], # "BOMB" weakness is added in runtime lua.
# see open_dread_rando/files/custom_scenario.lua : Scenario._BlastShieldTypes
collision="actors/props/doorshieldmissile/collisions/shield_bomb_colls.bmscd",
actordef="actors/props/doorshieldbomb/charclasses/doorshieldbomb.bmsad",
default_mdl=ModelData(
Expand Down
4 changes: 4 additions & 0 deletions src/open_dread_rando/files/custom_scenario.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ Scenario._BlastShieldTypes = {
door_shield_plasma = {
item = "ITEM_WEAPON_PLASMA_BEAM",
damage = {"PLASMA_BEAM"}
},
doorshieldbomb = {
item = "ITEM_WEAPON_BOMB",
damage = {"BOMB"}
}
}
function Scenario._UpdateBlastShields()
Expand Down

0 comments on commit a346609

Please sign in to comment.