
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Unofficial calculator for Rival Regions. Easily calculate common known formulas from the game.
$ pip install rival-regions-calc
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())
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)
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)
from rival_regions_calc import ResourceCoefficient, Item
resource = Item("oil")
RC = ResourceCoefficient(resource, 266)
print(RC.calculate())
RC = ResourceCoefficient(resource, 371)
print(RC.calculate())
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.
FAQs
Rival Regions calculations
We found that rival-regions-calc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.