Skip to content

Commit

Permalink
Merge pull request #215 from GalacticPolarBear/BiohashFixes
Browse files Browse the repository at this point in the history
Biohash fixes to fix the SleepHour invalid time format issues.
  • Loading branch information
Torwent authored Jan 3, 2025
2 parents 5c7f236 + 631d88d commit ee3440f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/biometrics.simba
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,14 @@ var
h, i: UInt32;
k: String;
begin
BioHash := BioHashOverride;
if BioHashOverride <> 0 then
BioHash := BioHashOverride;

if BioHash = 0 then
begin
if (Length(Login.Players) = 0) or (BioHash <> 0) then
begin
BioHash := Random($FFFFFFFF) * 0.111111111111111;
BioHash := Random(0, 1.0);
DebugLn('Temporary Biohash: ' + ToStr(BioHash));
Exit;
end;
Expand Down Expand Up @@ -554,4 +555,3 @@ begin
else
Mouse.Click(MOUSE_LEFT);
end;

1 change: 1 addition & 0 deletions utils/forms/scriptform.simba
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,7 @@ begin
SetMin(0);
SetMax(9);
setAlign(alBottom);
setPosition(Round(BioHash * bar.getMax()));
SetTooltip('You can adjust your biohash with this trackbar, however, the default is recommended.');
setOnChange(@Self._BarOnChange);
end;
Expand Down

0 comments on commit ee3440f

Please sign in to comment.