Ok, let's see.. formulas:
troop upkeep for heroes:
ceil((pow($troops, 1.03) * 2.5 - 100)/24)
troop upkeep for locations:
ceil((pow($troops, 1.02) * 1 - 100)/24)
faraway goods bonus:
round(pow($distance_percent*100, 1.26)-80)
movement speed:
$speed = (0.25 * ($terrain['speed']/100));
$troop_influence = (pow($troops, $terrain['troops_influence']/200)/100); #capped at 0.99
$speed = $speed * (1-$troop_influence);
terrain look distance:
(distance_in_pixel/(($my_geo['look_out']/100)*($other_geo['look_in']/100)) < 100 )
terrain:
http://strategus.c-rpg.net/geo_calradia.pngmovement table:
color
| name
| speed
| troops_influence
| look_out
| look_in
| 000080 | Sea | 0 | 100 | 250 | 50 | 22b14c | Plains | 100 | 100 | 100 | 100 | c3c3c3 | Hills | 60 | 100 | 140 | 140 | ffffff | Snow Plains | 70 | 100 | 100 | 100 | 003e00 | Plain Forest | 60 | 110 | 70 | 20 | 008080 | Snow Forest | 50 | 110 | 70 | 30 | 535353 | Mountains | 30 | 140 | 200 | 120 | 00a2e8 | River | 0 | 100 | 100 | 100 | 96924f | Steppe | 100 | 100 | 100 | 100 | 697801 | Steppe Forest | 70 | 110 | 80 | 40 | 000000 | Cliffs | 0 | 100 | 100 | 100 | f000ff | Road | 180 | 100 | 40 | 170 | fff200 | Desert | 100 | 100 | 100 | 100 | 53a600 | Desert Forest | 80 | 110 | 90 | 50 | b45e34 | Bridge | 10 | 150 | 100 | 30 |
|