Starsector API
Loading...
Searching...
No Matches
DeliveryBarEventCreator.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel.bar.events;
2
3import com.fs.starfarer.api.impl.campaign.intel.bar.PortsideBarEvent;
4
6
8 return new DeliveryBarEvent();
9 }
10
11 @Override
12 public boolean isPriority() {
13 return true;
14 }
15
16
17 // re-roll fairly often, with no timeout, so there's almost always something
19 return 15f + (float) Math.random() * 15f;
20 }
21
23 return 0f; // unless the player accepts, always keep one going
24 }
25
26 @Override
28 return Math.max(0, 30f - (float) Math.random() * 40f);
29 }
30}
31
32
33
34