Tamás Bálint Misius
4f0c365e05
Preprocessor purge round 19: Split and minimize usage of Config.h
...
Also mostly banish it from other headers, and shuffle standard header includes to minimize cross-contamination between headers.
2023-01-27 09:27:32 +01:00
Tamás Bálint Misius
27ddf78e0c
Preprocessor purge round 9: XCELLS and YCELLS
2023-01-27 09:26:39 +01:00
Tamás Bálint Misius
9542f98b82
Preprocessor purge round 7: Config.template.h
2023-01-27 09:26:38 +01:00
Tamás Bálint Misius
fdfa206a3c
Preprocessor purge round 5: M_PI
2023-01-27 09:26:38 +01:00
Tamás Bálint Misius
3eb1609934
Preprocessor purge round 4: misc function macros
2023-01-27 09:26:38 +01:00
Tamás Bálint Misius
3a591b8539
Preprocessor purge round 1: simulation constants
2023-01-27 09:26:36 +01:00
Ksawi
62129e3d34
Add BIZR/BIZG/BIZS ctype serialization
2023-01-17 13:10:10 -05:00
jacob1
4907b84a84
Fix white LIFE being created in some cases, such as from EXOT+NEUT
...
The default for v is -1, which gets interpreted as a GoL rule with all bits set. Now, it will default to builtin-type GOL when v is -1.
2022-12-29 23:56:50 -05:00
jacob1
2a83d49979
Make CRMC immune to ACID, fixes #851
2022-12-27 11:48:15 -05:00
Tamás Bálint Misius
3e3ee8a722
Convert hmap data to gradients
2022-12-25 11:09:08 +01:00
Cracker1000
81bd1fd9e7
Make GLAS strengthening reaction more controllable and not so arbitrary ( #856 )
2022-12-22 21:36:50 -05:00
jacob1
888e0f2065
Remove pmap hack in BOMB.cpp
2022-12-20 23:59:17 -05:00
CanGonenc
ed9d405742
FIRE.cpp: minor improvements on readibility ( #872 )
2022-12-20 20:39:10 -05:00
Jakav-N
0e361c170c
Add inverted element filtering to CONV with tmp2 set to 1 ( #871 )
2022-12-07 12:43:21 +01:00
catsoften
510424363b
Replace max/min pressure with constants ( #870 )
2022-12-07 12:07:46 +01:00
catsoften
5d66533f23
Make stickman movement strength independent of gravity ( #857 )
2022-09-25 14:49:43 +02:00
Rebmiami
ae32470c9c
Make QRTZ slightly change color while growing ( #852 )
2022-08-11 06:20:33 +02:00
catsoften
6aa68adbf4
Add custom gravity mode and replace hardcoded gravity interactions ( #820 )
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2022-07-31 08:19:16 +02:00
Tamás Bálint Misius
c603c41b92
Fix PIPE graphics hack giving Lua graphics functions bad particle IDs
2022-07-16 13:27:28 +02:00
Tamás Bálint Misius
fb7132a923
Fix LITH conducting through INSL
2022-05-27 06:22:22 +02:00
Tamás Bálint Misius
c7e9706295
Let NEUT pass through BGLA
...
GLAS does this, there's no reason for BGLA to not do it also.
2022-05-10 14:27:45 +02:00
jacob1
f70f222a61
Remove inaccuracy in OIL's description
2022-05-02 11:34:33 -04:00
Tamás Bálint Misius
b278eb4393
New WTRV + BCOL -> OIL reaction in presence of PTNM
...
Yes, Factorio is a good game.
2022-05-02 06:14:49 +02:00
Cracker1000
823ff9080e
Remove unnecessary .life change from PSNS
2022-04-18 14:39:11 -04:00
cracker1000
29ed52d50e
Fix find mode not highlighting WARP particles
2022-04-10 11:52:47 +02:00
Departing
d5f94f4718
Added chemically strengthening GLAS ( #837 )
2022-04-04 23:17:08 -04:00
jacob1
14348437a6
Fix TRON being unable to pathfind to the top and left edges of the screen
2022-03-18 18:13:01 -04:00
jacob1
477909d00f
Redo code that makes SOAP float on OIL
...
Rather than hacking velocity, do it directly through can_move. Add a special case to make it slowly float upwards, rather than immediate like most weight differences in TPT.
2022-02-21 23:56:52 -05:00
Tamás Bálint Misius
7ab720d847
Fix pipe mirroring ( fixes #750 again)
2022-02-04 09:07:02 +01:00
jacob1
eadd381da9
Fix incorrect RNG call in WARP, code cleanup
...
x velocity was set using .chance instead of .between. This always returned false, meaning vx always was set to .5 giving a rightward bias
2022-01-06 20:29:07 -05:00
Tamás Bálint Misius
ce84e60074
Fix a few warnings
...
I found these looking at ghactions output.
2021-12-09 09:11:47 +01:00
Tamás Bálint Misius
dbd971fb05
Convert float pavg[2] to int tmp3, tmp4
...
Also add GameSave::PressureInTmp3 to check for elements with pressure memory and fix TUNG not sampling pressure on creation. This does not in itself fix #822 because tmp3 and tmp4 are still saved in 16 bits each, so full ctypes still don't fit in tmp3.
2021-12-09 07:49:31 +01:00
jacob1
323c443d2a
Minor LIGH compat fix
...
old LIGH with invalid high .tmp2 will spawn a line of LIGH, rather than disappearing
2021-08-29 14:02:21 -04:00
jacob1
63fe8e46b2
LIGH now lasts longer and expands frame-by-frame, fix LIGH stamping bug
2021-08-26 22:26:55 -04:00
jacob1
e80dc7b114
Preserve GoL deco in older saves; deco on builtin GoL no longer renders when decorations are off
2021-07-14 00:26:21 -04:00
jacob1
943f9d6c03
LITH explodes when overcharged, update charge graphics
2021-07-14 00:17:47 -04:00
jacob1
cea629c6c0
Make LITH->GLAS reaction easier
2021-07-13 23:01:02 -04:00
jacob1
f2d92bc3d7
Don't let GLOW ctype go negative
2021-07-13 21:50:36 -04:00
moonheart08
a014c81ad6
Last minute explosiveness enhancement for LITH ( #788 )
2021-07-10 16:17:58 -04:00
catsoften
c6a52d1425
Prevent ROCK from repeatedly breaking into STNE and reforming under pressure
2021-07-10 00:18:46 -04:00
jacob1
8a788fac78
Misc minor changes to new elements
...
LITH: show .tmp2 in HUD, remove outdated comment
SLCN: update description
ROCK: form under pressure from both normal LAVA and LAVA(STNE), as these are basically the same thing
2021-07-09 22:09:24 -04:00
moonheart08
66c5287824
Adjust color of LITH ( #787 )
2021-07-04 14:55:20 -04:00
catsoften
e97925f0fd
Change PTNM reactions to take pressure from reacting particle's coordinates ( #784 )
2021-06-27 20:27:02 -04:00
jacob1
91a1f19c52
Adjust LITH color slightly so that it isn't the same as CNCT
2021-06-27 18:47:09 -04:00
jacob1
76699d2f7e
Make ROCK harder to get, greatly increase ACID resistance
...
This helps prevent ROCK from appearing in normal situations, which can easily get to pressure > 2 just from the movement of the falling LAVA.
2021-06-27 18:39:51 -04:00
Simon Robertshaw
10a6bb7120
Remove pastel glow on "inactive" GLOW, fix FIRE_ADD variables.
...
FIRE_ADD, firea/r/g/b variables adjusted to work similar to v51.1.
Use RNG to assist with smooth(er) transition from PMODE_FLAT to PMODE_ADD
2021-05-22 21:48:06 +01:00
Sam Robertson
2c207a934e
Makes GLOW element glow under pressure. Fixes #774
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2021-05-22 11:18:31 +02:00
Tamás Bálint Misius
2e16eecae0
Fix a bunch of LDTC and DTEC issues
...
Namely: LDTC GoL detection, ctype-drawing and HUD rendering, alongside DTEC HUD rendering.
2021-04-18 20:32:32 +02:00
moonheart08
a3f5731a43
Add element LITH ( #726 )
...
Co-authored-by: Tamás Bálint Misius <lbphacker@gmail.com>
2021-04-17 00:01:26 +02:00
jacob1
ffb88259d6
Split Simulation::IsValidElement into IsElement and IsElementOrNone
...
Allows finer control over whether you want none included or not.
Fixes some invalid things being allowed for element 0 in legacy lua api
Fixes {ctype} signs showing 0 instead of NONE
2021-04-11 23:20:33 -04:00