summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
AgeCommit message (Collapse)AuthorFilesLines
2013-08-29Add a way for photons to set the colour of FILT (major version bump required)jacksonmj1-16/+2
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-07-29fix occasional crash when flood fill deletingjacob11-3/+8
2013-07-25fix ctrl+x not deleting all signsjacob11-1/+1
2013-07-18remove specific delete for walls, doesn't work very well and it conflicts ↵jacob11-22/+13
with specific delete for elements Also prevent wall replace mode, could never do anything because walls already replace everything
2013-07-18flood delete will delete walls even if wall delete tool isn't selectedjacob11-15/+17
2013-07-18stickmen element defaults to right selected element if possible, or else ↵jacob11-3/+6
still DUST
2013-07-15fix bug where saving and loading elements in saves relied on the name being ↵jacob11-6/+5
consistent between versions. The palette should only be used for lua elements
2013-07-13particles can't be drawn with the brush inside of walls they don't belong, ↵jacob11-1/+3
fix flood fill delete issue
2013-07-13WIFI lines aren't drawn in persistent mode, and are based on current temp, ↵jacob11-26/+1
not tmp, so they work when paused
2013-07-12update rules to fix some problems and more closely match the current rules. ↵jacob11-1/+1
fixes #126
2013-07-12fixes to wall and particle floodfill. Wall fill ignores particles and always ↵jacob11-32/+27
goes to the edges, while particle fill will only ignore walls it can't exist in, and flood particle erase won't check for walls / edges at all
2013-07-10fix floodfill and prop floodfil with photonsjacob11-29/+29
2013-07-10fix piston bugs, fix crashes, don't use bluescreens when compiled with debug ↵jacob11-1/+1
mode in visual studio
2013-07-09Fixed the bug with SPWN not creating when redoing (Ctrl-Z).Saveliy Skresanov1-0/+4
2013-06-27fix sim.loadStamp return value, remove VINE_MODEjacob11-2/+1
2013-06-24fix version tagging in savesjacob11-2/+2
2013-06-23Add back replace mode and specific delete *jacob11-366/+351
* only usable by Lua
2013-06-21HUD displays the correct name of LIFE particles in the HUD, show mouse ↵jacob11-23/+28
position in HUD on the edges of the screen
2013-06-20fix BRMT always acting like it was created from TUGNjacob11-5/+12
2013-06-10Add two new properties for CLNE-like elementsjacob11-11/+9
the thing CLNE does, drawing upon it will set ctype; and what BCLN does to CLNE - disables #1). Made use of the two new properties
2013-06-09fix NEUT created from DEUT explosions sometimes having the deco color of ↵jacob11-0/+2
previous particles. Also allow the deco editor to color energy particles instead
2013-06-07PHOT can go through PBCN and BCLN, fixes differences in PHOT cloning found ↵jacob11-71/+87
in save id:1213267 also some renaming / reorganizing in init_can_move
2013-06-06GOLD changes photons to yellowjacob11-15/+16
2013-05-21Fix STKM spawns, fix cases.cracker641-72/+60
2013-05-17rename GRAV back to PGRV, fix formatting in generator, remove useless filejacob11-1/+1
2013-05-16lua simulation api functions for drawing with tools / decojacob11-1/+1
2013-05-16remove unneeded / duplicate constants, fix SPC_AIR/other tools so it won't ↵jacob11-88/+17
conflict with lua elements (the 11th one won't work right now)
2013-05-16redo some brush drawing stuff to remove useless checks, and to allow for ↵jacob11-163/+82
replace mode in the future
2013-05-14rename TUGN to TUNG (more popular spelling). Broken BRMT smelts back into TUGNjacob11-58/+99
2013-05-11Togglable lua scriptingSimon Robertshaw1-0/+8
2013-05-08Fix "blow power" for stick man, disable rocket boots on E-hole.Saveliy Skresanov1-1/+1
2013-05-08Rocket boots for stickman, because why notjacksonmj1-0/+5
Pass through gravity wall to activate, fan wall to deactivate. Accelerate with left/up/right keys. Plasma is spawned when accelerating, and STKM is immune to plasma but not other hot elements when rocket boots are enabled. Hold left+right to slow down quickly. STKM spawn element is retained and can still be created while using rocket boots, but it may be difficult to do anything useful with the spawn element whilst spewing hot plasma everywhere.
2013-05-06gol2 array is static size, adding new GoL won't increase memory usage.cracker641-6/+24
2013-05-05Optimize GoL a bit, haven't changed gol2 yet.cracker641-38/+40
2013-05-05fix not being able to draw TUGN under high/low pressurejacob11-7/+1
2013-05-04Fix solidification temperature of molten TUGNjacksonmj1-0/+3
Previously it was 973 K, not the same as the melting point of TUGN
2013-04-30INST flood fill change so that vertical conduction is only prevented for 1px ↵jacksonmj1-4/+4
wire crossings. Needs thorough testing Fixes #129 , and prevents INST diodes when using a 2px vertical crossing a 1px horizontal.
2013-04-07Merge branch 'master' of github.com:FacialTurd/The-Powder-ToySimon Robertshaw1-0/+1
2013-03-25Fix NEUT not going through INVSjacob11-0/+1
2013-03-22Move all GUI source files into gui/Simon Robertshaw1-1/+1
2013-03-16add identifier constants based on the display name to the lua apijacob11-3/+3
2013-03-11Change some old NEUTPENETRATE to NEUTPASS, NEUT should only displace GOO, ↵cracker641-2/+0
WOOD, and PLNT.
2013-03-09fix empty signs being created when shifting them out of bounds, draw parts ↵jacob11-4/+7
of images when it goes partway off the top of the screen.
2013-03-06remove auto generated comments from all files, fix some missing tabs, remove ↵jacob11-5/+5
unused variables from config.h
2013-03-04revert life changes, will be redone later in a faster wayjacob11-0/+5
2013-03-04fix LIFEjacob11-27/+20
2013-03-03PSTN ctype sets the element that stops it, FRME with a tmp of one is ↵jacob11-2/+2
non-sticky (doesn't pull)
2013-03-03fix crash when drawing particles in invalid coordinates (using console)jacob11-7/+7
2013-02-25fix a few more memory errorsjacob11-6/+2
2013-02-24fix problems found with valgrind with shifting stamps and savingjacob11-1/+9