Bixby Sayz
2011-04-16 22:59:03
The stats for randoms are generated automatically in function stats_Commit (stats.simba), but they seem to be geared for the old stats system.
Here is a suggested fix to make them work with the new stats system.
add 2 new variables:
in SetupSRLStats change the random names setup to:
in stats_Commit change the random handling code to:
I started to simply work around this in my scripts, then realized it would be easier to simply fix the stats commit.
Edit: Tested against stats and 100% working.
Here is a suggested fix to make them work with the new stats system.
add 2 new variables:
var
stats_RandNames: Array of String;
stats_RandFailed: Array of Integer;in SetupSRLStats change the random names setup to:
stats_RandNames := ['Leo', 'Forester', 'Maze', 'P. Pete', 'Evil Bob',
'Demon', 'Quiz', 'Mordaut', 'Molly', 'Pinball',
'Sandwich', 'Beekeeper', 'Pillory', 'Arnav', 'Abyss',
'Certer', 'Mime', 'Frog'];
SetArrayLength(stats_RandSolved, Length(stats_RandNames));
SetArrayLength(stats_RandFailed, Length(stats_RandNames));
in stats_Commit change the random handling code to:
for i := rand_Leo to rand_Frog do
begin
// Update solved stats.
Increment := RandSolved[i] - stats_RandSolved[i];
if (Increment > 0) then
begin
stats_IncVariable(stats_RandNames[i] + ' (Solved)', Increment);
stats_RandSolved[i] := RandSolved[i];
end;
// Update unsolved stats.
Increment := RandFailed[i] - stats_RandFailed[i];
if (Increment > 0) then
begin
stats_IncVariable(stats_RandNames[i] + ' (Unsolved)', Increment);
stats_RandFailed[i] := RandFailed[i];
end;
end;
I started to simply work around this in my scripts, then realized it would be easier to simply fix the stats commit.
Edit: Tested against stats and 100% working.