Skip to content

Cerbers/FacilityCalc

Repository files navigation

FacilityCalc

A resource calculator for Foxhole facility production. Calculate the total basic resources (Salvage, Coal, Sulfur, Rare Metals) needed to build vehicles and structures. Main aim is to estimate 'worst case scenario' so the conversion rates are fixed for materials.

Usage

Requires Python 3.9+

python main.py
  1. Choose whether to display facility material costs (type 1) or skip
  2. Select products by name (case-insensitive)
  3. Enter the quantity for each product
  4. Type done to calculate totals

Available Products

Warden: Chieftain, Thornfall, Outlaw, Blinder, RAC, Skycaller, King Jester, MG BT, Flame BT, Stain SPG, Frigate, Warden Submarine, Firebrand, Cullen Predator, Callahan, Mercy

Colonial: Ares, Titan, Trident, Conqueror, Poseidon

Faction Neutral: RSC, Storm Cannon, Underground Fortress, Intel Center, Bowhead, Longhook, Bluefin

Development

Setup

poetry install

Dependencies

  • pytest - Unit testing
  • mypy - Static type checking

Running Tests

poetry run pytest

Type Checking

poetry run mypy .

Known Limitations

  • current calculation is based off worst case scenario (i.e. worst coal to coke conversion rates, PCmats made only using material beams recipe, etc.), at the moment switching between states is not being considerate

About

Foxhole CLI Facility Products Calculator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages