Fix oneliner not triggering for last secret.

This commit is contained in:
Mari the Deer 2022-07-06 14:08:38 +02:00
commit ae84b9abf0
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r163 \cu(Wed 6 Jul 14:07:39 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r163 \cu(2022-07-06 14:07:39)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r164 \cu(Wed 6 Jul 14:08:38 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r164 \cu(2022-07-06 14:08:38)\c-";

View file

@ -2767,7 +2767,12 @@ Class Demolitionist : PlayerPawn
{
if ( hnd ) hnd.allsecrets = true;
score = 1000;
if ( player == players[consoleplayer] ) Console.Printf(StringTable.Localize("$SWWM_LASTSECRET"),score);
if ( player == players[consoleplayer] )
{
Console.Printf(StringTable.Localize("$SWWM_LASTSECRET"),score);
SWWMHandler.AddOneliner("findsecret",2,40);
lastgrin = gametic;
}
else Console.Printf(StringTable.Localize("$SWWM_LASTSECRETREM"),player.GetUserName(),score);
SWWMUtility.AchievementProgressInc("allsecrets",1,player);
}