Skip to content

Commit

Permalink
Removed overlooked bench, fixed scoreboard scaling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMathGeek314 committed Aug 17, 2024
1 parent 63f3e8b commit 62795c6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions MilliGolf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class MilliGolf: Mod, ILocalSettings<LocalGolfSettings> {
public static PlayMakerFSM areaTitleRef;

new public string GetName() => "MilliGolf";
public override string GetVersion() => "1.0.2.1";
public override string GetVersion() => "1.0.2.2";

public static LocalGolfSettings golfData { get; set; } = new();
public void OnLoadLocal(LocalGolfSettings g) => golfData = g;
Expand Down Expand Up @@ -349,6 +349,7 @@ public static void createCourseData() {
golfScene waterways = new("Royal Waterways", "Waterways_02", "top1", "bot2");
waterways.doorColor = new Color(0.1887f, 0.4961f, 0.52f, 0.466f);
waterways.millibelleSpawn = new Vector3(69, 28.8f, 0.006f);
waterways.objectsToDisable.Add("RestBench");
waterways.flagData = ("flagSignSE", 216, 3.81f);

golfScene cliffs = new("Howling Cliffs", "Cliffs_01", "right1", "right3");
Expand Down Expand Up @@ -574,16 +575,14 @@ private void updateHallScoreboard(GameObject summaryBoard) {
}
else if(total <= 250) {
uuiImage.sprite = bsu.stateSprites[4];
image.transform.localScale = new Vector3(1, 1, 1);
}
else if(total <= 300) {
uuiImage.sprite = bsu.stateSprites[3];
image.transform.localScale = new Vector3(1, 1.3f, 1);
}
else {
uuiImage.sprite = bsu.stateSprites[2];
image.transform.localScale = new Vector3(1, 1, 1);
}
uuiImage.SetNativeSize();
}
else {
image.SetActive(false);
Expand Down Expand Up @@ -721,7 +720,7 @@ public static void logProgression() {
hasSuperDash = pd.hasSuperDash;
hasUpwardSlash = pd.hasUpwardSlash;
hasWalljump = pd.hasWalljump;

MilliGolf.hasLoggedProgression = true;
}

Expand Down

0 comments on commit 62795c6

Please sign in to comment.