Talk:Archer
From Inselkampf
(Difference between revisions)
m |
Headphones (Talk | contribs) |
||
Line 15: | Line 15: | ||
*Thus for archers: P1 * Ucost/100 = N | *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. | + | 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. --[[User:Headphones|Headphones]] 23:16, 6 October 2007 (EDT) |
* Please sign your posts with four tildes--[[User:DCJoeDog|DCJoeDog]] 20:52, 6 October 2007 (EDT) | * Please sign your posts with four tildes--[[User:DCJoeDog|DCJoeDog]] 20:52, 6 October 2007 (EDT) |
Revision as of 03:16, 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. --Headphones 23:16, 6 October 2007 (EDT)
- Please sign your posts with four tildes--DCJoeDog 20:52, 6 October 2007 (EDT)