diff options
Diffstat (limited to '057static_dispatch.cc')
-rw-r--r-- | 057static_dispatch.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/057static_dispatch.cc b/057static_dispatch.cc index fa77cbde..5401c775 100644 --- a/057static_dispatch.cc +++ b/057static_dispatch.cc @@ -114,6 +114,7 @@ void replace_best_variant(instruction& inst) { best_score = current_score; } } + // End Instruction Dispatch(inst, best_score) } long long int variant_score(const instruction& inst, recipe_ordinal variant) { @@ -139,6 +140,7 @@ long long int variant_score(const instruction& inst, recipe_ordinal variant) { return -1; } } + // the greater the number of unused ingredients, the lower the score return 100 - (SIZE(Recipe[variant].products)-SIZE(inst.products)) - (SIZE(inst.ingredients)-SIZE(Recipe[variant].ingredients)); // ok to go negative } |