Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // updated at 09.02.2020 12:04
- (function() {
- if (game_data.screen != 'info_command') {
- alert("Go to a command details first!");
- return;
- }
- $.get(document.location.href + '&ajax=details',
- function(data) {
- var response = JSON.parse(data);
- var text = '';
- for (var unit in response['units']) {
- var count = response['units'][unit]['count'];
- if (count !== "0") {
- text += unit + ': ' + count + '\n';
- }
- }
- alert(text);
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment