Mark
00b1b37787
Renamed Library_Tank to Library_PipeControl
...
The library did not depend on the Library_LiquidContainer script at all,
removed that include and added it to the previous includers.
Removed the IsLiquidTank() identifier, because it was unused.
2018-12-27 21:21:53 +01:00
Mark
94e200f201
Fix smoke and gravity issue
...
Smoke used to fly higher with gravity 40 than with gravity 10. Fixed
this by using a start value. At default gravity, light smoke will fly
rise a little higher now, and heavy smoke behaves the same.
With higher gravity the smoke may fall to the ground now.
2018-12-27 20:30:58 +01:00
Mark
d0756e3b1c
Producer: Allow overloading where the producer takes components from
2018-12-27 19:51:19 +01:00
Mark
68bb07f162
Allow more options for customization in the resource selection icons
2018-12-27 17:45:32 +01:00
Mark
3f2ee5080d
Limit liquid input to the maximum available amount
2018-12-25 16:53:47 +01:00
Mark
1c9164b4be
Collect cut pipes to Clonk inventory, if possible
2018-12-25 15:53:51 +01:00
Mark
f5b1279cce
Formatted code
2018-12-25 15:16:38 +01:00
Mark
431456d1fa
Use new library in pump
2018-12-25 11:13:01 +01:00
Mark
8a26454f3c
Library: Resource selection
...
The resource/material selection from the pump was practical, maybe even
applicable for cable cars and the like. Extracted a separate library for
that.
2018-12-25 11:11:44 +01:00
Mark
bab1b7ee90
Extracted actual producer logic||Certain external projects have different systems and want to just use the logic on their own, without copy & paste of the file contents.
2018-12-21 21:29:45 +01:00
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
Mark
36dbbd27e1
Formatted code
2018-12-21 14:26:24 +01:00
Mark
c6254c2512
Added more producer tests
2018-12-21 14:05:30 +01:00
Mark
2ed69b96a5
Added producer test for substitute components
2018-12-21 11:57:39 +01:00
Mark
b73169616b
Fix producer test
...
Updating the values for substitutions was forgotten in 808e7fa
, leading
to a failing test 5.
2018-12-21 11:49:56 +01:00
Mark
6bdb4275f7
Formatted code, no change in functionality
...
Brackets, protected/private func => func, whitespaces
2018-12-21 11:25:19 +01:00
Mark
d9bc1d9142
Added callback for production progress
2018-12-21 11:08:10 +01:00
Mark
9deab8e6a9
Fix the logic again
...
Otherwise you can exit containers without an entrance area.
2018-12-21 09:56:19 +01:00
Mark
b35a58a7fc
Removed unused constants
...
This was a weird menu thing that I added about 2 years ago, and it is
not very useable, and not used :)
2018-12-21 09:10:33 +01:00
Mark
ed514b7716
Added option for ignoring contents in the interaction menu
...
Also ignore Clonks as "inventory items" if they are contained.
2018-12-21 09:01:20 +01:00
Mark
fcf2af1937
Fix not being able to exit a structure
...
It seems that the default structures have the entrance close to the
offset, so that there is an overlap and can_be_entered is true even
inside the structure.
In my case the structure offset and entrance area do not overlap, so you
could unfortunately not leave the structure.
2018-12-20 23:49:39 +01:00
Clonkonaut
c6d5c5044f
Rework interaction menu into a new style. Also, style overloads are easily possible.
...
Because I did this in the test scenario first, it wasn't really possible to encapsulate different steps, sorry!
2018-10-15 17:38:22 +02:00
Nicolas Hake
907c701fc6
Save scenario: Disable all warnings in auto-generated file
2018-07-24 14:20:09 +02:00
Nicolas Hake
4c5dfac952
Remove or use unused variables in Objects, System
2018-07-24 14:19:26 +02:00
Nicolas Hake
5ef52f2450
Fix variable_out_of_scope warnings in Worlds
2018-07-23 12:30:23 +02:00
Nicolas Hake
14ed608941
Fix variable_out_of_scope warnings in Missions
2018-07-23 12:30:23 +02:00
Nicolas Hake
7fb098c4df
Fix variable_out_of_scope warnings in Defense
2018-07-23 12:30:23 +02:00
Nicolas Hake
1ef6b7a7fc
Fix variable_out_of_scope warnings in Arena
2018-07-23 12:30:23 +02:00
Nicolas Hake
1bb728b047
Fix variable_out_of_scope warnings in Objects
2018-07-23 12:12:23 +02:00
Nicolas Hake
b82cd52765
HotIce: Add closing brace omitted in c3ef039
2018-07-23 12:10:02 +02:00
Nicolas Hake
a73c1998e4
Fix suspicious_assignment warnings in World
2018-07-23 10:45:52 +02:00
Nicolas Hake
c4f47a6329
Fix suspicious_assignment warnings in Parkour
2018-07-23 10:45:52 +02:00
Nicolas Hake
c3ef039872
Fix suspicious_assignment warnings in Arena
2018-07-23 10:45:52 +02:00
Nicolas Hake
8950db9cb4
Fix incorrect assignment instead of comparison in TutorialGuide
2018-07-23 10:45:52 +02:00
Nicolas Hake
30aa6abb55
Move PlaceBatches into System.ocg
2018-07-23 10:45:52 +02:00
Nicolas Hake
05ca450111
Fix suspicious_assignment warnings in Missions
2018-07-23 10:45:52 +02:00
Nicolas Hake
806357e283
Fix suspicious_assignment warnings in Defense
2018-07-23 10:45:52 +02:00
Nicolas Hake
808a90e5af
Fix suspicious_assignment warnings in Decoration
2018-07-23 10:45:52 +02:00
Nicolas Hake
e024bef54b
Fix suspicious_assignment warnings in Objects, System
2018-07-23 10:45:52 +02:00
Maikel de Vries
ddc68d7ad3
column: proper rotation and allow smaller sizes
2018-07-04 08:30:53 +02:00
Maikel de Vries
c3b114042d
melt snow and ice much faster while submerged in lava
2018-07-04 08:17:11 +02:00
Maikel de Vries
c47b790468
remove recently introduced debug logs
2018-06-25 08:49:10 +02:00
Maikel de Vries
7a933e81b7
windbag: scenario save full load to prevent air intake at scenario start
2018-06-23 15:36:20 +02:00
Maikel de Vries
5bb9fa228a
ladder: climb up and down smoothly when grabbing ladder
...
I don't know the reason for not having this, but now we mimic normal wall climbing behaviour which is much smoother and leads to faster game play.
2018-06-23 10:05:45 +02:00
Maikel de Vries
b11a25db4b
fire: only reduce own fire strength if incineration of nearby object was successful
2018-06-23 10:05:45 +02:00
Maikel de Vries
446564f703
implement eternal flame saving
2018-06-23 10:05:45 +02:00
Martin Strohmeier
a51560ce4f
Add Nautilus to music folder
2018-04-21 15:13:32 +02:00
Maikel de Vries
899fbaa867
cable cars: let sawmill send empty hoist to pickup trees
2018-04-16 11:13:32 +02:00
Maikel de Vries
a4d20d79d5
cable cars: extend order interface and let producer order more components at a time
2018-04-16 11:13:32 +02:00
Mark
75a82e172a
Added a generic ambient sound object
...
Is more versatile than Ambience_Zicadas. Could need some editor
functions. Backported from OC Classic.
2018-04-14 14:12:52 +02:00