Beispiel #1
0
	public static function
	upgradeHH(User $user) {
		global $conf;
		
		$cost = Upgrades::hhCost($user);
		$what = 'hhlevel';
		$delta = 1;
		$name = 'Hand-to-Hand Level';

		return Upgrades::upgrade($user, $name, $cost, $what, $delta);
	}
Beispiel #2
0
					<td>
						<input type="submit" name="upgrade-up" value="<?php 
echo numecho(Upgrades::upCost($user));
?>
 Gold" />
						<input type="submit" name="upgrade-up-max" value="Max" />
					</td>
				</tr>
				<tr>
					<td>Hand-to-Hand Training</td>
					<td><?php 
echo $user->hhlevel;
?>
</td>
					<td><input type="submit" name="upgrade-hh" value="<?php 
echo numecho(Upgrades::hhCost($user));
?>
 Gold" /></td>
				</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>