Jump to content

Calculating Resources/Money when Purchasing Military


Shakyr
 Share

Recommended Posts

Just a small issue.

 

When purchasing military, if you enter in a comma (,) as a part of the number (for example "4,500"), the resources and money cost is shown as "NaN".

 

Simply running a string replace to remove commas from the number, before running the calculation, should clear that one up.

sig_cybernations.PNG.8d49a01423f488a0f1b846927f5acc7e.PNG

Link to comment
Share on other sites

Related bug, with the success message after purchase, it's not filtering out commas either.

 

So if I enter "1,2" it will come back with "You successfully manufactured 1 aircraft at a cost of $4,000.00." even though I actually bought 12 aircraft (and yes, my aircraft increased by 12).

sig_cybernations.PNG.8d49a01423f488a0f1b846927f5acc7e.PNG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.