Pressgang
I am thinking about working on moving to new strats and refining casher for a bit since i have never used it before on any server. I know tents and alternating tax rates are the way to go, but I am looking at the pressgang spell and wondering if I could work it in. What exactly determines the number of workers it produces?
Phillip says:
Tell me more about your Undefined
- Slasher
- The FAF Forums SMEGHEAD!!! lol
- Posts: 2635
- Joined: Mon May 03, 2004 5:08 pm
- Location: http://florida4us.com/
- Contact:
I think it's tents that affect it, I'll try and have a look at the code in a few but it's 1.10am and i've been drinking a fair bit so...
Ok.. here goes
so it's something to do with user land * 2 + user free land * 5 + user tents * 60 / 0.95 + taxrate + taxpenalty
Ok.. here goes
code: Select all
function missionpeasant() {
global $users, $lratio, $playerdb, $produced;
global $spratio, $mission_num;
for($i=0; $i<8; $i++) {
$popbase = round((($users[land] * 2) + ($users[freeland] * 5) + ($users[homes] * 60)) / (0.95 + $taxrate + $taxpenalty));
if ($users[peasants] != $popbase)
$peasants = ($popbase - $users[peasants]) / 20;
if ($peasants > 0) $peasmult = (4 / (($users[tax] + 15) / 20)) - (7 / 9);
if ($peasants < 0) $peasmult = 1 / ((4 / (($users[tax] + 15) / 20)) - (7 / 9));
$peasants = round($peasants * $peasmult * $peasmult);
if($peasants < 0)
$peasants = 0;
$users[peasants] += $peasants;
$produced += $peasants;
}
saveUserData($users, "peasants");
}- Slasher
- The FAF Forums SMEGHEAD!!! lol
- Posts: 2635
- Joined: Mon May 03, 2004 5:08 pm
- Location: http://florida4us.com/
- Contact:
-
Members connected in real time

