示例#1
0
	public static function
	upgradeDA(User $user) {
		global $conf;
		
		if ($user->dalevel >= $conf['race'][$user->nation]['max-dalevel']) {
			return false;
		}
		
		$cost = Upgrades::daCost($user);
		$what = 'dalevel';
		$delta = 1;
		$name = 'Defensive Technology';

		return Upgrades::upgrade($user, $name, $cost, $what, $delta);
	}
示例#2
0
						<? } ?>
					</td>
				</tr>
				<tr>
					<td>Defensive Technology</td>
					<td><?php 
echo $user->getDAName();
?>
</td>
					<td>
						<? if ($user->dalevel >= $conf['race'][$user->nation]['max-dalevel']) { ?>
							[ No More ]
						<? }
							else { ?>
							<input type="submit" name="upgrade-da" value="<?php 
echo numecho(Upgrades::daCost($user));
?>
 Gold" />
						<? } ?>
					</td>
				</tr>
				<tr>
					<td>Covert Technology</td>
					<td><?php 
echo $user->calevel;
?>
</td>
					<td><input type="submit" name="upgrade-ca" value="<?php 
echo numecho(Upgrades::caCost($user));
?>
 Gold" /></td>