To calculate the affects another players troop placement will have on diplomacy score.
The current player will be known as the good player
The other player being compared against will be known as the evil player
Cycle through evil players units
If unit dist from good HQ < than bad HQ dist from good HQ then
Unit scary value = ((distbetween HQs - distfrom Good HQ) *unit might) * evil diplomacy benefit
Loop
Get total evil player scary value
Reverse roles and get good players total scary value
Good diplomacy value mod = (goodtotalscaryval/badtotalscaryval) * good players diplomacy rating
Divide good players diplomacy value by mod value
Evil players diplomacy value is unaffected
Comments?
