Add NixOS and Go
This commit is contained in:
@@ -251,6 +251,7 @@ namespace KernelPanic.Run
|
||||
|
||||
public RunCheckpoint CaptureCheckpoint(CombatManager combat)
|
||||
{
|
||||
if (CurrentConfig?.IsLanguageTraining == true) throw new InvalidOperationException("Language practice cannot replace a saved campaign.");
|
||||
RunCheckpoint.Require(isRunActive && !IsSuspended && !_rewardsSettled && _repositoryVisitActive
|
||||
&& combat != null && combat.AwaitingWaveContinue && !combat.RunLost, "Runs can only be saved in the repository.");
|
||||
RunCheckpoint snapshot = new()
|
||||
@@ -407,18 +408,21 @@ namespace KernelPanic.Run
|
||||
|
||||
public int EffectiveMaxUptime()
|
||||
{
|
||||
if (CurrentConfig?.IsLanguageTraining == true) return 60;
|
||||
if (CurrentConfig?.IsTutorial == true) return Mathf.Max(60, CurrentConfig.Distro.BaseUptime) + _maxUptimeBonus;
|
||||
return Mathf.Max(1, (CurrentConfig?.Distro?.BaseUptime ?? 1) + _maxUptimeBonus + _packageMaxUptimeBonus);
|
||||
}
|
||||
|
||||
public int EffectiveRam()
|
||||
{
|
||||
if (CurrentConfig?.IsLanguageTraining == true) return 12;
|
||||
if (CurrentConfig?.IsTutorial == true) return Mathf.Max(6, CurrentConfig.Distro.BaseRam) + _ramBonus;
|
||||
return Mathf.Max(1, (CurrentConfig?.Distro?.BaseRam ?? 1) + _ramBonus + _packageRamBonus);
|
||||
}
|
||||
|
||||
public int EffectiveMaxCycles()
|
||||
{
|
||||
if (CurrentConfig?.IsLanguageTraining == true) return 6;
|
||||
if (CurrentConfig?.IsTutorial == true) return Mathf.Max(4, CurrentConfig.Distro.BaseCyclesPerTurn) + _maxCyclesBonus;
|
||||
return Mathf.Max(1, (CurrentConfig?.Distro?.BaseCyclesPerTurn ?? 1) + _maxCyclesBonus + _packageMaxCyclesBonus);
|
||||
}
|
||||
@@ -570,7 +574,7 @@ namespace KernelPanic.Run
|
||||
for (int i = 0; i < config.StartingDeck.Count; i++)
|
||||
{
|
||||
CardDefinition definition = config.StartingDeck[i];
|
||||
if (definition != null && !definition.IsRunOnly)
|
||||
if (definition != null && (!definition.IsRunOnly || config.IsLanguageTraining))
|
||||
{
|
||||
_runDeck.Add(new CardInstance(definition));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user