Skip to content

Commit

Permalink
Remove some references to the v20 generic prefab set
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed May 21, 2024
1 parent 6d91f46 commit 8b3f0a1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 23 deletions.
2 changes: 0 additions & 2 deletions games/doom/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ OB_GAMES["doom2"] =
game_dir = "doom",
iwad_name = "doom2.wad",

use_generics = true,

tables =
{
DOOM
Expand Down
8 changes: 0 additions & 8 deletions games/doom/entities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,6 @@ DOOM.ENTITIES =

}

DOOM.GENERIC_REQS =
{
-- These are used for fulfilling fab pick requirements in prefab.lua
Generic_Key_One = { kind = "k_one", rkind = "k_blue" },
Generic_Key_Two = { kind = "k_two", rkind = "k_yellow" },
Generic_Key_Three = { kind = "k_three", rkind = "k_red" }
}

----------------------------------------------------------------

DOOM.PLAYER_MODEL =
Expand Down
8 changes: 0 additions & 8 deletions games/doom/x_doom1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -888,14 +888,6 @@ ULTDOOM.ENTITIES =
pool_brains = { id=10, r=20, h=16, pass=true },
}

ULTDOOM.GENERIC_REQS =
{
-- These are used for fulfilling fab pick requirements in prefab.lua
Generic_Key_One = { kind = "k_one", rkind = "k_blue" },
Generic_Key_Two = { kind = "k_two", rkind = "k_yellow" },
Generic_Key_Three = { kind = "k_three", rkind = "k_red" }
}

--------------------------------------------------------------------

ULTDOOM.THEMES =
Expand Down
6 changes: 1 addition & 5 deletions scripts/area.lua
Original file line number Diff line number Diff line change
Expand Up @@ -758,11 +758,7 @@ function Junction_make_wall(junc)
local plain_wall_prob = 0

if PARAM.wall_prob and PARAM.wall_prob ~= "fab_default" then
if not ob_match_game({game = "doomish"}) then
plain_wall_prob = plain_wall_prob + ((PREFAB_CONTROL_GENERIC.WALL_REDUCTION_ODDS[PARAM.wall_prob] or 0) * 100)
else
plain_wall_prob = plain_wall_prob + ((PREFAB_CONTROL.WALL_REDUCTION_ODDS[PARAM.wall_prob] or 0) * 100)
end
plain_wall_prob = plain_wall_prob + ((PREFAB_CONTROL.WALL_REDUCTION_ODDS[PARAM.wall_prob] or 0) * 100)
plain_wall_prob = math.clamp(0, plain_wall_prob, 100)
end

Expand Down

0 comments on commit 8b3f0a1

Please sign in to comment.