Commit Graph

27 Commits

Author SHA1 Message Date
Tamás Bálint Misius
4b7e85c2fb
Fix a metric ton of MSVC warnings 2021-02-15 21:24:44 +01:00
Tamás Bálint Misius
4d52531889
Ditch element and tool classes 2020-01-09 19:22:11 +01:00
jacob1
9993290b72 Add Create function, handles setting default properties for elements that need randomness or special code
Most of the switch statement in create_part is gone. There's a few others that I will get rid of in future commits. There will also be a CreateAllowed function, and a ChangeType. ChangeType will handle stuff that is duplicated in both create_part and part_change_type. Considering making a Destroy function instead of ChangeType, though.

Later on, Lua events will be made for all 3

Credit to jacksonmj for the original design of all of this, I copied it into my mod years ago
2019-11-28 00:22:17 -05:00
jacob1
0078fb4c6f Add DefaultProperties, replaces some of the case statements in create_part
The rest will will in a commit soon that adds the Create event and some other stuff
Lua events will come after that
PLSM default temp lowered to MAX_TEMP
2019-11-25 22:08:18 -05:00
Tamás Bálint Misius
0179cefc78
Flatten include trees 2019-04-20 15:36:11 +02:00
jacob1
44a8665f6f update rng functions in a lot of element files to use .between/.chance
conversion is still very incomplete
2018-05-02 23:53:15 -04:00
Saveliy Skresanov
cda029ff42 Use xoroshiro128+ random generator (everywhere besides BSON code). 2018-04-23 22:47:44 +07:00
jacob1
67bc12de97 Fix issue where TPT was bought by EA 2018-04-01 15:26:13 -04:00
jacob1
40d2850ff7 TPT has now gone free to play! Many elements are unlocked by default, but by using Powdercoins you can unlock new elements and promote your saves to front page! 2018-03-31 22:40:23 -04:00
jacob1
208cf14ce8 convert r&0xFF in src/simulation/elements 2017-12-28 13:00:23 -05:00
jacob1
ac24810da5 add some defines to reduce usages of hardcoded r>>8 2017-12-28 12:03:26 -05:00
jacob1
b0f3b2a36b Fix QRTZ killing life=0 PHOT, fixes #415 2017-05-09 21:56:01 -04:00
jacob1
d3f0896599 Changes by Skylark:
Double the preciseness of photon refracting
photon refracting efficiency improvement on GCC
CRMC now slightly scatters photons when reflecting
BGLA now scatters photons
PQRT scatters photons like QRTZ does
C5 frequency doubling, id:2087410
*slight styling changes by jacob1*
2017-04-11 23:15:01 -04:00
jacob1
07be209094 remove extra spacing in all the element files 2015-12-18 02:27:19 -05:00
jacob1
95ab91e91d Remove .State property from all element files 2015-12-18 01:51:22 -05:00
jacob1
c673f30e14 fixes suggested by jacksonmj in -dev
fixes bugs in DMG, LIGH, PHOT, and QRTZ, also makes deut explosions less laggy when they hit the particle limit
2014-11-14 12:48:06 -05:00
jacksonmj
c83945e281 Allow PHOT deco, in old saves only 2014-08-05 22:11:07 +01:00
jacksonmj
f304e789f4 Disable deco on photons, to prevent potential confusion between wavelength and deco colours.
(Previously, it always glowed with the wavelengths colour, deco only worked fine in nothing view).
2014-05-23 01:06:09 +01:00
jacob1
332aa25bf6 save pavg[] in saves, for VIRS, PIPE, and STOR 2013-09-11 20:41:43 -04:00
jacksonmj
c3d3f9fc2a FILT mode for old QRTZ scattering, for Catelite.
FILT graphics could maybe do with changing in this mode.
2013-08-29 18:28:49 +01:00
jacob1
c68e4b1393 change descriptions of many elements to be more consistent, contain more info, and be more helpful. 2013-05-03 22:42:36 -04:00
jacob1
e493cf8a47 fix all tab spacing issues in all the element files 2013-03-13 15:54:34 -04:00
cracker64
d58100dc07 More fixes, redid a bunch of SPRK, so far everything I've tested works fine. 2013-03-02 00:42:07 -05:00
cracker64
08d1a68ce0 More fixes. 2013-02-27 17:20:05 -05:00
Simon Robertshaw
b98f5faace Fix photon blending mode 2012-10-01 21:54:52 +01:00
Simon Robertshaw
14c0ea59a9 cold phot doesn't burn things 2012-08-28 15:09:32 +01:00
Simon Robertshaw
51b17badf4 A bit of refactoring (elements) 2012-05-07 17:59:50 +01:00