Small fixups.
This commit is contained in:
parent
7a8e21dec0
commit
4763fc54f2
4 changed files with 7 additions and 5 deletions
|
|
@ -954,6 +954,7 @@ Class SWWMLoreLibrary : Thinker
|
|||
{
|
||||
if ( ref ~== "Cronos" ) return true;
|
||||
if ( ref ~== "Kirin" ) return true; // not met
|
||||
if ( ref ~== "AmmoFabricator" ) return true; // not yet introduced
|
||||
}
|
||||
if ( !(gameinfo.gametype&GAME_Strife) )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -590,7 +590,8 @@ Class SWWMKnowledgeBaseMenu : GenericMenu
|
|||
if ( (curtab == TAB_INVENTORY) && (invlist.Size() > 0) && (sel0 < invlist.Size()) )
|
||||
{
|
||||
// can't use this
|
||||
if ( (invlist[sel0] is 'Ammo') || (invlist[sel0] is 'MagAmmo') || (invlist[sel0] is 'SWWMCollectable') )
|
||||
if ( (invlist[sel0] is 'Ammo') || (invlist[sel0] is 'MagAmmo') || (invlist[sel0] is 'SWWMCollectable')
|
||||
|| (invlist[sel0] is 'HammerspaceEmbiggener') )
|
||||
return true;
|
||||
let t = new("MenuTransaction");
|
||||
t.uid = GenTUID();
|
||||
|
|
@ -1709,8 +1710,8 @@ Class SWWMKnowledgeBaseMenu : GenericMenu
|
|||
if ( !type ) continue;
|
||||
// no collectables
|
||||
if ( type is 'SWWMCollectable' ) continue;
|
||||
// no fabricators outside of hexen
|
||||
if ( !(gameinfo.gametype&GAME_Hexen) && (type is 'AmmoFabricator') ) continue;
|
||||
// no fabricators before hexen
|
||||
if ( !(gameinfo.gametype&(GAME_Hexen|GAME_Strife)) && (type is 'AmmoFabricator') ) continue;
|
||||
// skip maxed items
|
||||
let cur = players[consoleplayer].mo.FindInventory(type);
|
||||
if ( cur && (cur.Amount >= cur.MaxAmount) ) continue;
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ Class Demolitionist : PlayerPawn
|
|||
{
|
||||
let type = (class<Inventory>)(AllActorClasses[i]);
|
||||
if ( !type ) continue;
|
||||
if ( !(gameinfo.gametype&GAME_Hexen) && (type is 'AmmoFabricator') ) continue; // no fabricators outside of hexen
|
||||
if ( !(gameinfo.gametype&(GAME_Hexen|GAME_Strife)) && (type is 'AmmoFabricator') ) continue; // no fabricators before hexen
|
||||
let def = GetDefaultByType (type);
|
||||
if ( def.Icon.isValid() &&
|
||||
!(type is "PuzzleItem") && !(type is "Powerup") && !(type is "Ammo") && !(type is "Armor") && !(type is "Key") )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue