Special transitions

  • tommig
    9th Nov 2011 Member 0 Permalink
    Hey guys!
    I was adding irradiated water into my mod, when I had an idea:
    "What if I can get it to evapouate into WTRV and NEUT?"
    I have no idea how to do this, so I went and looked at the lava and salt water codes, and I got a value "ST", and some green text that said about an extra line of code, but I have no idea what or where
    If someone can give me a hand, it would be much appreciated!
    Thanks
    Tommig
  • jacksonmj
    9th Nov 2011 Developer 0 Permalink
    Somewhere near the middle of powder.c, about line 1920.

    The extra bit of code in powder.c that deals with salt water is:
    else if (t==PT_SLTW) {
    if (1>rand()%6) t = PT_SALT;
    else t = PT_WTRV;
    }

    If you put something like that in powder.c, and put ST in powder.h, it should work.
  • tommig
    9th Nov 2011 Member 0 Permalink
    OMG! That's so easy!
    Thanks!
  • jenn4
    9th Nov 2011 Member 0 Permalink
    @jacksonmj (View Post)
    I thought it would be done in elements own c file.
  • tommig
    9th Nov 2011 Member 0 Permalink
    Wow, reading through the lava section has given me the idea for smeltable ores!
  • ads999
    9th Nov 2011 Member 0 Permalink
  • tommig
    9th Nov 2011 Member 0 Permalink
    @ads999 (View Post)
    I will
    EDIT:
    Make that
    "I have"