|
9 | 9 |
|
10 | 10 | using TestFlightAPI; |
11 | 11 |
|
12 | | -namespace TestFlight { |
13 | | - public class TestFlightGameSettings : GameParameters.CustomParameterNode { |
14 | | - public override string Title { get { return "TestFlight Options"; } } |
15 | | - public override GameParameters.GameMode GameMode { get { return GameParameters.GameMode.ANY; } } |
16 | | - public override string Section { get { return "TestFlight"; } } |
17 | | - public override string DisplaySection { get { return Section; } } |
18 | | - public override int SectionOrder { get { return 1; } } |
19 | | - public override bool HasPresets { get { return true; } } |
20 | | - |
21 | | - [GameParameters.CustomParameterUI("Pre-Launch Ignition Failures Enabled?", toolTip = "Set to enable ignition failures on the Launch Pad.")] |
22 | | - public bool preLaunchFailures = true; |
23 | | - |
24 | | - public override void SetDifficultyPreset(GameParameters.Preset preset) { |
25 | | - Debug.Log("Setting difficulty preset"); |
26 | | - switch (preset) |
27 | | - { |
28 | | - case GameParameters.Preset.Easy: |
29 | | - preLaunchFailures = true; |
30 | | - break; |
31 | | - case GameParameters.Preset.Normal: |
32 | | - preLaunchFailures = true; |
33 | | - break; |
34 | | - case GameParameters.Preset.Moderate: |
35 | | - preLaunchFailures = true; |
36 | | - break; |
37 | | - case GameParameters.Preset.Hard: |
38 | | - preLaunchFailures = true; |
39 | | - break; |
40 | | - case GameParameters.Preset.Custom: |
41 | | - preLaunchFailures = true; |
42 | | - break; |
43 | | - default: |
44 | | - preLaunchFailures = true; |
45 | | - break; |
46 | | - } |
| 12 | +namespace TestFlight |
| 13 | +{ |
| 14 | + public class TestFlightGameSettings : GameParameters.CustomParameterNode |
| 15 | + { |
| 16 | + public override string Title { get { return "TestFlight Options"; } } |
| 17 | + public override GameParameters.GameMode GameMode { get { return GameParameters.GameMode.ANY; } } |
| 18 | + public override string Section { get { return "TestFlight"; } } |
| 19 | + public override string DisplaySection { get { return Section; } } |
| 20 | + public override int SectionOrder { get { return 1; } } |
| 21 | + public override bool HasPresets { get { return true; } } |
| 22 | + |
| 23 | + [GameParameters.CustomParameterUI("Pre-Launch Ignition Failures Enabled?", toolTip = "Set to enable ignition failures on the Launch Pad.")] |
| 24 | + public bool preLaunchFailures = true; |
| 25 | + |
| 26 | + [GameParameters.CustomParameterUI("Penalty For High Dynamic Pressure Enabled?", toolTip = "Whether engine ignition chance will suffer a penalty based on dynamic pressure.")] |
| 27 | + public bool dynPressurePenalties = true; |
47 | 28 | } |
48 | | - } |
49 | 29 | } |
0 commit comments