Exemple #1
0
	public static function
	upgradeRA(User $user) {
		global $conf;
		
		$cost = Upgrades::raCost($user);
		$what = 'ralevel';
		$delta = 1;
		$name = 'Retaliation Technology';

		return Upgrades::upgrade($user, $name, $cost, $what, $delta);
	}
Exemple #2
0
echo $user->calevel;
?>
</td>
					<td><input type="submit" name="upgrade-ca" value="<?php 
echo numecho(Upgrades::caCost($user));
?>
 Gold" /></td>
				</tr>
				<tr>
					<td>Retaliation Technology</td>
					<td><?php 
echo $user->ralevel;
?>
</td>
					<td><input type="submit" name="upgrade-ra" value="<?php 
echo numecho(Upgrades::raCost($user));
?>
 Gold" /></td>
				</tr>
				<tr>
					<td>Upgrade Unit Production</td>
					<td><?php 
echo numecho($user->up);
?>
</td>
					<td>
						<input type="submit" name="upgrade-up" value="<?php 
echo numecho(Upgrades::upCost($user));
?>
 Gold" />
						<input type="submit" name="upgrade-up-max" value="Max" />