织域种
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user