Пример #1
0
	public static function
	upgradeBk(User $user) {
		global $conf;
		
		if (!$user->getSupport('upgrades')) {
			return false;
		}
		
		$cost = Upgrades::bkCost($user);
		$what = 'bankper';
		$delta = -1;
		$name = 'Bank Percentage';

		return Upgrades::upgrade($user, $name, $cost, $what, $delta);
	}
Пример #2
0
				</tr>
				<? if ($user->getSupport('upgrades')) { ?>
					<tr>
						<td>Upgrade Officer Limit</td>
						<td><?php 
echo $user->maxofficers;
?>
</td>
						<td><input type="submit" name="upgrade-of" value="<?php 
echo numecho(Upgrades::ofCost($user));
?>
 Gold" /></td>
					</tr>
					<tr>
						<td>Upgrade Bank Deposit Percentage</td>
						<td><?php 
echo $user->bankper;
?>
%</td>
						<td><input type="submit" name="upgrade-bk" value="<?php 
echo numecho(Upgrades::bkCost($user));
?>
 Gold" /></td>
					</tr>
				<? } ?>
			</table>
		</form>
	</div>
</div>
<!-- End upgrades page -->