forked from Mirrors/openclonk
cf7469043d
The production cost method returns an array of material cost arrays, but their format has changed. Instead of [<default resource>, <cost>, <substitute(s)>] it now returns an array of proplists [{Resource = optionA, Amount = costA}, {Resource = optionB, Amount = costB}] so that there are fewer cases to keep in mind: No "are there substitutes?", but you can simply check all variants and pick the best. This also allows different substitutions, for example "2 earth or 3 sand" is now possible. |
||
---|---|---|
.. | ||
System.ocg | ||
Map.bmp | ||
Scenario.txt | ||
Script.c |