I suggest that we add a new element to the game. I have used it in my mod for about 4 years, and I know that it would be an improvement for many players and saves.
Features:
EDIT: Pull request made to the Git repository found here: https://github.com/The-Powder-Toy/The-Powder-Toy/pull/724
The old code had to be updated to accomodate the current source being different than when ROCK was originally made.
Original code:
ROCK.cpp is found raw here: https://raw.githubusercontent.com/RCAProduction/The-Alliance-Toy/master/src/simulation/elements/ROCK.cpp
Or syntax highlighted here: https://github.com/RCAProduction/The-Alliance-Toy/blob/master/src/simulation/elements/ROCK.cpp
In Simulation.cpp, only 4 line additions are required.
Insert after line 2374 of the current Simulation.cpp last updated May 11, 2020:can_move[movingType][PT_ROCK] = 0;
Insert after line 2776 of the current Simulation.cpp last updated May 11, 2020:
if (y < ny && (pmap[y+1][x]) == PT_ROCK) //check below CNCT for ROCK
return 0;
}
This is an element that would be used often and across a multitude of different saves.
Additions, suggestions, discussion are all welcome.
RCAProduction:
- Does not affect melting or freezing of STNE, making it backwards compatible
ok cool but why would it do that in the first place..? also r o c k. ngl sounds cool
In previous revisions about 5 years ago, the transition was meant to be STNE>LAVA>ROCK, with the idea that cooling lava would not produce stone but instead a solid rock body, but that would break saves.
One of reasons why i do not use this mod for powder toy
I still want to go with vanilla elements
This will make ROCK a vanilla element, part of the official release.
ROCK is now in the latest TPT snapshot!!
https://starcatcher.us/TPT/ <-- download the snapshot here, it also has platinum, silicon and custom GOL