Class AICores
java.lang.Object
com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin
com.fs.starfarer.api.impl.campaign.rulecmd.salvage.AICores
- All Implemented Interfaces:
CommandPlugin
NotifyEvent $eventHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected InteractionDialogAPI
protected SectorEntityToken
protected FactionAPI
protected FactionAPI
protected MemoryAPI
protected OptionPanelAPI
protected PersonAPI
protected CargoAPI
protected FactionAPI
protected CampaignFleetAPI
protected float
protected TextPanelAPI
protected float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected float
computeCoreCreditValue
(CargoAPI cargo) protected float
boolean
execute
(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) static float
getBaseRepValue
(String coreType) protected boolean
protected boolean
protected void
Methods inherited from class com.fs.starfarer.api.impl.campaign.rulecmd.BaseCommandPlugin
doesCommandAddOptions, getEntityMemory, getOptionOrder
-
Field Details
-
playerFleet
-
entity
-
playerFaction
-
entityFaction
-
text
-
options
-
playerCargo
-
memory
-
dialog
-
memoryMap
-
person
-
faction
-
buysAICores
protected boolean buysAICores -
valueMult
protected float valueMult -
repMult
protected float repMult
-
-
Constructor Details
-
AICores
public AICores()
-
-
Method Details
-
execute
public boolean execute(String ruleId, InteractionDialogAPI dialog, List<Misc.Token> params, Map<String, MemoryAPI> memoryMap) -
personCanAcceptCores
protected boolean personCanAcceptCores() -
selectCores
protected void selectCores() -
computeCoreCreditValue
-
computeCoreReputationValue
-
getBaseRepValue
-
playerHasCores
protected boolean playerHasCores()
-