Skip to content

Commit 0ff1fcd

Browse files
committed
Fix generators; Build
1 parent 7bfe438 commit 0ff1fcd

13 files changed

Lines changed: 316 additions & 5 deletions

File tree

Entropy/Entropy.userprefs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<Properties>
22
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
3-
<MonoDevelop.Ide.Workbench ActiveDocument="Entropy\MyClass.cs">
3+
<MonoDevelop.Ide.Workbench ActiveDocument="Entropy\FailureModules\Generator.cs">
44
<Files>
5-
<File FileName="Entropy\MyClass.cs" Line="6" Column="22" />
6-
<File FileName="Entropy\Properties\AssemblyInfo.cs" Line="7" Column="61" />
5+
<File FileName="Entropy\Properties\AssemblyInfo.cs" Line="23" Column="32" />
6+
<File FileName="..\..\..\Important Documents\dangit_mod\Abaddon\DangIt\Failure modules\FailureModule.cs" Line="409" Column="10" />
7+
<File FileName="..\..\EngineIgnitor\EngineIgnitor.cs" Line="781" Column="4" />
8+
<File FileName="Entropy\FailureModules\Animate.cs" Line="50" Column="24" />
9+
<File FileName="Entropy\FailureModules\Generator.cs" Line="47" Column="47" />
710
</Files>
811
</MonoDevelop.Ide.Workbench>
912
<MonoDevelop.Ide.DebuggingService.Breakpoints>

Entropy/Entropy/FailureModules/Generator.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,19 @@ protected override bool DI_FailBegin()
3838

3939
protected override void DI_Disable()
4040
{
41-
generator.efficiency /= 2;
41+
generator.outputList.ForEach (r => r.rate /= 2);
4242
}
4343

4444

4545
protected override void DI_EvaRepair()
4646
{
47-
generator.efficiency *= 2;
47+
generator.outputList.ForEach (r => r.rate *= 2);
48+
}
49+
50+
protected override void DI_Update(){
51+
if (this.HasFailed) {
52+
generator.efficiency /= 2;
53+
}
4854
}
4955
}
5056
}

Output/Entropy/Entropy.dll

