This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/simulation/elements
jacksonmj bebe9bd8fd Add a way for photons to set the colour of FILT (major version bump required)
Also add some new FILT modes, and make FILT modes affect BIZR and
BRAY colour in the same way as they affect photon colour. Photons
passing next to DTEC will set the colour of all FILT in a straight
line starting from any FILT adjacent to the DTEC (a bit like an
ARAY beam), and the exact colour of the photon will be used for
FILT interactions instead of the colour based on temperature.

FILT tmp=4: red shift, tmp=5: blue shift. Size of shift determined
by FILT temperature. tmp=6: FILT has no effect on photon colour
(possible before by using invalid tmp modes, but here's a supported
method of doing it. Invalid tmp modes should be automatically replaced
in existing saves).

Also, FILT mode is now described in the HUD.
2013-08-29 17:19:07 +01:00
..
116.cpp D: 2013-05-11 15:08:32 +04:00
146.cpp D: 2013-05-11 15:08:32 +04:00
ACEL.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
ACID.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
AMTR.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
ANAR.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
ARAY.cpp Add a way for photons to set the colour of FILT (major version bump required) 2013-08-29 17:19:07 +01:00
BANG.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
BCLN.cpp Add two new properties for CLNE-like elements 2013-06-10 10:51:55 -04:00
BCOL.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
BGLA.cpp D: 2013-05-11 15:08:32 +04:00
BHOL.cpp D: 2013-05-11 15:08:32 +04:00
BIZR.cpp Lower rounding errors in BIZR code and make it change color both on vertical and horizontal movement. 2013-06-12 20:14:34 +07:00
BIZRG.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
BIZRS.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
BMTL.cpp some more description changes 2013-05-13 22:12:03 -04:00
BOMB.cpp Add back replace mode and specific delete * 2013-06-22 22:48:51 -04:00
BOYL.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
BRAY.cpp D: 2013-05-11 15:08:32 +04:00
BRCK.cpp D: 2013-05-11 15:08:32 +04:00
BREC.cpp some more description changes 2013-05-13 22:12:03 -04:00
BRMT.cpp some more description changes 2013-05-13 22:12:03 -04:00
BTRY.cpp fix PSCN BRAY (tmp = 2) not stopping normal BRAY from going through 2013-05-08 10:29:10 -04:00
BVBR.cpp D: 2013-05-11 15:08:32 +04:00
C5.cpp fix some descriptions 2013-05-03 23:19:16 -04:00
CAUS.cpp D: 2013-05-11 15:08:32 +04:00
CBNW.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
CFLM.cpp CFLM is a gas ... not a liquid. Fixes #116 2013-06-20 22:42:21 -04:00
CLNE.cpp Add two new properties for CLNE-like elements 2013-06-10 10:51:55 -04:00
CLST.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
CNCT.cpp D: 2013-05-11 15:08:32 +04:00
CO2.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
COAL.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
CONV.cpp Add two new properties for CLNE-like elements 2013-06-10 10:51:55 -04:00
CRAY.cpp Add a way for photons to set the colour of FILT (major version bump required) 2013-08-29 17:19:07 +01:00
DCEL.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
DESL.cpp D: 2013-05-11 15:08:32 +04:00
DEST.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
DEUT.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
DLAY.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
DMG.cpp some more description changes 2013-05-13 22:12:03 -04:00
DMND.cpp D: 2013-05-11 15:08:32 +04:00
DRIC.cpp D: 2013-05-11 15:08:32 +04:00
DSTW.cpp Jacob can't into switches 2013-05-21 17:54:37 -03:00
DTEC.cpp Add a way for photons to set the colour of FILT (major version bump required) 2013-08-29 17:19:07 +01:00
DUST.cpp D: 2013-05-11 15:08:32 +04:00
DYST.cpp D: 2013-05-11 15:08:32 +04:00
ELEC.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
Element.cpp fix tpt.set_property setting integers above 255, fix fs.isDir/File, add "Color" as valid property for elements api, fix tpt.display_mode to match tpt, other minor changes 2013-01-21 20:19:34 -05:00
Element.h Implement retrieval of element properties 2012-08-29 22:04:07 +01:00
EMBR.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
EMP.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
ETRD.cpp D: 2013-05-11 15:08:32 +04:00
EXOT.cpp make making VIBR from molten TTAN+EXOT a little easier (molten VIBR slowly kills EXOT) 2013-05-16 15:09:17 -04:00
FIGH.cpp Add two new properties for CLNE-like elements 2013-06-10 10:51:55 -04:00
FILT.cpp Add a way for photons to set the colour of FILT (major version bump required) 2013-08-29 17:19:07 +01:00
FIRE.cpp Remove unnecessary code in legacy part. 2013-03-16 23:16:08 +07:00
FIRW.cpp minor fixes to descriptions (again) 2013-05-18 23:12:37 -04:00
FOG.cpp unhide FOG and RIME elements. TODO: hide VINE from the menu? (seems useless, would make the menu less scrolly) 2013-07-19 21:22:26 -04:00
FRAY.cpp minor fixes to descriptions (again) 2013-05-18 23:12:37 -04:00
FRME.cpp D: 2013-05-11 15:08:32 +04:00
FRZW.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
FRZZ.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
FSEP.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
FUSE.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
FWRK.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
GAS.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
GBMB.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
GEL.cpp redo some brush drawing stuff to remove useless checks, and to allow for replace mode in the future 2013-05-16 00:20:07 -04:00
GLAS.cpp D: 2013-05-11 15:08:32 +04:00
GLOW.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
GOLD.cpp fix PSCN BRAY (tmp = 2) not stopping normal BRAY from going through 2013-05-08 10:29:10 -04:00
GOO.cpp D: 2013-05-11 15:08:32 +04:00
GPMP.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
GRAV.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
GUNP.cpp some more description changes 2013-05-13 22:12:03 -04:00
H2.cpp some more description changes 2013-05-13 22:12:03 -04:00
HSWC.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
ICEI.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
IGNT.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
INSL.cpp D: 2013-05-11 15:08:32 +04:00
INST.cpp D: 2013-05-11 15:08:32 +04:00
INVIS.cpp some more description changes 2013-05-13 22:12:03 -04:00
INWR.cpp D: 2013-05-11 15:08:32 +04:00
IRON.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
ISOZ.cpp some more description changes 2013-05-13 22:12:03 -04:00
ISZS.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
LAVA.cpp Fix solidification temperature of molten TUGN 2013-05-04 17:19:25 +01:00
LCRY.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
LIFE.cpp D: 2013-05-11 15:08:32 +04:00
LIGH.cpp move some elements around 2013-05-04 19:50:11 -04:00
LNTG.cpp D: 2013-05-11 15:08:32 +04:00
LO2.cpp D: 2013-05-11 15:08:32 +04:00
LOLZ.cpp D: 2013-05-11 15:08:32 +04:00
LOVE.cpp D: 2013-05-11 15:08:32 +04:00
LRBD.cpp D: 2013-05-11 15:08:32 +04:00
MERC.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
METL.cpp Fix description: METL does not break under pressure 2013-05-19 21:46:55 +01:00
MORT.cpp D: 2013-05-11 15:08:32 +04:00
MWAX.cpp D: 2013-05-11 15:08:32 +04:00
NBHL.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
NBLE.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
NEUT.cpp fix NEUT not setting off DEUT directly under it (save 1236560) 2013-06-22 12:39:44 -04:00
NICE.cpp some more description changes 2013-05-13 22:12:03 -04:00
NITR.cpp D: 2013-05-11 15:08:32 +04:00
NONE.cpp change some wall descriptions a little 2013-06-23 20:40:19 -04:00
NSCN.cpp D: 2013-05-11 15:08:32 +04:00
NTCT.cpp D: 2013-05-11 15:08:32 +04:00
NWHL.cpp D: 2013-05-11 15:08:32 +04:00
O2.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
OIL.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
PBCN.cpp Add two new properties for CLNE-like elements 2013-06-10 10:51:55 -04:00
PCLN.cpp Add two new properties for CLNE-like elements 2013-06-10 10:51:55 -04:00
PHOT.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
PIPE.cpp save more settings in powder.pref like ngrav_enable, aheat_enable, pretty powders, and debug hud. Also save ambient heat in saves, and add a warning in the intro text in betas that you can't save publically 2013-07-02 15:09:00 -04:00
PLEX.cpp D: 2013-05-11 15:08:32 +04:00
PLNT.cpp fix sim.loadStamp return value, remove VINE_MODE 2013-06-27 12:10:55 -04:00
PLSM.cpp D: 2013-05-11 15:08:32 +04:00
PLUT.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
PPIP.cpp Finished first pass-through for all elements. 2013-02-28 00:40:36 -05:00
PQRT.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
PRTI.cpp minor fixes to descriptions (again) 2013-05-18 23:12:37 -04:00
PRTO.cpp minor fixes to descriptions (again) 2013-05-18 23:12:37 -04:00
PSCN.cpp D: 2013-05-11 15:08:32 +04:00
PSNS.cpp some more description changes 2013-05-13 22:12:03 -04:00
PSTE.cpp D: 2013-05-11 15:08:32 +04:00
PSTN.cpp fix bug where PSTN would write past tempParts and into other things, like corrupting TRON colors and making it all blue 2013-07-10 21:01:34 -04:00
PSTS.cpp D: 2013-05-11 15:08:32 +04:00
PTCT.cpp fix PTCT melting temperature, seems to have been broken in 525f87fd6b , fixes #108 2013-06-20 23:01:41 -04:00
PUMP.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
PVOD.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
QRTZ.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
RBDM.cpp D: 2013-05-11 15:08:32 +04:00
REPL.cpp some more description changes 2013-05-13 22:12:03 -04:00
RIME.cpp unhide FOG and RIME elements. TODO: hide VINE from the menu? (seems useless, would make the menu less scrolly) 2013-07-19 21:22:26 -04:00
SALT.cpp D: 2013-05-11 15:08:32 +04:00
SAND.cpp D: 2013-05-11 15:08:32 +04:00
SHLD1.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
SHLD2.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
SHLD3.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
SHLD4.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
SING.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
SLTW.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
SMKE.cpp D: 2013-05-11 15:08:32 +04:00
SNOW.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
SOAP.cpp Soap freezing temp is -25C now 2013-08-15 22:02:24 +07:00
SPAWN2.cpp stickmen element defaults to right selected element if possible, or else still DUST 2013-07-18 17:57:04 -04:00
SPAWN.cpp stickmen element defaults to right selected element if possible, or else still DUST 2013-07-18 17:57:04 -04:00
SPNG.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
SPRK.cpp redo some brush drawing stuff to remove useless checks, and to allow for replace mode in the future 2013-05-16 00:20:07 -04:00
STKM2.cpp Add two new properties for CLNE-like elements 2013-06-10 10:51:55 -04:00
STKM.cpp 'n' to toggle Newtonian Gravity, quickoption tooltips show which keys you need to press to toggle them 2013-07-15 13:09:19 -04:00
STNE.cpp D: 2013-05-11 15:08:32 +04:00
STOR.cpp Add two new properties for CLNE-like elements 2013-06-10 10:51:55 -04:00
SWCH.cpp D: 2013-05-11 15:08:32 +04:00
TESC.cpp some more description changes 2013-05-13 22:12:03 -04:00
THDR.cpp some more description changes 2013-05-13 22:12:03 -04:00
THRM.cpp Narrowed loops for all elements in the first list. 2013-03-16 23:03:02 +07:00
TRON.cpp some more description changes 2013-05-13 22:12:03 -04:00
TSNS.cpp New Element: Pressure sensor 2013-05-04 20:28:28 -04:00
TTAN.cpp some more description changes 2013-05-13 22:12:03 -04:00
TUNG.cpp fix bug where saving and loading elements in saves relied on the name being consistent between versions. The palette should only be used for lua elements 2013-07-15 17:42:43 -04:00
URAN.cpp D: 2013-05-11 15:08:32 +04:00
VIBR.cpp fix CFLM making VIBR unable to explode 2013-05-17 12:44:18 -04:00
VINE.cpp change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
VOID.cpp D: 2013-05-11 15:08:32 +04:00
WARP.cpp fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
WATR.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
WAX.cpp D: 2013-05-11 15:08:32 +04:00
WHOL.cpp D: 2013-05-11 15:08:32 +04:00
WIFI.cpp WIFI lines aren't drawn in persistent mode, and are based on current temp, not tmp, so they work when paused 2013-07-13 12:06:43 -04:00
WIRE.cpp minor fixes to descriptions (again) 2013-05-18 23:12:37 -04:00
WOOD.cpp D: 2013-05-11 15:08:32 +04:00
WTRV.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00
YEST.cpp reduce rand() chances to 5x the old values in elements that were changed to 3x3 loop checks instead of 5x5. Also some other fixes I found when looking at what had been changed. 2013-05-20 11:26:51 -04:00