This is a Python script that includes several functions to help with calculations related to the Phantom Forces game. The functions available are:
Returns the input number
rounded up to the nearest multiple of place
.
Returns the amount of credits the player will receive with the next rank, given the current rank
.
Returns the total amount of credits the player will have earned by the given rank
.
Returns the reduced price for a gunRank
weapon, given the player's current currentRank
.
Returns the rank the player needs to have to be able to purchase a gunRank
weapon without using any credits. Note that MVPs and skins are not included.
Returns the amount of XP needed to rank up from currentRank
to rank
. If currentRank
is not specified, it defaults to 0.
The script includes an argparse module for command line usage. The available options are:
Gives the amount of credits the player should have by the given rank. Example usage: python script.py -rC 50
Gives the reduced price for a gunRank
weapon at the player's current rank. Example usage: python script.py -rP 10,40
Gives the amount of credits the player will receive with the next rank. Example usage: python script.py -nR 10
Gives the rank the player needs to be to purchase a gunRank
weapon without using any credits. Example usage: python script.py -rFg 20
Gives the amount of XP needed to rank up to the given rank from the player's current rank. If the current rank is not specified, it defaults to 0. Example usage: python script.py -rXP 10,5
The output of the selected function will be printed to the console.