TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Request: Income Summary better display

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    6 Posts 3 Posters 1.4k Views 2 Watching
    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.
    • TheDogT Offline
      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?

      https://forums.triplea-game.org/tags/thedog
      https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

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

        @thedog looks map specific

        "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

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

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

          TheDogT 1 Reply Last reply Reply Quote 2
          • TheDogT Offline
            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
            

            https://forums.triplea-game.org/tags/thedog
            https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

            B 1 Reply Last reply Reply Quote 1
            • B Offline
              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 Offline
                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums