1- using ContentSettings . API . Attributes ;
1+ using BepInEx ;
2+ using ContentSettings . API . Attributes ;
23using ContentSettings . API . Settings ;
34using Unity . Mathematics ;
45using Zorro . Settings ;
@@ -24,13 +25,36 @@ public class DaysPerQuota : IntSetting, ICustomSetting {
2425 public override void ApplyValue ( ) {
2526 Plugin . State . daysPerQuota = Value ;
2627 Plugin . Sync . SyncSettings ( ) ;
28+ SettingsUtil . UpdateQuotaDays ( ) ;
2729 }
2830
2931 public string GetDisplayName ( ) => "Days Per Quota" ;
3032 public override int GetDefaultValue ( ) => 3 ;
3133 public override ( int , int ) GetMinMaxValue ( ) => ( 0 , 30 ) ;
3234 }
3335
36+ [ SettingRegister ( "GAMEPLAY" , "GENERAL" ) ]
37+ public class RequireAllPlayersInDiveBell : BoolSetting , ICustomSetting {
38+ public override void ApplyValue ( ) {
39+ Plugin . State . requireAllPlayersInDiveBell = Value ;
40+ Plugin . Sync . SyncSettings ( ) ;
41+ }
42+
43+ public string GetDisplayName ( ) => "Require All Players in Dive Bell" ;
44+ public override bool GetDefaultValue ( ) => true ;
45+ }
46+
47+ [ SettingRegister ( "GAMEPLAY" , "GENERAL" ) ]
48+ public class RequireDiveBellDoorClosed : BoolSetting , ICustomSetting {
49+ public override void ApplyValue ( ) {
50+ Plugin . State . requireDiveBellDoorClosed = Value ;
51+ Plugin . Sync . SyncSettings ( ) ;
52+ }
53+
54+ public string GetDisplayName ( ) => "Require Dive Bell Door Closed" ;
55+ public override bool GetDefaultValue ( ) => true ;
56+ }
57+
3458 // -------------------- Player -------------------- //
3559
3660 [ SettingRegister ( "GAMEPLAY" , "PLAYER" ) ]
@@ -59,6 +83,17 @@ public override void ApplyValue() {
5983 public override float2 GetMinMaxValue ( ) => new ( 0f , 2000f ) ;
6084 }
6185
86+ [ SettingRegister ( "GAMEPLAY" , "OXYGEN" ) ]
87+ public class InfiniteOxygen : BoolSetting , ICustomSetting {
88+ public override void ApplyValue ( ) {
89+ Plugin . State . infiniteOxygen = Value ;
90+ Plugin . Sync . SyncSettings ( ) ;
91+ }
92+
93+ public string GetDisplayName ( ) => "Enable Infinite Oxygen" ;
94+ public override bool GetDefaultValue ( ) => false ;
95+ }
96+
6297 [ SettingRegister ( "GAMEPLAY" , "OXYGEN" ) ]
6398 public class OxygenUsageMultiplier : FloatSetting , ICustomSetting {
6499 public override void ApplyValue ( ) {
0 commit comments