From 288aa994161854f095e026af133097d7f764c1b3 Mon Sep 17 00:00:00 2001 From: Shtoyan Date: Tue, 19 Jul 2022 18:49:08 +0400 Subject: [PATCH] trailing ws / string -> class --- sources/NicePack.uc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sources/NicePack.uc b/sources/NicePack.uc index 29fc08a..b475e6e 100644 --- a/sources/NicePack.uc +++ b/sources/NicePack.uc @@ -35,10 +35,10 @@ var config bool bNoLateFFIncrease; // Disables FF increase through // Configuration variables that store whether or not to replace the specimen with it's mean counterpart var config bool bReplaceCrawler, bReplaceStalker, bReplaceClot, bReplaceGorefast, bReplaceBloat, bReplaceSiren, bReplaceHusk, bReplaceScrake, bReplaceFleshpound; var config int bigZedMinHealth; // If zed's base Health >= this value, zed counts as Big -var config int mediumZedMinHealth; +var config int mediumZedMinHealth; var int maxPlayersInGame; - + // 'Adrenaline junkie' zed-time extensions var int junkieDoneGoals; // How many times we collected enough head-shots to trigger zed-time extension var int junkieNextGoal; // How many head-shots we need for next zed-time extension @@ -131,7 +131,7 @@ static final function NicePack Myself(LevelInfo Level){ local Mutator M; local NicePack NicePackMutator; if(default.Mut != none) - return default.Mut; + return default.Mut; // server-side if(Level != none && Level.Game != none){ for(M = Level.Game.BaseMutator;M != none;M = M.NextMutator){ @@ -186,7 +186,7 @@ simulated function PostBeginPlay() default.serverStorage = serverStorage; serverStorage.events.static.AddAdapter(class'NiceRemoteDataAdapter', Level); // Find game type and ScrN mutator - ScrnGT = ScrnGameType(Level.Game); + ScrnGT = ScrnGameType(Level.Game); NiceGT = NiceGameType(Level.Game); if (NiceGT == none) { @@ -195,7 +195,7 @@ simulated function PostBeginPlay() return; } // FIXME poosh forces this variable in his mutator... - NiceGT.LoginMenuClass = "NicePack.NiceInvasionLoginMenu"; + NiceGT.LoginMenuClass = string(class'NiceInvasionLoginMenu'); NiceGT.RegisterMutator(self); ScrnMut = NiceGT.ScrnBalanceMut; if(bReplacePickups) @@ -244,7 +244,7 @@ simulated function PostBeginPlay() if(FFVO != none) FFVO.Mut = self; } - else + else log("Unable to spawn voting handler mutator", class.outer.name); } @@ -438,7 +438,7 @@ simulated function bool CheckReplacement(Actor Other, out byte bSuperRelevant){ currNumPlayers++; if(boss == none) { niceMonster.Health *= hpScale(niceMonster.PlayerCountHealthScale) / niceMonster.NumPlayersHealthModifer(); - niceMonster.HealthMax = niceMonster.Health; + niceMonster.HealthMax = niceMonster.Health; niceMonster.HeadHealth *= hpScale(niceMonster.PlayerNumHeadHealthScale) / niceMonster.NumPlayersHeadHealthModifer(); niceMonster.HeadHealthMax = niceMonster.HeadHealth; if(Level.Game.NumPlayers == 1){ @@ -456,7 +456,7 @@ function int FindPickupReplacementIndex(Pickup item) { local int i; for(i=0; i < pickupReplaceArray.length;i ++){ - if(pickupReplaceArray[i].vanillaClass == item.class || pickupReplaceArray[i].scrnClass == item.class) + if(pickupReplaceArray[i].vanillaClass == item.class || pickupReplaceArray[i].scrnClass == item.class) return i; } return -1;