summaryrefslogtreecommitdiff
path: root/src/elements/ligh.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-17Remove old codeSimon Robertshaw1-315/+0
2012-06-28Use atan2 for LIGH angle calculationsjacksonmj1-3/+7
atan2 gives the actual angle (in the range -pi to pi). acos and asin just give the principal value (in the range 0 to pi, or -pi/2 to pi/2)
2012-06-26Lightning direction affected by Newtonian gravityjacksonmj1-1/+1
2012-06-10Revert "Make THDR TYPE_ENERGY again, so it goes in photon map"jacksonmj1-2/+2
This reverts commit 8b20bfd764308fddc1280b8a9d030e77503d0b0c. TYPE_ENERGY makes THDR move like photons, and means adjacent particles don't conduct as much heat from it (since the heat conduction code only looks for particles in pmap, not photons). Heat transfer could be fixed by increasing THDR's heat conductivity, but gas or powder movement is probably better than photon movement for THDR.
2012-06-09Make THDR TYPE_ENERGY again, so it goes in photon mapjacksonmj1-2/+2
Will simplify checking for excessive stacking
2012-05-06Added GPLv3+ license headers to all files in src/elements/Aditya Vaidya1-0/+15
2012-03-17Fix glow for deut at lighSimon Robertshaw1-4/+5
2011-10-26Merge latest FIGH additionsSimon Robertshaw1-1/+1
2011-10-26Made a special structure for stick mans.savask1-1/+1
2011-10-25Merge latest with graphicstestSimon Robertshaw1-0/+295
2011-10-23More MSVC fixesSimon Robertshaw1-5/+8
2011-10-14Allow STKM to use lightningjacksonmj1-1/+1
2011-10-13Some changes to LIGH/EMP/TESC based on changes in MaksProg's mod v0.3jacksonmj1-73/+66
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-13Don't heat elements which don't conduct heatjacksonmj1-6/+9
2011-10-13Some work on DEST, EMP, LIGHjacksonmj1-168/+169
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-11Fixes for LIGH and TESC, LIGH observes gravity settingSimon Robertshaw1-12/+38
2011-10-10More functionality for LIGH, better english on element descriptionsSimon Robertshaw1-0/+1
2011-10-10Elements, LIGH, TESC, EMP and DEST thanks to MaksProgSimon Robertshaw1-0/+260