1package com.fs.starfarer.api.impl.campaign.intel.bar.events;
5import com.fs.starfarer.api.campaign.econ.CommodityOnMarketAPI;
6import com.fs.starfarer.api.campaign.econ.MarketAPI;
7import com.fs.starfarer.api.characters.PersonAPI;
8import com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry;
9import com.fs.starfarer.api.impl.campaign.ids.Commodities;
10import com.fs.starfarer.api.impl.campaign.ids.Factions;
11import com.fs.starfarer.api.impl.campaign.ids.Ranks;
12import com.fs.starfarer.api.impl.campaign.ids.Tags;
13import com.fs.starfarer.api.impl.campaign.intel.contacts.ContactIntel;
14import com.fs.starfarer.api.util.Misc;
23 if (!super.shouldShowAtMarket(
market))
return false;
26 if (!
market.getFactionId().equals(Factions.PERSEAN)) {
29 if (
market.getId().equals(
"kazeron"))
return false;
30 if (
market.getStabilityValue() > 7)
return false;
32 if (!
market.hasSpaceport())
return false;
49 return Commodities.SUPPLIES;
59 super.adjustPerson(
person);
61 person.addTag(Tags.CONTACT_TRADE);
66 return Ranks.POST_SUPPLY_MANAGER;
71 return Factions.PERSEAN;
85 int size = com.getAvailable();
86 if (size < 1) size = 1;
87 quantity *= Math.max(1, BaseIndustry.getSizeMult(size) - 2);
98 return "A " +
getManOrWoman() +
" in the port authority uniform is discreetely trying to catch your eye.";
103 return "Talk to the port authority official";
108 return "You relent and sit with the port clerk who smiles and offers to buy you a drink. " +
109 "\"I'm familiar with your cargo manifest, of course, and thought you might be interested " +
110 "in an opportunity.\" " + Misc.ucFirst(
getHeOrShe()) +
" looks around, then back at you," +
111 " with a sly smile. \"Strictly off-the-books, of course. This job does allow me to, " +
112 "shall we say, exercise personal judgment.\"\n\n" +
114 "The port clerk speaks broadly about how cargo goes missing all the time. " +
115 "Even a generous stock of %s supplies might go missing. \"It's earmarked, of course, " +
116 "for the rich bastards from one of those Kazeron combines. " +
117 "They can afford replacements on the open market, surely.\" " +
118 Misc.ucFirst(
getHeOrShe()) +
" goes on to explain that %s per unit would be necessary for " +
124 return new String [] { Misc.getWithDGS(
quantity), Misc.getDGSCredits(
unitPrice) };
128 return new Color [] { Misc.getHighlightColor(), Misc.getHighlightColor() };
133 return "Accept and transfer " + Misc.getDGSCredits(
unitPrice *
quantity) +
" to the TriAnon account provided";
138 return "Decline, explaining that you don't wish to meddle in League affairs";
143 return "You leave the bar to find a message ping on your TriPad from the local port authority. " +
144 "It seems you've left %s of your supplies in cargo bay twelve, " +
145 "and the bay needs to be cleared out by the end of the next work-shift.";
150 return new String [] { Misc.getWithDGS(
quantity) };
154 return new Color [] { Misc.getHighlightColor() };
transient TextPanelAPI text
PersonImportance pickLowImportance()
void regen(MarketAPI market)
CorruptPLClerkSuppliesBarEvent()
String getPersonFaction()
void adjustPerson(PersonAPI person)
Color[] getAcceptTextColors()
String[] getMainTextTokens()
void doExtraConfirmActions()
String[] getAcceptTextTokens()
boolean shouldShowAtMarket(MarketAPI market)
Color[] getMainTextColors()