Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Request: Income Summary better display

    Feature Requests & Ideas
    3
    6
    527
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TheDog
      TheDog last edited by

      This comes from Future Wars: Fallen Empire.
      It has upkeep costs and Factories generated PUs.

      d44c5825-95e1-4def-b6e6-30057faca2a0-image.png

      As can be seen the maths does not compute 😕
      The display of the data is poor.

      Would something like this be better?

      Income from Territories  147
      Lost due to Blockades     -1 (from enemy ships off your coastline)
      Generated from units     -48 (usually from upkeep and Factory PU output)
      Red ends with            103 PU
      

      Also some data is missing, but what is it?

      ubernaut B 2 Replies Last reply Reply Quote 0
      • ubernaut
        ubernaut Moderators @TheDog last edited by

        @thedog looks map specific

        1 Reply Last reply Reply Quote 0
        • B
          butterw @TheDog last edited by

          @thedog
          4+148-1-48=103
          they had 4 PUs left-over from previous turn.

          TheDog 1 Reply Last reply Reply Quote 2
          • TheDog
            TheDog @butterw last edited by TheDog

            @butterw
            Thanks! I have just checked your formula. 🙂

            So perhaps the Income Summary should be?

            Unspent PU                 4
            Income from Territories  148
            Lost due to Blockades     -1 (from enemy ships off your coastline)
            Generated from units     -48 (usually from upkeep and Factory PU output)
            Red ends with            103 PU
            
            B 1 Reply Last reply Reply Quote 1
            • B
              butterw @TheDog last edited by butterw

              The related code is in games.strategy.triplea.delegate EndTurnDelegate.java and AbstractEndTurnDelegate.java

              B 1 Reply Last reply Reply Quote 1
              • B
                butterw @butterw last edited by

                There are multiple cases to consider but the relevant code to modify looks like this.

                  final String transcriptText;
                    transcriptText =
                        player.getName()
                            + " collect "
                            + toAdd
                            + MyFormatter.pluralize(" PU", toAdd)
                            + "; end with "
                            + total
                            + MyFormatter.pluralize(" PU", total);
                  bridge.getHistoryWriter().startEvent(transcriptText);
                  endTurnReport.append(transcriptText).append("<br />");
                

                I think adding a variable final String transcriptTextMod; with a modified formatting would be possible.

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums