Skip to main content

Rival Regions calculations

Project description

Rival Regions Calc

Unofficial calculator for Rival Regions. Easily calculate common known formulas from the game.

Currently supported

  • Work productivity

Install

$ pip install rival-regions-calc

Demo

Production

from rival_regions_calc import Item, WorkProduction

RESOURCE = Item("oil")
WP = WorkProduction(RESOURCE)

WP.user_level = 86
WP.work_exp = 142000
WP.factory_level = 185
WP.resource_max = 371
WP.department_bonus = 1.9
WP.wage_percentage = 100
WP.tax_rate = 2
WP.profit_share = 75

WP.calculate()

print(WP.wage())

Construction

from rival_regions_calc import ConstructionCosts, Building

BUILDING = Building("hospital")
CC = ConstructionCosts(BUILDING, 1805)

CC.calculate(50)

print(CC.cash)
print(CC.gold)
print(CC.oil)
print(CC.ore)

Deep exploration

from rival_regions_calc import Item, DeepExploration

resource = Item("oil")
DE = DeepExploration(resource, 223)

DE.calculate_max()

print(DE.cash)
print(DE.gold)
print(DE.diamond)

Resource coefficient

from rival_regions_calc import ResourceCoefficient, Item

resource = Item("oil")
RC = ResourceCoefficient(resource, 266)
print(RC.calculate())
RC = ResourceCoefficient(resource, 371)
print(RC.calculate())

Development

I'll add formulas if I think they are important. If you'd like to see a more improvements you can open an issue or make pull request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rival_regions_calc-1.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rival_regions_calc-1.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file rival_regions_calc-1.1.1.tar.gz.

File metadata

  • Download URL: rival_regions_calc-1.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for rival_regions_calc-1.1.1.tar.gz
Algorithm Hash digest
SHA256 dfac73602c532a88f467952996738133e97deb0664472c690b8db736940bc01d
MD5 118992c596b0b46ffc6af6919a4dffc1
BLAKE2b-256 e246b9671f302a097c4b9e04c4b98138135617128822881de8123537bc3f2759

See more details on using hashes here.

File details

Details for the file rival_regions_calc-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: rival_regions_calc-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for rival_regions_calc-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05583028dbcaa92b78f943e12a5a988a55ae7fa74beef4a5ffec57b4589e1ccf
MD5 68bed0e7440307e837c2d8b3e7d93a66
BLAKE2b-256 73f3ab89768a8ae0c49ecb299bfa1a55f84512988519ebddd69d09c6a58210a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page