public static function upgradeUP(User $user) { global $conf; $cost = Upgrades::upCost($user); $what = 'up'; $delta = 1; $name = 'Unit Production'; return Upgrades::upgrade($user, $name, $cost, $what, $delta); }
?> </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" /> </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>