-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
54 lines (40 loc) · 2.08 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
starting 1592
combust 45
1908
45 TC -> 361 TC
1TC -> 8 TC
game.diplomacy.getTradeRatio() -> 3.615
getEffect('tradeRatio') -> 3.615
game.getEffect("heatMax") -> 3500
game.getEffect("standingRatio") -> 84.69999
game.time.heat -> 0
game.time.getCFU("ressourceRetrieval").on -> 17
game.time.shatter(int)
game.resPool.get("unobtainium").maxValue -> 2073878
game.globalEffectsCached -> map of all effects
game.diplomacy.get("leviathans") -> leaviathans/elders trade info
game.diplomacy.get("leviathans").sells.findIt(it => it.name === "timeCrystal").chance -> 98 // % chance a trade will include time crystals
trades with (2-2) time crystal listed returend
1.60, 1.61, 1.81, 1.72, 1.57, 1.73, 1.57
// buy/sell blackcoin
game.diplomacy.buyEcoin()
game.diplomacy.sellEcoin()
// How trading works
var standingRatio = game.getEffect("standingRatio") -> 84.69999
if (game.prestige.getPerk("diplomacy").researched) {
standingRatio += 10;
}
tradeRatio = 1 + game.diplomacy.getTradeRatio(),
raceRatio = race.name === "leviathans" ? (1 + 0.02 * race.energy) : 1 // ~1.46
resourcePassedNormalTradeAmount = this.game.math.binominalRandomInteger(normalTradeAmount, sellResource.chance / 100); // 0.98 for TC
var normalizedBoughtAmount = (1 - sellResource.delta / 2) * resourcePassedNormalTradeAmount + sellResource.delta * this.game.math.irwinHallRandom(resourcePassedNormalTradeAmount);
bonusTradeRatio = 1.25 // hardcoded
var boughtAmount = (normalizedBoughtAmount * bonusTradeRatio) * sellResource.value * tradeRatio * raceRatio;
var boughtAmount = (normalizedBoughtAmount) * sellResource.value *
resourceSeasonTradeRatio * tradeRatio * raceRatio;
// How shatter works
var daysPerYear = cal.daysPerSeason * cal.seasonsPerYear;
var remainingTicksInCurrentYear = remainingDaysInCurrentYear * cal.ticksPerDay;
var shatterTCGain = game.getEffect("shatterTCGain") * (1 + game.getEffect("rrRatio"));
var valueAdd = game.getResourcePerTick(resName, true) * remainingTicksInCurrentYear * shatterTCGain;
if shattering only one crystal, the first year is pro-rated so days elapsed are not considered for resource gain