Talk:Archer
From Inselkampf
(Difference between revisions)
Headphones (Talk | contribs) |
|||
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. |
Revision as of 21:26, 6 October 2007
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.