Commits

Anonymous committed 657cb6e

removed commented code

  • Participants
  • Parent commits 12ca141

Comments (0)

Files changed (1)

 		function milOut(n_i, c, d, t){
 			var n = n_i, c = isNaN(c = Math.abs(c)) ? 2 : c, d = d == undefined ? "," : d, t = t == undefined ? "." : t, s = n < 0 ? "-" : "", i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", j = (j = i.length) > 3 ? j % 3 : 0;
 			return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
-		};
+		}
 		function zzz_readNumeric(jQsearch) {
 			var val = parseFloat($(jQsearch).val());
 			if(isNaN(val)) { val = 0; }
 			var war_perc = $("#att_war").attr("checked") ? 1.1 : 1;
 			var main_att = zzz_milStr("att_", "", false);
 			var a_weap = zzz_readPercent("#att_weapons");
-			//if(a_weap == 1) {
-			//	a_weap = zzz_calcMil($("#att_weap_tech").val(),$("#att_land").val(),$("#att_gov").val());
-			//}
 			var a_gov = zzz_govBonus($("#att_gov").val());
 			var break_cap = main_att*a_gov*a_weap*war_perc;
 
 			$("#max_break_cap").html(milOut(break_cap,0,'.',','));
 
 			var def_weap = zzz_readPercent("#def_weapons");
-			//if(def_weap == 1) {
-			//	def_weap = zzz_calcMil($("#def_weap_tech").val(),$("#def_land").val(),$("#def_gov").val());
-			//}
 			var def_str = zzz_milStr("def_", "", true)*zzz_govBonus($("#def_gov").val())*def_weap;
 
 			var d_ally1 = zzz_milStr("def_", "_a1", true)/4;