暂存key

This commit is contained in:
2025-09-04 16:59:46 +08:00
parent 4423a16a28
commit aab5e225c1
3 changed files with 12 additions and 5 deletions

Binary file not shown.

View File

@@ -4,4 +4,11 @@
<ARA_Incubate>孵化 {0}</ARA_Incubate>
<ARA_NeedsInteraction>未孵化,需要阿拉克涅女皇种交互</ARA_NeedsInteraction>
<!-- CompAbilityEffect_BindDrone -->
<ARA_BindDrone_Success>{0} 已成功绑定到 {1} 的蜂巢思维。</ARA_BindDrone_Success>
<ARA_BindDrone_Failure>无法将 {0} 绑定到 {1} 的蜂巢思维。</ARA_BindDrone_Failure>
<ARA_BindDrone_NoDroneHediff>目标 {0} 没有“ARA_HiveMindDrone”的 hediff。</ARA_BindDrone_NoDroneHediff>
<ARA_BindDrone_AlreadyBound>目标 {0} 已绑定到 {1}。</ARA_BindDrone_AlreadyBound>
<ARA_BindDrone_NoMasterHediff>施法者 {0} 没有“ARA_HiveMindMaster”的 hediff。</ARA_BindDrone_NoMasterHediff>
</LanguageData>

View File

@@ -20,11 +20,11 @@ namespace ArachnaeSwarm
{
if (masterHediff.TryBindDrone(dronePawn))
{
Messages.Message($"Successfully bound {dronePawn.LabelShort} to {masterPawn.LabelShort}'s hive mind.", MessageTypeDefOf.PositiveEvent, historical: false);
Messages.Message("ARA_BindDrone_Success".Translate(dronePawn.LabelShort, masterPawn.LabelShort), MessageTypeDefOf.PositiveEvent, historical: false);
}
else
{
Messages.Message($"Failed to bind {dronePawn.LabelShort} to {masterPawn.LabelShort}'s hive mind. Check logs for details.", MessageTypeDefOf.NegativeEvent, historical: false);
Messages.Message("ARA_BindDrone_Failure".Translate(dronePawn.LabelShort, masterPawn.LabelShort), MessageTypeDefOf.NegativeEvent, historical: false);
}
}
else
@@ -70,7 +70,7 @@ namespace ArachnaeSwarm
{
if (throwMessages)
{
Messages.Message($"Target {dronePawn.LabelShort} does not have the 'ARA_HiveMindDrone' hediff.", MessageTypeDefOf.RejectInput, historical: false);
Messages.Message("ARA_BindDrone_NoDroneHediff".Translate(dronePawn.LabelShort), MessageTypeDefOf.RejectInput, historical: false);
}
return false;
}
@@ -80,7 +80,7 @@ namespace ArachnaeSwarm
{
if (throwMessages)
{
Messages.Message($"Target {dronePawn.LabelShort} is already bound to {droneHediff.target.LabelShort}.", MessageTypeDefOf.RejectInput, historical: false);
Messages.Message("ARA_BindDrone_AlreadyBound".Translate(dronePawn.LabelShort, droneHediff.target.LabelShort), MessageTypeDefOf.RejectInput, historical: false);
}
return false;
}
@@ -91,7 +91,7 @@ namespace ArachnaeSwarm
{
if (throwMessages)
{
Messages.Message($"Caster {masterPawn.LabelShort} does not have the 'ARA_HiveMindMaster' hediff.", MessageTypeDefOf.RejectInput, historical: false);
Messages.Message("ARA_BindDrone_NoMasterHediff".Translate(masterPawn.LabelShort), MessageTypeDefOf.RejectInput, historical: false);
}
return false;
}