Commit Graph

443 Commits

Author SHA1 Message Date
savask
71acd578b6 (REALISTIC) Better air<->body heat conduction. Air density now
influences on it (things don't heat vacuum).
2012-03-09 23:45:36 +07:00
savask
290cac8b7e Volume from heat change (for REALISTIC) 2012-03-02 21:31:48 +07:00
savask
f41f96f598 A new unstable REALISTIC option. No guarantees - but more realistic behaviour.
Better diffusion and heat transition.
2012-02-25 19:55:03 +07:00
jacksonmj
3702438482 Prevent gaps in beams of photons from powered clone 2012-02-19 00:49:04 +00:00
jacksonmj
a722d7a396 Change wifi so that it always takes one frame to transmit 2012-02-05 22:45:29 +08:00
jacksonmj
6bdc05cc40 Separate loop for updating life, and add SPRK life checks to most electronics 2012-02-05 22:45:29 +08:00
jacksonmj
eaf2af6d40 Another change to the eval_move check in create_part
Creating a particle where there was a wall but no existing particle was
broken, since eval_move returns 1 for moving into empty space.
2012-01-26 22:15:56 +08:00
jacksonmj
a9c198dd46 Fix WARP destroying DMND
If WARP moved in its update function, then the x/y variables in the main
loop were out of date. When the normal movement code ran, changes were
made to the wrong place in the pmap. This resulted in some particles
with low IDs being destroyed by the addition of WARP+SING.

This change might also fix the WARP+PRTI crash that I never managed to
reproduce.
2012-01-25 21:33:22 +08:00
jacksonmj
748a528fe0 Only check the bits actually used for wavelength in photon ctype
Fixes black photons not being killed after passing through pipe
2012-01-25 21:33:22 +08:00
jacksonmj
edcf6d7b2f Whoops, eval_move returning 1 should not allow particle creation 2012-01-25 21:33:20 +08:00
jacksonmj
bdf277e687 Implement PROP_NEUTABSORB 2012-01-25 21:33:20 +08:00
jacksonmj
16ea042bab Make transform_save work with new save functions
Conflicts:

	src/powder.c
2012-01-25 13:31:05 +00:00
jacksonmj
56b45c982b eval_move in create_part if a particle already exists in the requested position
To allow Lua tpt.create to create photons in glass
2012-01-05 08:46:11 +08:00
jacksonmj
f04577598b Fix creation of invalid wall tiles by sign tool 2011-12-29 06:39:59 +08:00
Simon Robertshaw
a716c59610 Added some heat to TNT and IGNC 2011-12-21 17:39:53 +00:00
Simon Robertshaw
810adc81fe Use reduced resolution gravity maps for improved performance 2011-12-19 21:35:40 +00:00
Simon Robertshaw
d6953be3a8 New element: Ignition cord 2011-12-19 14:29:01 +00:00
jacksonmj
934d1da66e Move Newtonian gravity into a new file 2011-12-18 22:04:47 +08:00
jacksonmj
20dd54f36e Set BIZR/G/S ctype when loading a save, set BIZS ctype in create_part 2011-12-10 23:53:42 +08:00
Jacob1
939a599b80 Fix tnt/prop crash, it was using up all the memory on the computer 2011-12-06 16:08:05 +08:00
Simon Robertshaw
d17336b467 Allow pipe to grab from photon map, BRAY beam takes temp from ARAY 2011-11-26 12:44:52 +00:00
Simon Robertshaw
876c861c42 Fix LCRY/ELEC infinite loop, BIZR turns photons into electrons, SING explodes with electrons, electrons react with deut. 2011-11-21 00:48:39 +00:00
Simon Robertshaw
f508013332 New tables in lua API: el and version: element ids and version info respectively. New lua functions: element (get element id from name) and element_func for hooking/overriding element update functions 2011-11-18 19:38:08 +00:00
Simon Robertshaw
856f9574b6 Change LCRy workings and add ELEC (wip) 2011-10-30 16:22:33 +00:00
Simon Robertshaw
5ab1ab8b46 Fix FIGH loading and bad variable names 2011-10-26 21:34:24 +01:00
savask
03902ec9a4 Made a special structure for stick mans. 2011-10-26 15:36:00 +01:00
savask
5652ecc5c2 Some work on lightning for stick mans and fighters. 2011-10-26 15:35:00 +01:00
savask
a075fd5a9a Fix one merging error, and adjusted fighters' array. 2011-10-26 15:34:54 +01:00
savask
00d604820d Added fighters. 2011-10-26 15:31:55 +01:00
Simon Robertshaw
b549688fdd Compatibility with MSVC - devast8a 2011-10-23 17:59:04 +01:00
jacksonmj
034cd4ed62 FILT subtracts photon colours when tmp=3 2011-10-19 17:47:40 +08:00
jacksonmj
9fed467a28 Fix infinite temperatures
May also need -fno-finite-math-only, but it works fine for me without it
2011-10-19 17:47:39 +08:00
jacksonmj
633c3da401 Fix crash with abnormal ICE ctype 2011-10-15 01:04:59 +08:00
jacksonmj
8e877594c9 Allow STKM to use lightning 2011-10-15 01:04:58 +08:00
Simon Robertshaw
37e15bf3ad Replace use of gravy and gravf with gravxf and gravyf 2011-10-14 13:18:00 +01:00
jacksonmj
af21bcd353 Some changes to LIGH/EMP/TESC based on changes in MaksProg's mod v0.3
Weaker and shorter EMP flash.
TESC has correct tmp value when created with replace mode.
LIGH harms STKM.
Gravity affects LIGH in create_part if p==-2, instead of in update_LIGH,
so that TESC lightning is not affected by gravity.
2011-10-14 00:33:22 +08:00
jacksonmj
2f46dca7c1 Some work on DEST, EMP, LIGH
Change indentation to tabs, respect temperature limit (if a hotter
reaction is required, should raise temp limit instead of ignoring it).

DEST: fix TYPE_SOLID check, and prevent it displacing DMND
EMP: randomise DLAY delay instead of heating it (since DLAY does not melt
and does not transfer heat)

Fix nearest_part so that t=-1 does not include dead particles
2011-10-14 00:33:20 +08:00
jacksonmj
107e77a1a1 Prevent extra particles at the end of 1px lines 2011-10-14 00:33:20 +08:00
Simon Robertshaw
6178bb4605 Fixes for LIGH and TESC, LIGH observes gravity setting 2011-10-11 10:34:33 +01:00
Simon Robertshaw
e1cd3cc180 Fix erronous assignment and add MaksProg to contributors list 2011-10-11 00:25:43 +01:00
Simon Robertshaw
a87407f0df More functionality for LIGH, better english on element descriptions 2011-10-10 23:55:42 +01:00
Simon Robertshaw
bf8258ee30 Elements, LIGH, TESC, EMP and DEST thanks to MaksProg 2011-10-10 23:41:19 +01:00
Simon Robertshaw
ee47b2dd68 Pretty effect when drawing powders, activate with 'n' 2011-10-09 13:55:16 +01:00
jacksonmj
cb30cbcce7 Fix typo allowing liquids to teleport through solids 2011-10-07 20:18:07 +01:00
jacksonmj
ae3241ec80 Fix WHOL/VENT not eating ANAR, and fix PVOD eating PHOT/NEUT when off 2011-10-07 04:57:09 +08:00
Simon Robertshaw
f5a9f43b77 Added extra functions to FILT (determined by tmp, modes are convert, filter and add, convert is default). Added property edit tool, changes the properties of materials 2011-09-30 13:57:32 +01:00
cracker64
07f8087907 Prevent water equalization from moving onto particles. 2011-09-23 10:17:41 -04:00
Simon Robertshaw
24b4478136 Added Caustic gas, similar to acid, created with acid and water vapour 2011-09-23 12:48:24 +01:00
cracker64
848fa77a82 Fix walls with water equalization.
Also annoying inlines for visual studio.
2011-09-21 22:05:19 -04:00
cracker64
a73fc9db06 Water level equalization test! In options menu, or tpt.watertest() . 2011-09-21 18:36:35 -04:00