Coder Social home page Coder Social logo

rival_regions_calc's Introduction

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.

rival_regions_calc's People

Contributors

joostsijm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

jan-makarek

rival_regions_calc's Issues

A suggestion

Hello, I found your code and I think it's perfect, but I would like you to add a calculator for earns in a time-lapse, so you could know for example, how much money will you earn in 24hs, depending on hospitals, energy, level and the other things.
Thank you for use your time making this contribution.

dep bonus and energy ?

thats nice work but i dont understand some thing. so i cant calculate true wage.
what is dep bonus? i ask dep bonus becasuse my undestanding dep bonus is state resource bonus but there The value is displayed as a percentage and it can be max %10. But your test dep bonus value is 19. so i cant understand. and why energy=1.9 in test_work_production.py.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.