Starsector API
Loading...
Searching...
No Matches
PersonBountyManager.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel;
2
3import com.fs.starfarer.api.EveryFrameScript;
4import com.fs.starfarer.api.Global;
5
7
8 public static final String KEY = "$core_personBountyManager";
9
11 Object test = Global.getSector().getMemoryWithoutUpdate().get(KEY);
12 return (PersonBountyManager) test;
13 }
14
16 super();
17 Global.getSector().getMemoryWithoutUpdate().set(KEY, this);
18 }
19
20 @Override
21 protected int getMinConcurrent() {
22 return Global.getSettings().getInt("minPersonBounties");
23 }
24 @Override
25 protected int getMaxConcurrent() {
26 return Global.getSettings().getInt("maxPersonBounties");
27 }
28
29 @Override
30 protected float getIntervalRateMult() {
31// if (true) {
32// currMax = 200;
33// return 1000f;
34// }
35 return super.getIntervalRateMult();
36 }
37
38 @Override
40 if ((float) Math.random() < 0.75f) return null;
41
43 if (intel.isDone()) intel = null;
44
45 return intel;
46 }
47
48}
static SettingsAPI getSettings()
Definition Global.java:51
static SectorAPI getSector()
Definition Global.java:59