17.5 KB
Binary file not shown.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@PART[*]:HAS[@MODULE[ModuleAnimateGeneric]]:FOR[Entropy]
2+
{
3+
MODULE
4+
{
5+
name = ModuleAnimationReliability
6+
7+
// Two years
8+
MTBF = 175200
9+
10+
// Engines must decay *VERY* quickly compared to other parts
11+
LifeTime = 47600
12+
13+
// Amount of spare parts needed to repair the part
14+
RepairCost = 3
15+
// Fraction of the age that is discounted when repairing (from 0 to 1)
16+
RepairBonus = 0.8
17+
18+
// Amount of spare parts needed for preemptive maintenance
19+
MaintenanceCost = 1
20+
21+
// Fraction of the age that is discounted when doing maintenance (from 0 to 1)
22+
MaintenanceBonus = 0.3
23+
24+
// Duration of the inspection bonus, in seconds
25+
InspectionBonus = 86400
26+
27+
// Set to true to suppress all notifications about this module
28+
Silent = false
29+
30+
DANGIT_PERKS
31+
{
32+
perk = Mechanic:Skilled
33+
perk = Electrician:Normal
34+
}
35+
}
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@PART[*]:HAS[@MODULE[ModuleEngines*]:HAS[!PROPELLANT[SolidFuel],!PROPELLANT[XenonGas]]]:FOR[Entropy]
2+
{
3+
MODULE
4+
{
5+
name = ModuleCoolantReliability
6+
7+
// Annual Failure Rate: 100%
8+
MTBF = 8760
9+
10+
// Engines must decay *VERY* quickly compared to other parts
11+
LifeTime = 1
12+
13+
// Amount of spare parts needed to repair the part
14+
RepairCost = 10
15+
// Fraction of the age that is discounted when repairing (from 0 to 1)
16+
RepairBonus = 0.1
17+
18+
// Amount of spare parts needed for preemptive maintenance
19+
MaintenanceCost = 2
20+
21+
// Fraction of the age that is discounted when doing maintenance (from 0 to 1)
22+
MaintenanceBonus = 0.3
23+
24+
// Duration of the inspection bonus, in seconds
25+
InspectionBonus = 120
26+
27+
// Set to true to suppress all notifications about this module
28+
Silent = false
29+
30+
DANGIT_PERKS
31+
{
32+
perk = Mechanic:Skilled
33+
perk = Electrician:Normal
34+
}
35+
}
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@PART[*]:HAS[@MODULE[ModuleGenerator]]:FOR[Entropy]
2+
{
3+
MODULE
4+
{
5+
name = ModuleGeneratorReliability
6+
7+
// Two years
8+
MTBF = 525600
9+
10+
// Engines must decay *VERY* quickly compared to other parts
11+
LifeTime = 142800
12+
13+
// Amount of spare parts needed to repair the part
14+
RepairCost = 3
15+
// Fraction of the age that is discounted when repairing (from 0 to 1)
16+
RepairBonus = 0.8
17+
18+
// Amount of spare parts needed for preemptive maintenance
19+
MaintenanceCost = 1
20+
21+
// Fraction of the age that is discounted when doing maintenance (from 0 to 1)
22+
MaintenanceBonus = 0.3
23+
24+
// Duration of the inspection bonus, in seconds
25+
InspectionBonus = 300
26+
27+
// Set to true to suppress all notifications about this module
28+
Silent = false
29+
30+
DANGIT_PERKS
31+
{
32+
perk = Mechanic:Normal
33+
perk = Electrician:Skilled
34+
}
35+
}
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@PART[*]:HAS[@MODULE[ModuleResourceIntake]]:FOR[Entropy]:NEEDS[DangIt]
2+
{
3+
MODULE
4+
{
5+
name = ModuleIntakeReliability
6+
7+
// Annual Failure Rate: 100%
8+
MTBF = 1
9+
10+
// Engines must decay *VERY* quickly compared to other parts
11+
LifeTime = 1
12+
13+
// Amount of spare parts needed to repair the part
14+
RepairCost = 1
15+
// Fraction of the age that is discounted when repairing (from 0 to 1)
16+
RepairBonus = 1
17+
18+
// Amount of spare parts needed for preemptive maintenance
19+
MaintenanceCost = 1
20+
21+
// Fraction of the age that is discounted when doing maintenance (from 0 to 1)
22+
MaintenanceBonus = 0.3
23+
24+
// Duration of the inspection bonus, in seconds
25+
InspectionBonus = 120
26+
27+
// Set to true to suppress all notifications about this module
28+
Silent = false
29+
30+
DANGIT_PERKS
31+
{
32+
perk = Mechanic:Unskilled
33+
perk = Electrician:Unskilled
34+
}
35+
}
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@PART[*]:HAS[@MODULE[ModuleParachute]]:FOR[Entropy]:NEEDS[DangIt&!RealChute]
2+
{
3+
MODULE
4+
{
5+
name = ModuleParachuteReliability
6+
7+
// Two years
8+
MTBF = 17520
9+
10+
// Engines must decay *VERY* quickly compared to other parts
11+
LifeTime = 20
12+
13+
// Amount of spare parts needed to repair the part
14+
RepairCost = 1
15+
// Fraction of the age that is discounted when repairing (from 0 to 1)
16+
RepairBonus = 1
17+
18+
// Amount of spare parts needed for preemptive maintenance
19+
MaintenanceCost = 1
20+
21+
// Fraction of the age that is discounted when doing maintenance (from 0 to 1)
22+
MaintenanceBonus = 0.3
23+
24+
// Duration of the inspection bonus, in seconds
25+
InspectionBonus = 3600
26+
27+
// Set to true to suppress all notifications about this module
28+
Silent = false
29+
30+
DANGIT_PERKS
31+
{
32+
perk = Mechanic:Unskilled
33+
perk = Electrician:Unskilled
34+
}
35+
}
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@PART[*]:HAS[@MODULE[ModuleEngines]:HAS[@PROPELLANT[SolidFuel]],!MODULE[NoSRBFailures],]:NEEDS[DangIt]:FOR[Entropy]
2+
{
3+
MODULE
4+
{
5+
name = ModuleSRBReliability
6+
7+
// Annual Failure Rate: 100%
8+
MTBF = 8000;
9+
10+
// Engines must decay *VERY* quickly compared to other parts
11+
LifeTime = 1
12+
13+
// Amount of spare parts needed to repair the part
14+
RepairCost = 10
15+
// Fraction of the age that is discounted when repairing (from 0 to 1)
16+
RepairBonus = 1
17+
18+
// Amount of spare parts needed for preemptive maintenance
19+
MaintenanceCost = 5
20+
21+
// Fraction of the age that is discounted when doing maintenance (from 0 to 1)
22+
MaintenanceBonus = 0.3
23+
24+
// Duration of the inspection bonus, in seconds
25+
InspectionBonus = 600
26+
27+
// Set to true to suppress all notifications about this module
28+
Silent = false
29+
30+
DANGIT_PERKS
31+
{
32+
perk = Mechanic:Skilled
33+
perk = Electrician:Normal
34+
}
35+
}
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@PART[*]:HAS[@MODULE[ModuleDeployableSolarPanel]]:FOR[Entropy]
2+
{
3+
MODULE
4+
{
5+
name = ModuleSolarReliability
6+
7+
// Two years
8+
MTBF = 17520
9+
10+
// Engines must decay *VERY* quickly compared to other parts
11+
LifeTime = 17520
12+
13+
// Amount of spare parts needed to repair the part
14+
RepairCost = 2
15+
// Fraction of the age that is discounted when repairing (from 0 to 1)
16+
RepairBonus = 0.8
17+
18+
// Amount of spare parts needed for preemptive maintenance
19+
MaintenanceCost = 1
20+
21+
// Fraction of the age that is discounted when doing maintenance (from 0 to 1)
22+
MaintenanceBonus = 0.3
23+
24+
// Duration of the inspection bonus, in seconds
25+
InspectionBonus = 86400
26+
27+
// Set to true to suppress all notifications about this module
28+
Silent = false
29+
30+
DANGIT_PERKS
31+
{
32+
perk = Mechanic:Normal
33+
perk = Electrician:Skilled
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)