Created
June 16, 2021 14:05
-
-
Save CopperyMarrow15/9461b64fa052b14ed8cc90be74298b30 to your computer and use it in GitHub Desktop.
Astroneer Soil to Resource Calculator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources = {'compound':4, 'resin':4, 'organic':4, 'clay':3, 'quartz':2, 'graphite':1, 'ammonium':.5, 'laterite':1.5, 'malachite':1.5, 'wolframite':1, 'hematite':1, 'sphalerite':3, 'titanite':.75, 'lithium':.375} | |
resource = small_canisters = medium_canisters = None | |
print('This calculator will calculate the amount of a resource one can obtain in Astroneer from a specified amount of soil. The resources that can not be obtained with a Soil Centrifuge can be obtained with a Trade Platform by obtaining Clay with a Soil Centrifige, smelting it, crafting it into a Drill Mod 1, and shredding it for 1.5 Scrap.\nby CopperyMarrow15') | |
while resource not in resources.keys(): | |
resource = input('(Type a resource that can be traded for.) convert soil to ').lower() | |
def small_canister_input(): | |
global small_canisters | |
try: | |
small_canisters = int(input('(Type a number.) How many Small Canisters worth of soil do you want to check for? ')) | |
except: | |
small_canister_input() | |
def medium_canister_input(): | |
global medium_canisters | |
try: | |
medium_canisters = int(input('(Type a number.) How many Medium Fluid & Soil Canisters worth of soil do you want to check for? ')) | |
except: | |
medium_canister_input() | |
small_canister_input() | |
medium_canister_input() | |
print('Your soil is worth', str(resources[resource] * (small_canisters + medium_canisters * 24)), resource + '.') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment