openclonk/planet/Objects.ocd/Libraries.ocd/Structures.ocd
Mark cf7469043d Simplified logic for substitutes
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.
2018-12-21 16:54:43 +01:00
..
DoorControl.ocd update version to 8.0 in DefCore.txt, Scenario.txt and Version.txt 2018-01-28 13:18:46 +01:00
Flag.ocd power system: add functions to check if production and consumption is registered 2018-04-01 20:54:12 +02:00
Power.ocd cable cars: fix finding crossing for power supply when previous fails 2018-04-12 09:21:00 +02:00
Producer.ocd Simplified logic for substitutes 2018-12-21 16:54:43 +01:00
Structure.ocd fix some more structure vertices, also for asymmetric ones when flipped (#1979) 2018-01-31 19:59:41 +01:00
Vendor.ocd fix a bunch of suspicious assignment warnings 2018-04-09 11:53:55 +02:00