2 using System.Diagnostics;
29 Debug.Assert(location?.
Reputation !=
null,
"location?.Reputation != null");
35 DebugConsole.ThrowError(
"CheckReputationAction requires a \"TargetType\" but none were specified.",
46 DebugConsole.ThrowError(
"Boolean comparison cannot be applied to reputations.",
53 string condition =
"?";
56 condition = $
"{value1.ColorizeObject()} {Operator.ColorizeObject()} {value2.ColorizeObject()}";
59 return $
"{ToolBox.GetDebugSymbol(succeeded.HasValue)} {nameof(CheckReputationAction)} -> (Type: {TargetType.ColorizeObject()}, " +
61 $
"Success: {succeeded.ColorizeObject()}, Expression: {condition})";
IReadOnlyList< Faction > Factions
Can be used to check arbitrary campaign metadata set using SetDataAction.
Check whether the reputation of the crew for a specific faction meets some criteria (e....
override string ToDebugString()
Rich test to display in debugdraw
override bool GetBool(CampaignMode campaignMode)
ReputationAction.ReputationType TargetType
CheckReputationAction(ScriptedEvent parentEvent, ContentXElement element)
override float GetFloat(CampaignMode campaignMode)
readonly ScriptedEvent ParentEvent
ContentPackage? ContentPackage
Adjusts the crew's reputation by some value.