Esempio n. 1
0
def rep_scordite(volume, unit="m3", efficiency=0.691, type="N"):
    # type is "N" normal, "C" condensed, "M" Massive
    # unit can be "m3" volume, or "n" number

    if unit == "m3":
        n_units = floor(volume / 0.3)
    if unit == "n":
        n_units = volume

    process_batch = floor(n_units / 100)

    # Number of minerals reprocessed from a bath of 100 minerals:
    # https://wiki.eveuniversity.org/Asteroids_and_ore#Ore_Chart
    process_dict = {'TRI': process_batch * 346, 'PYE': process_batch * 173}

    if type == "C":
        for key, value in process_dict.items():
            process_dict[key] = floor(value * 1.05)

    if type == "M":
        for key, value in process_dict.items():
            process_dict[key] = floor(value * 1.10)

    for key, value in process_dict.items():
        process_dict[key] = floor(value * efficiency)

    sell_prices = []
    for key, value in process_dict.items():
        # mineralID gives the typeID of the mineral abbreviation,
        # amarr_price_now with type = "sell" gives me best buy order in Amarr
        sell_price = amarr_price_now(mineralID(key), type="sell") * value
        sell_prices.append(round(sell_price))

    total_value = sum(sell_prices)
    return (total_value)
Esempio n. 2
0
def sell_kernite(volume, unit="m3", type="N"):
    # type is "N" normal, "F" fiery, "L" luminous
    # unit can be "m3" volume, or "n" number

    if unit == "m3":
        n_units = floor(volume / 1.2)
    if unit == "n":
        n_units = volume

    if type == "N":
        ID_ = 20
    if type == "F":
        ID_ = 17453
    if type == "L":
        ID_ = 17452

    sell_price = amarr_price_now(ID=ID_, type="sell") * n_units
    return (round(sell_price))
Esempio n. 3
0
def sell_scordite(volume, unit="m3", type="N"):
    # type is "N" normal, "C" condensed, "M" Massive
    # unit can be "m3" volume, or "n" number

    if unit == "m3":
        n_units = floor(volume / 1.2)
    if unit == "n":
        n_units = volume

    if type == "N":
        ID_ = 1228
    if type == "C":
        ID_ = 17463
    if type == "M":
        ID_ = 17464

    sell_price = amarr_price_now(ID=ID_, type="sell") * n_units
    return (round(sell_price))
Esempio n. 4
0
def sell_veldspar(volume, unit="m3", type="N"):
    # type is "N" normal, "C" concentrated, "D" Dense
    # unit can be "m3" volume, or "n" number

    if unit == "m3":
        n_units = floor(volume / 1.2)
    if unit == "n":
        n_units = volume

    if type == "N":
        ID_ = 1230
    if type == "C":
        ID_ = 17470
    if type == "D":
        ID_ = 17471

    sell_price = amarr_price_now(ID=ID_, type="sell") * n_units
    return (round(sell_price))
Esempio n. 5
0
def sell_pyro(volume, unit="m3", type="N"):
    # type is "N" normal, "S" solid, "V" viscous
    # unit can be "m3" volume, or "n" number

    if unit == "m3":
        n_units = floor(volume / 1.2)
    if unit == "n":
        n_units = volume

    if type == "N":
        ID_ = 1224
    if type == "S":
        ID_ = 17459
    if type == "V":
        ID_ = 17460

    sell_price = amarr_price_now(ID=ID_, type="sell") * n_units
    return (round(sell_price))
Esempio n. 6
0
def sell_pyro(volume, unit="m3", type="N"):
    # type is "N" normal, "S" solid, "V" viscous
    # unit can be "m3" volume, or "n" number

    if unit == "m3":
        n_units = floor(volume / 1.2)
    if unit == "n":
        n_units = volume

    if type == "N":
        ID_ = 1224
    if type == "S":
        ID_ = 17459
    if type == "V":
        ID_ = 17460

    sell_price = amarr_price_now(ID=ID_, type="sell") * n_units
    return (round(sell_price))


# Worth most is kernite to sell, then any type of pyroxeres to reprocess