Skip to content

Commit

Permalink
fixed notification service injection, fixed subscriber pagination, ch…
Browse files Browse the repository at this point in the history
…anged meter on reset
  • Loading branch information
TalicZealot committed Apr 11, 2022
1 parent 5c8e7ae commit d315aca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SotnRandoTools/src/Khaos/ChannelPointsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private async void GetSubscribers()
GetBroadcasterSubscriptionsResponse subsPageTwoData = await RetryRequest.Do(
async () => await api.Helix.Subscriptions.GetBroadcasterSubscriptions(
broadcasterId,
MaxSubscribers.ToString(),
subs.Pagination.Cursor,
MaxSubscribers,
api.Settings.AccessToken
),
Expand Down
4 changes: 3 additions & 1 deletion SotnRandoTools/src/Khaos/KhaosController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public class KhaosController : IKhaosController
private int hnkToggled = 0;

private int bankruptLevel = 1;
private short mainMenuCounter = 0;

public KhaosController(IToolConfig toolConfig, ISotnApi sotnApi, ICheatCollectionAdapter cheats, INotificationService notificationService, IInputService inputService, IKhaosActionsInfoDisplay statusInfoDisplay)
{
Expand Down Expand Up @@ -2987,7 +2988,8 @@ private void CheckMainMenu()
inMainMenu = sotnApi.GameApi.Status == SotnApi.Constants.Values.Game.Status.MainMenu;
if (inMainMenu)
{
GainKhaosMeter((short) toolConfig.Khaos.MeterOnReset);
GainKhaosMeter((short) (toolConfig.Khaos.MeterOnReset * mainMenuCounter));
mainMenuCounter++;
battleOrdersBonusHp = 0;
battleOrdersBonusMp = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion SotnRandoTools/src/SotnRandoTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<OutputType>Library</OutputType>
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
<AnalysisLevel>5.0</AnalysisLevel>
<Version>1.3.2</Version>
<Version>1.3.3</Version>
<Description>A collection of tools to enhance the experience of playign the SotN randomizer.</Description>
<Copyright />
<PackageProjectUrl>https://taliczealot.github.io/</PackageProjectUrl>
Expand Down
4 changes: 4 additions & 0 deletions SotnRandoTools/src/ToolMainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ private void ToolMainForm_Load(object sender, EventArgs e)

khaosSettingsPanel = new KhaosSettingsPanel(toolConfig);
khaosSettingsPanel.Location = new Point(0, PanelOffset);
if (notificationService is not null)
{
khaosSettingsPanel.NotificationService = notificationService;
}
this.Controls.Add(khaosSettingsPanel);

coopSettingsPanel = new CoopSettingsPanel(toolConfig);
Expand Down

0 comments on commit d315aca

Please sign in to comment.