Files
FCP-Tools/Source/FCPTools/FalloutCore/Robotics/ThinkNode_ConditionalShouldMeleeReflex.cs
RickGrymes 0eed170531 Overhaul robotics with hediff loadouts
Refactors robot customization from apparel/equipment to hediff-driven body part overlays, adds a reusable upgrade dialog, and expands DefOf support for Protectron, Securitron, Mr. Handy, and Sentry Bot variants. Introduces manual power toggling, robot bed assignment/power-down behavior, new control modes (including Securitron guard point and Mr. Handy role-based work modes), and AI checks that respect fuel/power state and pending upgrade bench calls. Also adds new radiant quest nodes, improves settlement tile fallback logic, updates several workbench sizes/textures, and adds additional trader backstories.
2026-07-19 00:57:55 -05:00

25 lines
563 B
C#

using Verse;
using Verse.AI;
namespace FCP.Core.Robotics
{
public class ThinkNode_ConditionalShouldMeleeReflex : ThinkNode_Conditional
{
protected override bool Satisfied(Pawn pawn)
{
if (!RobotUtility.IsPoweredOn(pawn))
{
return false;
}
CompRefuelable fuel = pawn.GetComp<CompRefuelable>();
if (fuel != null && !fuel.HasFuel)
{
return false;
}
return !RobotUtility.HasRangedAttack(pawn);
}
}
}