コード例 #1
0
ファイル: Upgrades.php プロジェクト: Naddiseo/WW2Game
	public static function
	upgradeCA(User $user) {
		global $conf;
		
		$cost = Upgrades::caCost($user);
		$what = 'calevel';
		$delta = 1;
		$name = 'Covert Technology';

		return Upgrades::upgrade($user, $name, $cost, $what, $delta);
	}
コード例 #2
0
ファイル: upgrades.tpl.php プロジェクト: Naddiseo/WW2Game
							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>
				</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>