Bonuses for all kills/items/secrets shouldn't be used in Hexen.

This commit is contained in:
Mari the Deer 2021-09-04 23:04:00 +02:00
commit 3b6c729b0c
5 changed files with 22 additions and 5 deletions

View file

@ -326,7 +326,7 @@ extend Class SWWMHandler
}
SWWMCredits.Give(src.player,score);
if ( scr ) scr.score = score; // update final score
if ( !deathmatch && (level.killed_monsters+1 == level.total_monsters) && !allkills )
if ( !deathmatch && !(gameinfo.gametype&GAME_Hexen) && (level.killed_monsters+1 == level.total_monsters) && !allkills )
{
allkills = true;
SWWMCredits.Give(src.player,1000);

View file

@ -51,7 +51,7 @@ extend Class SWWMHandler
if ( players[i].itemcount > lastitemcount[i] )
{
int score = 10*(players[i].itemcount-lastitemcount[i]);
if ( !deathmatch && (level.total_items == level.found_items) && !allitems )
if ( !deathmatch && !(gameinfo.gametype&GAME_Hexen) && (level.total_items == level.found_items) && !allitems )
{
allitems = true;
Console.Printf(StringTable.Localize("$SWWM_LASTITEM"),players[i].GetUserName(),500);
@ -128,6 +128,8 @@ extend Class SWWMHandler
{
// not in DM
if ( deathmatch ) return;
// not in Hexen, due to its fully hub-based nature
if ( gameinfo.gametype&GAME_Hexen ) return;
if ( !mapclear && (restartmus > 0) )
{
restartmus--;