O.K. Removing flammability. And how fast should it destroy things? Instant or gradual?
Faster? I'll put it back to instant delete.
Instant delete is too unrealistic, I find. Try this.
if((r&0xFF)==PT_GOLD){
parts[r>>8].life++;
parts[i].life++;
if(parts[r>>8].life==(somewhere between 30 and 100){
partsr[r>>8].type=PT_SMKE; //(cool melting effects)
}
if(parts[i].life==300){
parts[i].type=PT_NONE;
}
}
just a simple block that makes aqua regia burn through gold and produce smoke. You might want to add some random generation to cut down on smoke ammount, if you even want smoke to be produced, I thought it looked cool. When aqua regia has spent so much time dissolving gold, it will cancel out. Also, think about making mercury appear when Aqua regia dies off.
Smoke? Great. Just great. Acids have an intricate system of life control. That code would wreck that causing major malfunction. I'll try this.
if((r&0xFF)==PT_GOLD&&parts[i].life>=50)
{
parts[i].ctype=r&0xFF;
float newtemp = ((60.0f-(float)sim->elements[r&0xFF].Hardness))*7.0f;
if(newtemp < 0)
{
newtemp = 0;
}
if(!(rand()%250))
{
parts[i].temp += newtemp;
parts[i].life--;
if(!(rand()%50))
{
sim->part_change_type(r>>8, x+rx, y+ry, PT_SMKE);
}
else
{
sim->kill_part(r>>8);
}
}
}
Pretty much expanding my code
Great idea, I think it should be like that in the official