-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
更新若干三星干员、@孤独的人和@教捐提出的明日方舟基建实际运作方式的实现
- Loading branch information
Showing
16 changed files
with
211 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace InfrastSim.TimeDriven.Operators; | ||
internal class _12F : OperatorBase { | ||
public override string Name => "12F"; | ||
|
||
public override void Resolve(Simulator simu) { | ||
base.Resolve(simu); | ||
|
||
if (Facility is Reception && !IsTired) { | ||
EfficiencyModifier.SetValue(Name, 0.2); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace InfrastSim.TimeDriven.Operators; | ||
internal class Fang : OperatorBase { | ||
public override string Name => "芬"; | ||
|
||
static TimeSpan[] _wtThresholds = { | ||
TimeSpan.FromHours(1), | ||
TimeSpan.FromHours(2), | ||
TimeSpan.FromHours(3), | ||
TimeSpan.FromHours(4), | ||
TimeSpan.FromHours(5) | ||
}; | ||
public override TimeSpan[] WorkingTimeThresholds => _wtThresholds; | ||
|
||
public override void Resolve(Simulator simu) { | ||
base.Resolve(simu); | ||
|
||
if (Facility is ManufacturingStation manufacturing && !IsTired) { | ||
var time = Math.Min(5, Math.Floor(WorkingTime / TimeSpan.FromHours(1))); | ||
EfficiencyModifier.SetValue(Name, 0.2 + time * 0.01); | ||
} | ||
if (Facility is TradingStation trading && !IsTired && Upgraded >= 1) { | ||
EfficiencyModifier.SetValue(Name, 0.3); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace InfrastSim.TimeDriven.Operators; | ||
internal class Hibiscus : OperatorBase { | ||
public override string Name => "芙蓉"; | ||
|
||
public override void Resolve(Simulator simu) { | ||
base.Resolve(simu); | ||
|
||
if (Facility is Dormitory dorm) { | ||
dorm.SetVipMoodModifier(0.55); | ||
} | ||
|
||
// TODO: missing skill 2 | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace InfrastSim.TimeDriven.Operators; | ||
internal class Kroos : OperatorBase { | ||
public override string Name => "克洛丝"; | ||
|
||
static TimeSpan[] _wtThresholds = { | ||
TimeSpan.FromHours(1), | ||
TimeSpan.FromHours(2), | ||
TimeSpan.FromHours(3), | ||
TimeSpan.FromHours(4), | ||
TimeSpan.FromHours(5) | ||
}; | ||
public override TimeSpan[] WorkingTimeThresholds => _wtThresholds; | ||
|
||
public override void Resolve(Simulator simu) { | ||
base.Resolve(simu); | ||
|
||
if (Facility is ManufacturingStation manufacturing && !IsTired) { | ||
var time = Math.Min(5, Math.Floor(WorkingTime / TimeSpan.FromHours(1))); | ||
EfficiencyModifier.SetValue(Name, 0.15 + time * 0.02); | ||
} | ||
if (Facility is Dormitory dorm && Upgraded >= 1) { | ||
MoodConsumeRate.AddValue(Name, -0.7); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace InfrastSim.TimeDriven.Operators; | ||
internal class Melantha : OperatorBase { | ||
public override string Name => "玫兰莎"; | ||
|
||
public override void Resolve(Simulator simu) { | ||
base.Resolve(simu); | ||
|
||
if (Facility is TradingStation trading && !IsTired) { | ||
EfficiencyModifier.SetValue(Name, 0.25); | ||
trading.Capacity.SetValue(Name, 1); | ||
} | ||
|
||
// TODO: missing skill 2 | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace InfrastSim.TimeDriven.Operators; | ||
internal class NoirCorne : OperatorBase { | ||
public override string Name => "黑角"; | ||
|
||
public override void Resolve(Simulator simu) { | ||
base.Resolve(simu); | ||
|
||
if (Facility is ManufacturingStation manufacturing && !IsTired) { | ||
EfficiencyModifier.SetValue(Name, 0.1); | ||
manufacturing.Capacity.SetValue(Name, 10); | ||
} | ||
if (Facility is TradingStation trading && !IsTired) { | ||
EfficiencyModifier.SetValue(Name, 0.1); | ||
trading.Capacity.SetValue(Name, 2); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace InfrastSim.TimeDriven.Operators; | ||
internal class Rangers : OperatorBase { | ||
public override string Name => "巡林者"; | ||
|
||
public override void Resolve(Simulator simu) { | ||
base.Resolve(simu); | ||
|
||
if (Facility is Office office && !IsTired) { | ||
EfficiencyModifier.SetValue(Name, 0.2); | ||
} | ||
|
||
// TODO: missing skill 2 | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace InfrastSim.TimeDriven.Operators; | ||
internal class Yato : OperatorBase { | ||
public override string Name => "夜刀"; | ||
|
||
public override void Resolve(Simulator simu) { | ||
base.Resolve(simu); | ||
|
||
if (Facility is TradingStation trading && !IsTired) { | ||
EfficiencyModifier.SetValue(Name, 0.3); | ||
} | ||
if (Facility is ManufacturingStation manufacturing && !IsTired) { | ||
EfficiencyModifier.SetValue(Name, 0.15); | ||
} | ||
} | ||
} | ||
|