Workers = Net?
- The Beatles
- Fear me for I am root
- Posts: 6285
- Joined: Tue May 24, 2005 8:12 pm
- Nuclear Raunch
- The Wanderer
- Posts: 950
- Joined: Tue May 24, 2005 4:30 am
Net is based on workers, troops, wizards, land, and resources.
Mice=1 net
Squirrels=2 net
Hares=4 net
Otters=6 net
Hawks=2 net
Workers=3 net
Cash=?
Grain=?
Unbuilt land=? Believe it is higher than built
Built land=?
EDITED
Mice=1 net
Squirrels=2 net
Hares=4 net
Otters=6 net
Hawks=2 net
Workers=3 net
Cash=?
Grain=?
Unbuilt land=? Believe it is higher than built
Built land=?
EDITED
I know the voices in my head arn't real but they usually have some pretty good ideas.
- The Beatles
- Fear me for I am root
- Posts: 6285
- Joined: Tue May 24, 2005 8:12 pm
code: Select all
function getNetworth (&$user)
{
global $config;
$net = 0;
foreach($config[troop] as $num => $mktcost) {
$net += ($user[troop][$num] * $mktcost / $config[troop][0]);
}
$net += ($user[wizards] * 2) +
($user[peasants] * 3) +
(
($user[cash] + $user[savings] / 2 - $user[loan] * 2
// stocks
) /
(5 * $config[troop][0])
) +
($user[land] * 500) + ($user[freeland] * 100) +
($user[food] * $config[food] / ($config[troop][0] * 3));
$net = floor($net);
if ($net > 0) return $net;
else return 1;
}:wq
- The Beatles
- Fear me for I am root
- Posts: 6285
- Joined: Tue May 24, 2005 8:12 pm
- Nuclear Raunch
- The Wanderer
- Posts: 950
- Joined: Tue May 24, 2005 4:30 am
- The Beatles
- Fear me for I am root
- Posts: 6285
- Joined: Tue May 24, 2005 8:12 pm
code: Select all
INSERT INTO `flag2_players` VALUES ('spec1', 'nopass', 'Special & Protected', 'none@tld.invalid', '127.0.0.1', 1124054137, 0, 0, 0, 0, 1124054271, 0, 1, 'Maple Leaf Flag (Canada)', 6, 1, 2, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1125612000, 1125612000, 299, 5065, 35000000, 0, 0, 40058, '4000000|2500000|2000000|1000000', 100, 900000, 61716701, 0, 0, '25|25|25|25', 20000, 0, 0, 0, 0, 10000, 0, 10000, 0, 10, 478962000, 99, '', 0, 100000, '0|0|0|0', 0, 5, 0, 10, 0, 1124054137, 1124054137, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 'Admin', '', '', '1000|1000|1000|1000|1000|1000|1000|1000|1000|1000', 0, 0, 0, 1, 1, 'Inbox|Sent', 0, 1, 0, 0, 0);
INSERT INTO `flag2_players` VALUES ('spec1', 'nopass', 'Special & Protected', 'none@tld.invalid', '127.0.0.1', 1124054137, 0, 0, 0, 0, 1124054271, 0, 1, 'Jolly Roger (Pirates)', 3, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1125612000, 1125612000, 299, 5066, 1000000000, 0, 0, 1200058, '120000000|75000000|60000000|30000000', 100, 27000000, 0, 0, 0, '25|25|25|25', 600000, 0, 0, 0, 0, 300000, 0, 300000, 0, 10, 0, 71400261000, '', 1125610200, 60100000, '0|0|0|0', 0, 5, 0, 10, 0, 1124054137, 1124054137, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 'Admin', '', '', '1000|1000|1000|1000|1000|1000|1000|1000|1000|1000', 0, 0, 0, 1, 1, 'Inbox|Sent', 0, 1, 0, 0, 0);
INSERT INTO `flag2_players` VALUES ('spec1', 'nopass', 'Special & Protected', 'none@tld.invalid', '127.0.0.1', 1124054137, 0, 0, 0, 0, 1124054271, 0, 1, 'Stars and Stripes (United States)', 4, 1, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1125612000, 1125612000, 299, 5066, 350000000, 0, 0, 400058, '40000000|25000000|20000000|10000000', 100, 9000000, 0, 0, 0, '25|25|25|25', 200000, 0, 0, 0, 0, 100000, 0, 100000, 0, 10, 4798956000, 0, '', 1125610200, 10113250, '0|0|0|0', 0, 5, 0, 10, 0, 1124054137, 1124054137, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 'Admin', '', '', '1000|1000|1000|1000|1000|1000|1000|1000|1000|1000', 0, 0, 0, 1, 1, 'Inbox|Sent', 0, 1, 0, 0, 0);
INSERT INTO `flag2_players` VALUES ('spec1', 'nopass', 'Special & Protected', 'none@tld.invalid', '127.0.0.1', 1124054137, 0, 0, 0, 0, 1124054271, 0, 1, 'Federal Cross (Switzerland)', 5, 1, 2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1125612000, 1125612000, 299, 5066, 100000000, 0, 0, 120058, '12000000|7500000|6000000|3000000', 100, 2700000, 0, 0, 0, '25|25|25|25', 60000, 0, 0, 0, 0, 30000, 0, 30000, 0, 10, 0, 7140261000, '401700|200850|100425|66950', 1125610200, 3113250, '0|0|0|0', 0, 5, 0, 10, 0, 1124054137, 1124054137, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 'Admin', '', '', '1000|1000|1000|1000|1000|1000|1000|1000|1000|1000', 0, 0, 0, 1, 1, 'Inbox|Sent', 0, 1, 0, 0, 0);
INSERT INTO `flag2_players` VALUES ('spec1', 'nopass', 'Special & Protected', 'none@tld.invalid', '127.0.0.1', 1124054137, 0, 0, 0, 0, 1124054271, 0, 1, 'Union Jack (United Kingdom)', 2, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1125612000, 1125612000, 299, 5599, 3500000000, 0, 0, 3999999, '400000000|250000000|300000000|100000000', 100, 90000000, 0, 0, 0, '25|25|25|25', 2000000, 0, 0, 0, 0, 1000000, 0, 1000000, 0, 10, 0, 587999995500, '0', 1125610200, 200100000, '0|0|0|0', 1125609300, 5, 0, 10, 0, 1124054137, 1124054137, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 'Admin', '', '', '1000|1000|1000|1000|1000|1000|1000|1000|1000|1000', 0, 0, 0, 1, 1, 'Inbox|Sent', 0, 1, 0, 0, 0);:wq
- The Beatles
- Fear me for I am root
- Posts: 6285
- Joined: Tue May 24, 2005 8:12 pm
Summation of networth values:
hawks=2
workers=3
cash=2
built land=500
free land=100
food=3
Mice=1 net
Squirrels=2 net
Hares=4 net
Otters=6 net
In the game, free land appears more valuable than built land because your NW will drop when you build, but I believe that is simply due to the cash you spend to build the land.
hawks=2
workers=3
cash=2
built land=500
free land=100
food=3
Mice=1 net
Squirrels=2 net
Hares=4 net
Otters=6 net
In the game, free land appears more valuable than built land because your NW will drop when you build, but I believe that is simply due to the cash you spend to build the land.
- Ruddertail
- Promi Diplomacy ate my homework...
- Posts: 4510
- Joined: Wed May 12, 2004 11:39 pm
- Location: Chances are, playing FAF.
- Contact:
- The Beatles
- Fear me for I am root
- Posts: 6285
- Joined: Tue May 24, 2005 8:12 pm
Ah, I misunderstood the code posted earlier. I thought free land was 100 ONLY, not in addition to the 500.
That really doesn't make sense though, why should barren land be worth more than land with useful buildings on it? It would make more sense to have (for instance) all land worth 500 per acre and have each building worth an additional 100.
That really doesn't make sense though, why should barren land be worth more than land with useful buildings on it? It would make more sense to have (for instance) all land worth 500 per acre and have each building worth an additional 100.
-
Members connected in real time





