File tree Expand file tree Collapse file tree 7 files changed +44
-21
lines changed Expand file tree Collapse file tree 7 files changed +44
-21
lines changed Original file line number Diff line number Diff line change 82
82
<setting name =" questItemsAlert" serializeAs =" String" >
83
83
<value >False</value >
84
84
</setting >
85
+ <setting name =" scavCooldownBase" serializeAs =" String" >
86
+ <value >1500</value >
87
+ </setting >
85
88
</TarkovMonitor .Properties.Settings>
86
89
</userSettings >
87
90
</configuration >
Original file line number Diff line number Diff line change 56
56
}
57
57
}
58
58
</MudSelect >
59
+ <MudSelect @bind-Value =" @ScavCooldownSelect" T =" int" Label =" Scav Cooldown Base Seconds" AnchorOrigin =" Origin.BottomCenter" Class =" d-inline-flex" xs =" 3" >
60
+ <MudSelectItem Value =" 2700" >2700 (PVP default)</MudSelectItem >
61
+ <MudSelectItem Value =" 1500" >1500 (PVE default)</MudSelectItem >
62
+ </MudSelect >
59
63
</div >
60
64
<div >
61
65
<MudTextField @bind-Value =" @RunthroughTime" Label =" Runthrough Time (HH:MM:SS)" Class =" d-inline-flex" sx =" 3" />
314
318
}
315
319
}
316
320
321
+ public int ScavCooldownSelect
322
+ {
323
+ get
324
+ {
325
+ return Properties .Settings .Default .scavCooldownBase ;
326
+ }
327
+ set
328
+ {
329
+ Properties .Settings .Default .scavCooldownBase = value ;
330
+ Properties .Settings .Default .Save ();
331
+ }
332
+ }
333
+
317
334
public int AudioOutputDeviceSelect
318
335
{
319
336
get
Original file line number Diff line number Diff line change 77
77
<Setting Name =" questItemsAlert" Type =" System.Boolean" Scope =" User" >
78
78
<Value Profile =" (Default)" >False</Value >
79
79
</Setting >
80
+ <Setting Name =" scavCooldownBase" Type =" System.Int32" Scope =" User" >
81
+ <Value Profile =" (Default)" >1500</Value >
82
+ </Setting >
80
83
</Settings >
81
84
</SettingsFile >
Original file line number Diff line number Diff line change 1
- using System . Net . WebSockets ;
2
- using System . Text . Json . Nodes ;
1
+ using System . Text . Json . Nodes ;
3
2
using Websocket . Client ;
4
3
5
4
namespace TarkovMonitor
@@ -19,7 +18,7 @@ public static async Task Send(JsonObject message)
19
18
return ;
20
19
}
21
20
message [ "sessionID" ] = remoteid ;
22
- WebsocketClient socket = new ( new Uri ( wsUrl + $ "?sessionid={ remoteid } -tm") ) ;
21
+ using WebsocketClient socket = new ( new Uri ( wsUrl + $ "?sessionid={ remoteid } -tm") ) ;
23
22
/*socket.MessageReceived.Subscribe(msg => {
24
23
if (msg.Text == null)
25
24
{
@@ -39,18 +38,7 @@ public static async Task Send(JsonObject message)
39
38
}
40
39
});*/
41
40
await socket . Start ( ) ;
42
- try
43
- {
44
- await socket . SendInstant ( message . ToJsonString ( ) ) ;
45
- }
46
- catch
47
- {
48
- throw ;
49
- }
50
- finally
51
- {
52
- socket . Dispose ( ) ;
53
- }
41
+ await socket . SendInstant ( message . ToJsonString ( ) ) ;
54
42
}
55
43
56
44
public static async Task UpdatePlayerPosition ( PlayerPositionEventArgs e )
Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ public class PlayerProfileInfo
523
523
524
524
public static int ScavCooldownSeconds ( )
525
525
{
526
- decimal baseTimer = 1500 ;
526
+ decimal baseTimer = Convert . ToDecimal ( Properties . Settings . Default . scavCooldownBase ) ;
527
527
528
528
decimal hideoutBonus = 0 ;
529
529
foreach ( var station in Stations )
Original file line number Diff line number Diff line change 7
7
<UseWindowsForms >true</UseWindowsForms >
8
8
<ImplicitUsings >enable</ImplicitUsings >
9
9
<ApplicationIcon >Resources\TarkovDev.ico</ApplicationIcon >
10
- <AssemblyVersion >1.7.1 .0</AssemblyVersion >
10
+ <AssemblyVersion >1.8.0 .0</AssemblyVersion >
11
11
</PropertyGroup >
12
12
13
13
<ItemGroup >
24
24
</ItemGroup >
25
25
26
26
<ItemGroup >
27
- <PackageReference Include =" GraphQL.Client" Version =" 5.0.2 " />
28
- <PackageReference Include =" GraphQL.Client.Serializer.SystemTextJson" Version =" 5.0.2 " />
27
+ <PackageReference Include =" GraphQL.Client" Version =" 6.1.0 " />
28
+ <PackageReference Include =" GraphQL.Client.Serializer.SystemTextJson" Version =" 6.1.0 " />
29
29
<PackageReference Include =" Humanizer" Version =" 2.14.1" />
30
30
<PackageReference Include =" MaterialSkin.2" Version =" 2.3.1" />
31
31
<PackageReference Include =" Microsoft.AspNetCore.Components.WebView.WindowsForms" Version =" 6.0.424" />
32
32
<PackageReference Include =" MudBlazor" Version =" 6.19.1" />
33
33
<PackageReference Include =" NAudio" Version =" 2.2.1" />
34
34
<PackageReference Include =" Refit" Version =" 7.2.22" />
35
- <PackageReference Include =" System.Data.SQLite" Version =" 1.0.117 " />
36
- <PackageReference Include =" Websocket.Client" Version =" 5.0 .0" />
35
+ <PackageReference Include =" System.Data.SQLite" Version =" 1.0.119 " />
36
+ <PackageReference Include =" Websocket.Client" Version =" 5.2 .0" />
37
37
<PackageReference Include =" WindowsAPICodePack-Shell" Version =" 1.1.1" />
38
38
</ItemGroup >
39
39
You can’t perform that action at this time.
0 commit comments