Skip to content
Permalink
Browse files

Merged PR 554: Merge 624_display_building_benefits to master

Related work items: #628
  • Loading branch information...
realms-mud committed Aug 13, 2019
1 parent 8cf031a commit d93c2050d55d90e652afed7e7b554b1c83447035
@@ -482,7 +482,8 @@ private nomask string *formatUnits(string *layout, mapping componentData,
unitName = unitName[0..(11 + componentSize)] + "...";
}

ret += ({ ((sizeof(layout) > offset) ? layout[offset] : "") +
ret += ({ ((sizeof(layout) > offset) ? layout[offset] :
sprintf("%-" + to_string(9 + componentSize) + "s", "")) +
configuration->decorate(sprintf("%3d ", units[unit]),
"selected", "player domains", colorConfiguration) +
configuration->decorate(
@@ -527,7 +528,7 @@ private nomask string *formatBonuses(mapping componentData,
foreach(string bonus in m_indices(bonuses))
{
ret += ({
configuration->decorate(sprintf("+%d", bonuses[bonus]),
configuration->decorate(sprintf("+%-3d", bonuses[bonus]),
"selected", "player domains", colorConfiguration) +
configuration->decorate(sprintf(" to %-21s", bonus),
"value", "player domains", colorConfiguration)
@@ -633,9 +633,9 @@ void SectionDisplayIsUpdatedOnTopLevel()
"| +---+ | .. ... ... .. \n"
"+=======+ . .. ...... ... ...... .. . \n"
"Effects: . ?. . ........ ........ . .? . \n"
" +3 to defend air attack . .. . .?. .?. . .. . \n"
"+3 to defend air attack . .. . .?. .?. . .. . \n"
"+350 to structure . .. ... ... .. . \n"
" +6 to defend ground attack . . .. .. . . \n"
"+6 to defend ground attack . . .. .. . . \n"
"Completion time: 1500 .... . ?. ......... .? . .... \n"
" . . . .. . . .. . . . \n"
"Stone Battlement: . . ... . . ... . . \n"
@@ -827,9 +827,9 @@ void CompletionTimeIsUpdated()
"| +---+ | .. ... ... .. \n"
"+=======+ . .. ...... ... ...... .. . \n"
"Effects: . ?. . ........ ........ . .? . \n"
" +3 to defend air attack . .. . .?. .?. . .. . \n"
"+3 to defend air attack . .. . .?. .?. . .. . \n"
"+350 to structure . .. ... ... .. . \n"
" +6 to defend ground attack . . .. .. . . \n"
"+6 to defend ground attack . . .. .. . . \n"
"Completion time: 1440 .... . ?. ......... .? . .... \n"
" . . . .. . . .. . . . \n"
"Stone Battlement: . . ... . . ... . . \n"
@@ -1022,10 +1022,10 @@ void DisplayBenefitsFromBuilding()
" 5 Bombadiers . ?. . ........ ........ . .? . \n"
" 40 Men-at-arms . .. . .?. .?. . .. . \n"
"Effects: . .. ... ... .. . \n"
" +2 to air attack . . .. .. . . \n"
" +10 to defend air attack .... . ?. ......... .? . .... \n"
"+2 to air attack . . .. .. . . \n"
"+10 to defend air attack .... . ?. ......... .? . .... \n"
"+925 to structure . . . .. . . .. . . . \n"
" +18 to defend ground attack . . ... . . ... . . \n"
"+18 to defend ground attack . . ... . . ... . . \n"
"Completion time: 2100 . . ... . . ... . . \n"
" . . . .. ......... .. . . . \n"
"Stone Battlement: .... . ?. .? . .... \n"

0 comments on commit d93c205

Please sign in to comment.
You can’t perform that action at this time.