Skip to content

Commit

Permalink
Profile goods change
Browse files Browse the repository at this point in the history
  • Loading branch information
outoftheline committed Jan 24, 2025
1 parent 1bf312b commit c700564
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/web/_i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@
"Boxes.PlayerProfile.BattleBoosts": "Battle Boosts",
"Boxes.PlayerProfile.DailyProduction": "Daily Production",
"Boxes.PlayerProfile.DaysPlayed": "started playing __number__ days ago",
"Boxes.PlayerProfile.OpenProduction": "To gather this data, please open The goods and guild goods tab in the Production overview. Then close and reopen this window.",
"Boxes.PlayerProfile.OpenProduction": "To gather this data, please open the goods and guild goods tab in the Production overview. Then close and reopen this window.",
"Boxes.PlayerProfile.Tooltip": "Open Profile Summary",
"Boxes.Popgame.Warning": "When no tool is selected, the area below is click-through - clicking interacts with the game!",
"Boxes.PowerLeveling.CopyValues": "Copy values",
Expand Down
1 change: 0 additions & 1 deletion js/web/citymap/js/citymap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,6 @@ let CityMap = {
if (reward.id.includes("each")) {
typeString = 'all_goods_'
}
console.log(reward, {[typeString + 'of_' + eraString + 'age']: amount})
return {[typeString + 'of_' + eraString + 'age']: amount}
},

Expand Down
8 changes: 4 additions & 4 deletions js/web/profile/js/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ const Profile = {
content.push('<span class="fp">' + HTML.Format(Profile.fpProduction) + ", " + i18n('General.Boost')+ ' ' +MainParser.BoostSums.forge_points_production + '%</span><br>');
content.push('<div class="goods">')
if (Profile.goods[CurrentEraID-2])
content.push('<span class="prev">' + HTML.Format(Profile.goods[CurrentEraID-2] || 0) + '</span>');
content.push('<span class="prev">' + HTML.Format(parseInt(Profile.goods[CurrentEraID-2]) || 0) + '</span>');
if (Profile.goods[CurrentEraID-1])
content.push('<span class="current">' + HTML.Format(Profile.goods[CurrentEraID-1] || 0) + '</span>');
content.push('<span class="current">' + HTML.Format(parseInt(Profile.goods[CurrentEraID-1]) || 0) + '</span>');
if (Profile.goods[CurrentEraID])
content.push('<span class="next">' + HTML.Format(Profile.goods[CurrentEraID] || 0) + '</span>');
content.push('<span class="next">' + HTML.Format(parseInt(Profile.goods[CurrentEraID]) || 0) + '</span>');
if (Profile.guildGoods)
content.push('<span class="guild">' + HTML.Format(Profile.guildGoods || 0) + '</span>')
content.push('<span class="guild">' + HTML.Format(parseInt(Profile.guildGoods) || 0) + '</span>')
content.push('</div>');
content.push('</div>');

Expand Down

0 comments on commit c700564

Please sign in to comment.