Ticket #3428: 3428.2.patch
File 3428.2.patch, 1.6 KB (added by , 8 years ago) |
---|
-
ps/trunk/binaries/data/mods/public/simulation/components/Trader.js
2 2 // resources a trader gets 3 3 4 4 // Additional gain for ships for each garrisoned trader, in percents 5 const GARRISONED_TRADER_ADDITION = 20;5 const GARRISONED_TRADER_ADDITION = 40; 6 6 7 7 // Array of resource names 8 8 const RESOURCES = ["food", "wood", "stone", "metal"]; … … 51 51 { 52 52 var cmpGarrisonedUnitTrader = Engine.QueryInterface(entity, IID_Trader); 53 53 if (cmpGarrisonedUnitTrader) 54 { 55 garrisonMultiplier += GARRISONED_TRADER_ADDITION * (1 + garrisonedTradersCount / 10) / 100; 54 56 garrisonedTradersCount++; 57 } 55 58 } 56 garrisonMultiplier *= 1 + GARRISONED_TRADER_ADDITION * garrisonedTradersCount / 100;57 59 58 60 if (gain.traderGain) 59 61 gain.traderGain = Math.round(garrisonMultiplier * gain.traderGain); -
ps/trunk/binaries/data/mods/public/simulation/templates/template_unit_mechanical_ship_merchant.xml
7 7 </Armour> 8 8 <Cost> 9 9 <Resources> 10 <wood> 0</wood>10 <wood>100</wood> 11 11 <metal>100</metal> 12 12 </Resources> 13 13 </Cost>