Talk:Archer

From Inselkampf

(Difference between revisions)
(Archer Efficiency)
m
Line 1: Line 1:
-
The figures for efficiency of Bow upgrades use the following math.  Feel free to correct me if I screwed up somehow.
 
-
 
-
N = Number of troops where cost of additional troops and cost of upgrading intersect;
 
-
P1 = attack+defense before upgrade;
 
-
P2 = attack+defense after upgrade;
 
-
Ucost = upgrade cost;
 
-
Tcost = troop cost
 
-
 
-
*P1 * (N + Ucost/Tcost) = P2 * N
 
-
*(P1 * N) + (P1 * Ucost/Tcost) = P2 * N
 
-
*P1 * Ucost/Tcost = (P2 * N) - (P1 * N)
 
-
*P1 * Ucost/Tcost = N(P2 - P1)              // Because of the way we're using P2 and P1, we know that: P2 - P1 = 1
 
-
*Thus for archers:  P1 * Ucost/100 = N
 
-
 
-
I specifically didn't floor or round (Ucost/100) because it seemed silly to ignore partially completed archers when they'll be completed within an hour.
 
-
 
== Archer Efficiency ==
== Archer Efficiency ==

Revision as of 00:52, 7 October 2007

Archer Efficiency

The figures for efficiency of Bow upgrades use the following math. Feel free to correct me if I screwed up somehow.

N = Number of troops where cost of additional troops and cost of upgrading intersect; P1 = attack+defense before upgrade; P2 = attack+defense after upgrade; Ucost = upgrade cost; Tcost = troop cost

  • P1 * (N + Ucost/Tcost) = P2 * N
  • (P1 * N) + (P1 * Ucost/Tcost) = P2 * N
  • P1 * Ucost/Tcost = (P2 * N) - (P1 * N)
  • P1 * Ucost/Tcost = N(P2 - P1) // Because of the way we're using P2 and P1, we know that: P2 - P1 = 1
  • Thus for archers: P1 * Ucost/100 = N

I specifically didn't floor or round (Ucost/100) because it seemed silly to ignore partially completed archers when they'll be completed within an hour.

  • Please sign your posts with four tildes--DCJoeDog 20:52, 6 October 2007 (EDT)
Personal tools