11
This commit is contained in:
@@ -96,12 +96,12 @@ namespace ArachnaeSwarm
|
||||
if (costStat != null)
|
||||
{
|
||||
totalNutrientCost = Mathf.RoundToInt(incubatingThingDef.GetStatValueAbstract(costStat, null));
|
||||
Log.Message($"[ARA] 孵化 {incubatingThingDef.defName} 建议有 {totalNutrientCost} 个营养液地块以获得最佳速度");
|
||||
ArachnaeLog.Debug($"[ARA] 孵化 {incubatingThingDef.defName} 建议有 {totalNutrientCost} 个营养液地块以获得最佳速度");
|
||||
}
|
||||
else
|
||||
{
|
||||
totalNutrientCost = 0;
|
||||
Log.Message($"[ARA] 孵化 {incubatingThingDef.defName} 不需要营养液加成");
|
||||
ArachnaeLog.Debug($"[ARA] 孵化 {incubatingThingDef.defName} 不需要营养液加成");
|
||||
}
|
||||
|
||||
// 立即更新一次营养液计数
|
||||
@@ -237,24 +237,6 @@ namespace ArachnaeSwarm
|
||||
builder.AppendLine("ARA_EquipmentIncubator.CurrentNutrientCount".Translate(currentNutrientCount));
|
||||
builder.AppendLine("ARA_EquipmentIncubator.NutrientSpeedBonus".Translate(NutrientSpeedBonus.ToStringPercent()));
|
||||
|
||||
// 显示建议的营养液数量
|
||||
if (totalNutrientCost > 0 && incubatingThingDef != null)
|
||||
{
|
||||
builder.AppendLine();
|
||||
builder.AppendLine("ARA_EquipmentIncubator.RecommendedNutrients".Translate(incubatingThingDef.LabelCap, totalNutrientCost));
|
||||
|
||||
// 显示加成效果
|
||||
if (currentNutrientCount >= totalNutrientCost)
|
||||
{
|
||||
builder.AppendLine("ARA_EquipmentIncubator.MaximumBonusActive".Translate());
|
||||
}
|
||||
else
|
||||
{
|
||||
int needed = totalNutrientCost - currentNutrientCount;
|
||||
builder.AppendLine("ARA_EquipmentIncubator.AddMoreNutrients".Translate(needed));
|
||||
}
|
||||
}
|
||||
|
||||
return builder.ToString().TrimEndNewlines();
|
||||
}
|
||||
|
||||
@@ -398,7 +380,7 @@ namespace ArachnaeSwarm
|
||||
{
|
||||
if (!isIncubating) return;
|
||||
|
||||
Log.Message($"[ARA] 取消孵化: {incubatingThingDef?.defName}");
|
||||
ArachnaeLog.Debug($"[ARA] 取消孵化: {incubatingThingDef?.defName}");
|
||||
|
||||
isIncubating = false;
|
||||
incubationProgress = 0f;
|
||||
@@ -420,7 +402,7 @@ namespace ArachnaeSwarm
|
||||
{
|
||||
if (incubatingThingDef == null) return;
|
||||
|
||||
Log.Message($"[ARA] 完成孵化: {incubatingThingDef.defName}");
|
||||
ArachnaeLog.Debug($"[ARA] 完成孵化: {incubatingThingDef.defName}");
|
||||
|
||||
float finalQualityPercent = QualityPercent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user