织域种

This commit is contained in:
2025-09-11 21:48:48 +08:00
parent a114b6f037
commit 929d362856
4 changed files with 6 additions and 2 deletions

Binary file not shown.

View File

@@ -69,7 +69,9 @@
<li Class="CompProperties_ReportWorkSpeed">
<workSpeedStat>ResearchSpeedFactor</workSpeedStat>
</li>
<li Class="ArachnaeSwarm.CompProperties_Morphable" />
<li Class="ArachnaeSwarm.CompProperties_Morphable">
<restGainMultiplier>1.0</restGainMultiplier>
</li>
<li Class="ArachnaeSwarm.CompProperties_RefuelableNutrition">
<fuelFilter>
<categories>

View File

@@ -85,7 +85,7 @@ namespace ArachnaeSwarm
// 休眠期 (只有在强制休眠或日程为睡眠/娱乐时才恢复)
if (needs.rest != null)
{
virtualRest = Mathf.Min(VirtualRestMax, virtualRest + (Need_Rest.BaseRestGainPerTick * 2f)); // 乘以2模拟床的效率
virtualRest = Mathf.Min(VirtualRestMax, virtualRest + (Need_Rest.BaseRestGainPerTick * ((CompProperties_Morphable)compMorphable.props).restGainMultiplier)); // 使用XML中定义的乘数
}
StopResearchEffect();
}

View File

@@ -5,6 +5,8 @@ namespace ArachnaeSwarm
{
public class CompProperties_Morphable : CompProperties
{
public float restGainMultiplier = 1f; // Default to 1.0 if not specified in XML
public CompProperties_Morphable()
{
compClass = typeof(CompMorphable);