For example gifts to the Vulcans :
Federation
2000
4000
6000
8000
10000
Cardassians
4000
8000
12000
16000
20000
...and the thunder struck again! (I mean thanks
Moderator: thunderchero


if i want 50% bribe resistance (reduced effect of a gift) i change only via UE the output value for the new "% bribe resistance" to 50 after implementing the new codes in trek.exe and keeping the 0.0004 multiplier?? or do i have to change the multiplier as well (to 0.0002)??Bribe Resistance Fix (advanced)
1.) In edifbnft.bst change "bribe resistance" to "% bribe resistance" (just cosmetics).
2.) In edifice.bst change the output value of the communication grid from 500 to (for example) 30% i.e. effect of gifts is reduced to 70%. Needless to say the max value is 100% bribe resistance.
3.) In trek.exe change code at the following 4 locations:
The multiplier is 0.0004 due to the skipped default effect divisor (25 see above) i.e. *0.04 *0.01(%). Thus e.g. to get a divisor of 50 the float value must be 0.0002.
loc_42A483: TradeRouteEffectMinorAttitude
sub_43B680 (GetTrdeInfoEntry) eax=RaceID, edx=TradeRouteID, [EmpsInfo+154h=adr_trdeInfo]
Code: Select all
42A4A2 imul ebx, 7 // effect of trade route * 7
-> used as amount value for sub_407A94 (GiftEffectsMinor) i.e. divisor at 407B75 (25dec) & [*1] multipliers (see Gifts to Minor Races: Amounts and Effects)

the income value needed for this calculation is taken from the target empire.Spocks-cuddly-tribble wrote:
Amounts of (player)gifts/ offers to Majors
Code: Select all
sub_4106C0(empire_gift_offer_calculation)
41070F fild dword ptr [esp+10h] (for player from sub_4C7E48)
410713 fmul ds:576F4C (0.25)
410719 fld qword ptr [esp] (Income [EmpsInfo+9Ch] min 50)
41071C fmul ds:576F54 (0.05)
410722 fmul st, st(1)
410724 fmulp st(1), st
minimum gift/offer to empires (player/unmodded):
[40*0.25 = 10] * [50*0.05 = 2.5] * [40*0.25 = 10] = 250


