Aqua Regia

  • cyberdragon
    7th Jun 2013 Member 0 Permalink

    O.K. Removing flammability. And how fast should it destroy things? Instant or gradual?

  • NF
    8th Jun 2013 Member 0 Permalink

    Faster than Acid!

  • cyberdragon
    8th Jun 2013 Member 0 Permalink

    Faster? I'll put it back to instant delete.

  • firefreak11
    8th Jun 2013 Member 0 Permalink

    @cyberdragon (View Post)

     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.

  • cyberdragon
    8th Jun 2013 Member 0 Permalink

    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);

    }
    }
    }

  • firefreak11
    8th Jun 2013 Member 0 Permalink

    @cyberdragon (View Post)

     Pretty much expanding my code

  • Sylvi
    8th Jun 2013 Moderator 0 Permalink

    One thing that would be nice, is if ACID actually dissolves one element set to its CTYPE. This would make it universal and would contribute to etching or as a developer.

     

    Just an idea for you to take a look at.

  • firefreak11
    8th Jun 2013 Member 0 Permalink

    @Lockheedmartin (View Post)

     Great idea, I think it should be like that in the official

  • lorddeath
    8th Jun 2013 Member 0 Permalink

    ... We'd need both Nitric acid and Hydrochloric acids. Unless you're substituting one for the other. But i think acid should be renamed.

  • greymatter
    8th Jun 2013 Member 0 Permalink
    Good to know that this idea is being put into action.
    @cyberdragon
    Aqua regia dissolves materials, and when soap is added(alkali)/after aqua regia'a life reaches zero(life count starts going down after it has absorbed something)/when it's heated it turns into whatever it absorbed. And i prefer it to be not flammable. Acid dissolving only it's ctype, if it's ctype is set and acid and soap cancelling out each other will make a nice addition too.(I don't think there is any save that has acid and soap touching so this will not break saves?)