feat(Designator): enable box selection for CallSkyfallerInArea

This commit is contained in:
2025-12-02 16:13:30 +08:00
parent ac3d5d30e3
commit d2dae8314d
2 changed files with 3 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ namespace WulaFallenEmpire
soundSucceeded = SoundDefOf.Designate_Claim;
hotKey = KeyBindingDefOf.Misc12;
tutorTag = "CallSkyfallerInArea";
draggableDimensions = 2;
}
public override AcceptanceReport CanDesignateCell(IntVec3 c)
@@ -39,7 +40,7 @@ namespace WulaFallenEmpire
var things = Map.thingGrid.ThingsListAt(c);
foreach (var thing in things)
{
if (thing.def.category == ThingCategory.Building &&
if (thing.def.category == ThingCategory.Building &&
thing.Faction == Faction.OfPlayer &&
thing.TryGetComp<CompSkyfallerCaller>() != null)
{
@@ -48,8 +49,7 @@ namespace WulaFallenEmpire
}
// 即使单元格内没有符合条件的建筑,也允许选择(这样用户可以拖动区域)
// 但返回一个友好的提示
return "WULA_NoCallableBuildingsInCell".Translate();
return true;
}
public override void DesignateSingleCell(IntVec3 c)