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
gold = Item("gold")
wp = WorkProduction(gold)
wp.user_level = 80
wp.work_exp = 120981
wp.factory_level = 140
wp.resource_max = 359
wp.nation_bonus = True
wp.department_bonus = 28
wp.wage_percentage = 99
wp.state_tax = 15
wp.calculate()
print(wp.productivity())
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
Built Distribution
Close
Hashes for rival_regions_calc-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c43316f2c755dd2d816f3367bc46644b25161e2e8773530312086c57f60000e5 |
|
MD5 | 749b63f6d4f0c9f2b0308773a27c3cea |
|
BLAKE2b-256 | 9558812f31966fc3d43ac078001b78d6b512b3b7bd1790e7b8f85b8f6e9b46c7 |