Commit Graph

44 Commits (master)

Author SHA1 Message Date
Mark 67ee58d4d7 Fix unit test: Forgot adding materials for TeleGlove 2017-12-29 12:09:01 +01:00
Maikel de Vries 42c8dbc2c8 make producer continue directly after production finishes 2016-12-25 17:48:07 +01:00
Maikel de Vries 60dfc86c55 fix power system test 22 2016-12-17 17:37:26 +01:00
Maikel de Vries 5846d33692 add another test with pumps to the power system tests 2016-12-17 17:30:18 +01:00
Mark 1c1ea38efa Renamed the liquids IDs
Omitted the prefix "Liquid_".
2016-03-25 19:11:55 +01:00
Mark c0b783c976 Power: Fix unit test 20 2016-03-25 16:13:11 +01:00
Mark 8749300622 Fix unit tests: Some code adjustments were forgotten in the other commits. 2016-03-16 22:44:48 +01:00
Mark 0a77b58b6a Steam Engine: Use fuel as liquid, finished
The pump was blocked, because the steam engine did not insert enough material
2016-02-27 14:35:38 +01:00
Mark 7894fb0fc6 Steam Engine: Use fuel liquid, Work in progress 2016-02-27 12:41:46 +01:00
Mark 1dbb81554d Refactoring: Removed the flagpole from power system test #21 2016-02-16 21:07:50 +01:00
Mark be8fd0833c Oil-burning steam engine
The steam engine can burn oil as fuel now. Added test to power system unit test. Still needs support for actually getting oil into the engine.
Fixed a bug in LiquidContainer that would return no liquid if the entire contents are removed. Added unit test for said bug.
Fixed overspilling of connected liquid containers. Pump no longer counts as a liquid container/tank, so that it still spills liquid if no drain is connected.
2016-02-16 21:04:06 +01:00
Mark a0fb0473b3 Barrels function as fuel now.
The steam engine does not remove the barrels, it just empties them. Made power system unit test 19 end if both pumps are pumping, this seems to be the intention of the unit test. Added power system unit test 20: Steam engine fueled by oil barrels.
2016-02-16 21:04:01 +01:00
Mark 611655a9ce Removed comments 2016-02-16 21:03:38 +01:00
Mark 2099146839 Adjusted unit test so that it works with the new interface 2016-02-16 21:03:34 +01:00
Mark 371fdaeaa6 Refactoring: Pump interface names
The pump uses the same function names as the liquid tank now. This is a preparation for the consolidation of the two.
2016-02-16 21:02:56 +01:00
Maikel de Vries 775746d78d fix power system tests (due to object changes) 2016-01-20 12:07:46 +01:00
Maikel de Vries 7a8de4fc55 fix power loss bug when producer moves out of base area (#1447) 2015-11-28 18:05:17 +01:00
Maikel de Vries d5ac4e338f power system test: move producer outside of energy range 2015-11-26 23:18:20 +01:00
Maikel de Vries b1228bea2f additional power system test for bug #1447 2015-11-22 11:34:24 +01:00
Maikel de Vries 5b12d6c240 deactivate power producers correctly on over production 2015-03-09 21:50:19 +01:00
Maikel de Vries ca04f00a58 add test for underproduction of power 2015-03-09 18:55:18 +01:00
Maikel de Vries 0ed8c2faa5 fix pumping downwards after source emptyness 2015-03-05 20:40:10 +01:00
Maikel de Vries de8ee9d840 fix flag removal effect on power network 2015-02-11 22:42:35 +01:00
Maikel de Vries cba73bafca implement flag ownership and network change on team switch and hostility change 2015-02-11 00:02:45 +01:00
Maikel de Vries e47a08aaf7 clean up more flag related libraries 2015-02-08 15:28:13 +01:00
Maikel de Vries 38e0e0d299 add a test for testing power system performance 2015-02-07 18:17:49 +01:00
Maikel de Vries b59141f905 remove debug logging from power library 2015-02-04 15:56:02 +01:00
Maikel de Vries a5155f6d88 fixed no power need rule 2015-02-04 12:40:29 +01:00
Maikel de Vries 750945ee1c add a test for player elimination effects on power network 2015-02-04 10:35:16 +01:00
Maikel de Vries 5eef390b44 power priorities are updated before network balancing 2015-02-04 10:35:15 +01:00
Maikel de Vries 17c4049563 separate library for power storage 2015-02-04 10:35:15 +01:00
Maikel de Vries c0ff94eb75 normalize power values to multiples of ten
This makes it easier for internal calculations and that value of 10 now represents a single light bulb. It is advisable to only use multiples of 10 for production and consumption values.
2015-02-04 10:35:15 +01:00
Maikel de Vries e7fa8621e2 fix power consumption of elevator 2015-02-04 10:35:15 +01:00
Maikel de Vries c5e36d8f1f fixed object placement in power test after rebase 2015-02-04 10:35:15 +01:00
Maikel de Vries 9d0e079d7d power library local variables in a single proplist
This prevents clashes, all libraries could use a single proplist named lib_*
2015-02-04 10:35:15 +01:00
Maikel de Vries 2c317888ca wind mill is only power producer for itself 2015-02-04 10:35:15 +01:00
Maikel de Vries 86a7728650 add new power test for power producing pumps 2015-02-04 10:35:15 +01:00
Maikel de Vries eec38a9f17 reimplement power network handling by the flag library 2015-02-04 10:35:14 +01:00
Maikel de Vries ac5f9dbce7 correctly implement handling of steady power producers 2015-02-04 10:35:14 +01:00
Maikel de Vries 2d00588dff new power system (work in progress) 2015-02-04 10:35:14 +01:00
Mark 850bf1b9d4 CreateObject/CreateObjectAbove (#1214)
Renamed CreateObject() to CreateObjectAbove() and replaced all occurrences in script files.
Added CreateObject(), the function may need a rewrite though, see comment in code.
Updated documentation
2015-01-11 19:02:03 +01:00
Maikel de Vries 2d1647ea77 improved prioritizing of power consumers 2014-12-19 21:47:08 +01:00
Maikel de Vries 22dfab63aa clean up scripts of power library 2014-12-19 14:56:01 +01:00
Maikel de Vries d72338f167 add test scenario for power system 2014-10-18 15:41:49 +02:00