New Recipie System (Suggestion+Discussion)

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    This system aims to avoid exploits like 2 Lava to 2 extra hardened hull (4 credits to 20'000 credits)
    ..EDIT: I made some points more clear. (why Lava has a factor of two and Basic Hull changed to Grey hull in example)


    I don't like long introductions, here are the details - clean and short:



    Each item has a cost (already done in blockconfig)

    Each item also has a list of raw materials and a number of how many of each are required - relative to the others, not an even number (currently we have randoom recipies).

    Either a global setting or each item has a factor how much the results are worth compared to the ingredients (we don't have this jet).



    Example:

    Grey hull: cost = 125 credits, factor = 1 (means, that the results of fabrication tends to be worth equal to all ingredients, tendence weight = share of "Basic hull"-credits on total)

    Lava: cost = 2 credits, factor = 2 (means, that results of fabrication tends to be worth twice as much as the ingredients, tendence weight = share of "Lava"-credits on total)

    Hardened Grey Hull: cost = 1200 credits. ingredients (3 Basic Hull : 2 Lava - means 3 basic hull for each two Lava)



    Resulting recipie and calculations:

    2* Lava.cost * Lava.factor = 8 credits

    3* GreyHull.cost * GreyHull.factor = 375 credits.

    Sum = 383 credits.

    A number which can be divided through both:

    3* 383 (in), 1*1200 (out): 1200 (