eRepublik Advanced All the ideas and discussions
71 votes Vote

Dot (".") or comma (",") when showing influence

When we're fighting in battles, and the battle hero done a high influence, it's kind of tricky to see his/her influence.

Due to the fact that the numbers are close, it's hard to se if the player done one million (1000000) or ten million (10000000) influence in the round.

So my suggestion is to simple put a dot or comma every 3 numbers, so we could see better the influence.

Example:
NOW: 1000000
AFTER: 1.000.000

NOW: 78168415
AFTER: 78,168,415

Thanks, matheusbacha.

matheusbacha, 25.05.2011, 00:44
Idea status: completed

Comments

coren, 26.05.2011, 02:43
Very good idea:).
Selyne, 19.06.2011, 16:28
Really good idea :)
nomad, 24.06.2011, 22:06
[space] better: 1 000 000
doombunny, 01.07.2011, 00:05
I like this idea, too. :)
MrYayo, 24.09.2011, 17:47
I've come up with a solution that works :P

// Add to css:

.influenceHolder { position: absolute; text-align: center; background-color: #333333; width: 82px; border-radius: 0px 7px 7px 0px; margin-top: 12px; margin-left: 204px; padding: 5px 5px 5px 0px; }.influenceTitle { font-weight: bold; color: white; }.influenceNumber { line-height: 13px; text-shadow: 0 -1px 0 #6E9C08; text-align: center; height: 16px; font-size: 10px; display: inline; padding: 0 4px 0 4px; background-color: #83b70b; border-radius: 3px; color: #FFFFFF; }

// Add this code BEFORE: function improveBattlefield()

function addCommas(nStr) {
nStr += '';
x = nStr.split('.');
x1 = x[0];
x2 = x.length > 1 ? '.' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
}

function improveInfluence() {
var xGyv = parseInt($("#total_damage strong").text());
var YGyv = addCommas(xGyv);
$("#influences").text(YGyv);
}

// Add this code INTO: function improveBattlefield()

var xGyv = parseInt($("#total_damage strong").text());
var YGyv = addCommas(xGyv);
$("#total_damage").hide();
$("#pvp_battle_area .player.left_side").prepend('Influence' + YGyv + "");

//Add this code AFTER: $("#hitsNeeded").html(m)

improveInfluence();

Leave a comment