openclonk/planet/Tests.ocf/Producers.ocs
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
..
System.ocg Producers: Unit test for halted production 2016-03-19 11:41:49 +01:00
Map.bmp Producers: Basic unit test 2016-03-17 21:51:35 +01:00
Scenario.txt Producers: Basic unit test 2016-03-17 21:51:35 +01:00
Script.c Simplified logic for substitutes 2018-12-21 16:54:43 +01:00