Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: implement camopscontractmarket
Browse files Browse the repository at this point in the history
Algebro7 committed Aug 25, 2024
1 parent b85747f commit fbfbaa6
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -3,6 +3,9 @@
import mekhq.campaign.Campaign;
import mekhq.campaign.market.enums.ContractMarketMethod;
import mekhq.campaign.mission.AtBContract;
import mekhq.campaign.personnel.Person;
import mekhq.campaign.personnel.SkillType;
import mekhq.campaign.universe.PlanetarySystem;

public class CamOpsContractMarket extends AbstractContractMarket {
public CamOpsContractMarket() {
@@ -15,7 +18,17 @@ public AtBContract addAtBContract(Campaign campaign) {

@Override
public void generateContractOffers(Campaign campaign, boolean newCampaign) {

if (!(campaign.getLocalDate().getDayOfMonth() == 1) && !newCampaign) {
return;
}
int repFactor = campaign.getReputationFactor();
// TODO: Allow subcontracts?
for (AtBContract contract : campaign.getActiveAtBContracts()) {
//checkForSubcontracts(campaign, contract, unitRatingMod);
}
// TODO: CamopsMarket: allow players to choose negotiators and send them out, removing them
// from other tasks they're doing. For now just use the highest negotiation skill on the force.
Person negotiator = campaign.findBestAtSkill(SkillType.S_NEG);
}

@Override
@@ -27,4 +40,8 @@ public void addFollowup(Campaign campaign, AtBContract contract) {
protected void setAtBContractClauses(AtBContract contract, int unitRatingMod, Campaign campaign) {

}

private int getHiringHallMod(PlanetarySystem system) {
return 0;
}
}

0 comments on commit fbfbaa6

Please sign in to comment.